Package org.bukkit.event.block
Class BlockDispenseArmorEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.BlockDispenseEvent
org.bukkit.event.block.BlockDispenseArmorEvent
- All Implemented Interfaces:
Cancellable
public class BlockDispenseArmorEvent extends BlockDispenseEvent
Called when an equippable item is dispensed from a block and equipped on a
nearby entity.
If a Block Dispense Armor event is cancelled, the equipment will not be equipped on the target entity.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description BlockDispenseArmorEvent(Block block, ItemStack dispensed, LivingEntity target) -
Method Summary
Modifier and Type Method Description LivingEntitygetTargetEntity()Get the living entity on which the armor was dispensed.Methods inherited from class org.bukkit.event.block.BlockDispenseEvent
getHandlerList, getHandlers, getItem, getVelocity, isCancelled, setCancelled, setItem, setVelocity
-
Constructor Details
-
Method Details
-
getTargetEntity
Get the living entity on which the armor was dispensed.- Returns:
- the target entity
-