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 ItemStackSnapshots for this event. |
initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTargetInventorygetTargetEntitygetCause, getContext, getSourceisCancelled, setCancelledprotected Transaction<ItemStackSnapshot> transaction
@Deprecated public Optional<ItemStackSnapshot> getOriginalItemStack()
ChangeEntityEquipmentEventItemStack as an
ItemStackSnapshot.
The previously equipped item may have been empty.
getOriginalItemStack in interface ChangeEntityEquipmentEvent@Deprecated public Optional<Transaction<ItemStackSnapshot>> getItemStack()
ChangeEntityEquipmentEventItemStack that is being equipped in the relative
armor slot.
The itemstack may not exist or the slot is being emptied.
getItemStack in interface ChangeEntityEquipmentEventpublic Transaction<ItemStackSnapshot> getTransaction()
ChangeEntityEquipmentEventTransaction of ItemStackSnapshots for this event.getTransaction in interface ChangeEntityEquipmentEvent