Commits
Perzan authored and md_5 committed 6c45a80e2ea
14 14 | import org.bukkit.SoundCategory; |
15 15 | import org.bukkit.WeatherType; |
16 16 | import org.bukkit.advancement.Advancement; |
17 17 | import org.bukkit.advancement.AdvancementProgress; |
18 18 | import org.bukkit.block.Block; |
19 19 | import org.bukkit.block.data.BlockData; |
20 20 | import org.bukkit.conversations.Conversable; |
21 21 | import org.bukkit.event.block.BlockBreakEvent; |
22 22 | import org.bukkit.event.block.BlockDropItemEvent; |
23 23 | import org.bukkit.event.player.PlayerResourcePackStatusEvent; |
24 + | import org.bukkit.inventory.EquipmentSlot; |
24 25 | import org.bukkit.inventory.ItemStack; |
25 26 | import org.bukkit.map.MapView; |
26 27 | import org.bukkit.plugin.Plugin; |
27 28 | import org.bukkit.plugin.messaging.PluginMessageRecipient; |
28 29 | import org.bukkit.scoreboard.Scoreboard; |
29 30 | import org.jetbrains.annotations.NotNull; |
30 31 | import org.jetbrains.annotations.Nullable; |
31 32 | |
32 33 | /** |
33 34 | * Represents a player, connected or not |
452 453 | * Send block damage. This fakes block break progress for a user at a |
453 454 | * certain location. This will not actually change the block's break |
454 455 | * progress in any way. |
455 456 | * |
456 457 | * @param loc the location of the damaged block |
457 458 | * @param progress the progress from 0.0 - 1.0 where 0 is no damage and |
458 459 | * 1.0 is the most damaged |
459 460 | */ |
460 461 | public void sendBlockDamage( Location loc, float progress); |
461 462 | |
463 + | /** |
464 + | * Send the equipment change of an entity. This fakes the equipment change |
465 + | * of an entity for a user. This will not actually change the inventory of |
466 + | * the specified entity in any way. |
467 + | * |
468 + | * @param entity The entity that the player will see the change for |
469 + | * @param slot The slot of the spoofed equipment change |
470 + | * @param item The ItemStack to display for the player |
471 + | */ |
472 + | public void sendEquipmentChange( LivingEntity entity, EquipmentSlot slot, ItemStack item); |
473 + | |
462 474 | /** |
463 475 | * Send a chunk change. This fakes a chunk change packet for a user at a |
464 476 | * certain location. The updated cuboid must be entirely within a single |
465 477 | * chunk. This will not actually change the world in any way. |
466 478 | * <p> |
467 479 | * At least one of the dimensions of the cuboid must be even. The size of |
468 480 | * the data buffer must be 2.5*sx*sy*sz and formatted in accordance with |
469 481 | * the Packet51 format. |
470 482 | * |
471 483 | * @param loc The location of the cuboid |