Commits

Shreyas Ayyengar authored and md_5 committed 8ae2e3beb8f
#1055: Expand riptiding API
No tags

src/main/java/org/bukkit/entity/HumanEntity.java

Modified
279 279
280 280 /**
281 281 * Causes the player to wakeup if they are currently sleeping.
282 282 *
283 283 * @param setSpawnLocation whether to set their spawn location to the bed
284 284 * they are currently sleeping in
285 285 * @throws IllegalStateException if not sleeping
286 286 */
287 287 public void wakeup(boolean setSpawnLocation);
288 288
289 + /**
290 + * Make the player start a riptide spin attack.
291 + *
292 + * @param duration spin attack duration in ticks.
293 + * @param attackStrength damage value inflicted upon entities hit by spin attack.
294 + * @param attackItem item used to attack.
295 + */
296 + public void startRiptideAttack(int duration, float attackStrength, @Nullable ItemStack attackItem);
297 +
289 298 /**
290 299 * Gets the location of the bed the player is currently sleeping in
291 300 *
292 301 * @return location
293 302 * @throws IllegalStateException if not sleeping
294 303 */
295 304 @NotNull
296 305 public Location getBedLocation();
297 306
298 307 /**

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut