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
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
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.block.BlockEvent
block
-
Constructor Summary
ConstructorDescriptionBlockDispenseArmorEvent
(@NotNull Block block, @NotNull ItemStack dispensed, @NotNull LivingEntity target) -
Method Summary
Modifier and TypeMethodDescriptionGet 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
Methods inherited from class org.bukkit.event.block.BlockEvent
getBlock
Methods inherited from class org.bukkit.event.Event
asynchronous, callEvent, getEventName, isAsynchronous
-
Constructor Details
-
BlockDispenseArmorEvent
-
-
Method Details
-
getTargetEntity
Get the living entity on which the armor was dispensed.- Returns:
- the target entity
-