public abstract class AbstractChangeEntityEquipmentEvent extends AbstractEvent implements ChangeEntityEquipmentEvent
ChangeEntityEquipmentEvent.Break, ChangeEntityEquipmentEvent.TargetHumanoid, ChangeEntityEquipmentEvent.TargetLiving, ChangeEntityEquipmentEvent.TargetPlayer
Modifier and Type | Field and Description |
---|---|
protected Transaction<ItemStackSnapshot> |
transaction |
currentOrder
Constructor and Description |
---|
AbstractChangeEntityEquipmentEvent() |
Modifier and Type | Method and Description |
---|---|
Optional<Transaction<ItemStackSnapshot>> |
getItemStack()
Deprecated.
|
Optional<ItemStackSnapshot> |
getOriginalItemStack()
Deprecated.
|
Transaction<ItemStackSnapshot> |
getTransaction()
Gets the
Transaction of ItemStackSnapshot s for this event. |
init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTargetInventory
getTargetEntity
getCause, getContext, getSource
isCancelled, setCancelled
protected Transaction<ItemStackSnapshot> transaction
@Deprecated public Optional<ItemStackSnapshot> getOriginalItemStack()
ChangeEntityEquipmentEvent
ItemStack
as an
ItemStackSnapshot
.
The previously equipped item may have been empty.
getOriginalItemStack
in interface ChangeEntityEquipmentEvent
@Deprecated public Optional<Transaction<ItemStackSnapshot>> getItemStack()
ChangeEntityEquipmentEvent
ItemStack
that is being equipped in the relative
armor slot.
The itemstack may not exist or the slot is being emptied.
getItemStack
in interface ChangeEntityEquipmentEvent
public Transaction<ItemStackSnapshot> getTransaction()
ChangeEntityEquipmentEvent
Transaction
of ItemStackSnapshot
s for this event.getTransaction
in interface ChangeEntityEquipmentEvent