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