public class BlockDispenseArmorEvent extends BlockDispenseEvent
If a Block Dispense Armor event is cancelled, the equipment will not be equipped on the target entity.
Event.Resultblock| Constructor and Description |
|---|
BlockDispenseArmorEvent(@NotNull Block block,
@NotNull ItemStack dispensed,
@NotNull LivingEntity target) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull LivingEntity |
getTargetEntity()
Get the living entity on which the armor was dispensed.
|
getHandlerList, getHandlers, getItem, getVelocity, isCancelled, setCancelled, setItem, setVelocitygetBlockcallEvent, getEventName, isAsynchronouspublic BlockDispenseArmorEvent(@NotNull
@NotNull Block block,
@NotNull
@NotNull ItemStack dispensed,
@NotNull
@NotNull LivingEntity target)
@NotNull public @NotNull LivingEntity getTargetEntity()
Copyright © 2022. All rights reserved.