public interface ChangeEntityEquipmentEvent extends TargetEntityEvent, TargetInventoryEvent, Cancellable
Modifier and Type | Interface and Description |
---|---|
static interface |
ChangeEntityEquipmentEvent.Break
Called when the players equipment is broken or otherwise replaced by an empty item-stack.
|
static interface |
ChangeEntityEquipmentEvent.TargetHumanoid
An event where a
Humanoid entity is targeted. |
static interface |
ChangeEntityEquipmentEvent.TargetLiving
An event where a
Living entity is targeted. |
static interface |
ChangeEntityEquipmentEvent.TargetPlayer
An event where a
Player entity is targeted. |
Modifier and Type | Method and Description |
---|---|
Optional<Transaction<ItemStackSnapshot>> |
getItemStack()
Deprecated.
Use
getTransaction() instead |
Optional<ItemStackSnapshot> |
getOriginalItemStack()
Deprecated.
Use
getTransaction() instead |
Slot |
getTargetInventory()
|
default Transaction<ItemStackSnapshot> |
getTransaction()
Gets the
Transaction of ItemStackSnapshot s for this event. |
getTargetEntity
getCause, getContext, getSource
isCancelled, setCancelled
@Deprecated Optional<ItemStackSnapshot> getOriginalItemStack()
getTransaction()
insteadItemStack
as an
ItemStackSnapshot
.
The previously equipped item may have been empty.
@Deprecated Optional<Transaction<ItemStackSnapshot>> getItemStack()
getTransaction()
insteadItemStack
that is being equipped in the relative
armor slot.
The itemstack may not exist or the slot is being emptied.
default Transaction<ItemStackSnapshot> getTransaction()
Transaction
of ItemStackSnapshot
s for this event.Slot getTargetInventory()
TargetInventoryEvent
getTargetInventory
in interface TargetInventoryEvent
Inventory