Commits

Parker Hawke authored and md_5 committed 95ff95ed62d
#588: Add Player#sendBlockDamage()
No tags

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

Modified
409 409
410 410 /**
411 411 * Send a block change. This fakes a block change packet for a user at a
412 412 * certain location. This will not actually change the world in any way.
413 413 *
414 414 * @param loc The location of the changed block
415 415 * @param block The new block
416 416 */
417 417 public void sendBlockChange(@NotNull Location loc, @NotNull BlockData block);
418 418
419 + /**
420 + * Send block damage. This fakes block break progress for a user at a
421 + * certain location. This will not actually change the block's break
422 + * progress in any way.
423 + *
424 + * @param loc the location of the damaged block
425 + * @param progress the progress from 0.0 - 1.0 where 0 is no damage and
426 + * 1.0 is the most damaged
427 + */
428 + public void sendBlockDamage(@NotNull Location loc, float progress);
429 +
419 430 /**
420 431 * Send a chunk change. This fakes a chunk change packet for a user at a
421 432 * certain location. The updated cuboid must be entirely within a single
422 433 * chunk. This will not actually change the world in any way.
423 434 * <p>
424 435 * At least one of the dimensions of the cuboid must be even. The size of
425 436 * the data buffer must be 2.5*sx*sy*sz and formatted in accordance with
426 437 * the Packet51 format.
427 438 *
428 439 * @param loc The location of the cuboid

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

Add shortcut