Cancellable
@Deprecated 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) |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
LivingEntity |
getTargetEntity() |
Deprecated.
Get the living entity on which the armor was dispensed.
|
getHandlerList, getHandlers, getItem, getVelocity, isCancelled, setCancelled, setItem, setVelocity
getBlock
getEventName, isAsynchronous
public BlockDispenseArmorEvent(Block block, ItemStack dispensed, LivingEntity target)
public LivingEntity getTargetEntity()
Copyright © 2018. All rights reserved.