public abstract class CommonLivingStackUseEventType<E> extends CommonLivingStackEventType<E>
CommonEventWrapper.CommonType<E extends CommonEventWrapper<?>>EventWrapper.EventType<E extends EventWrapper<?>>, EventWrapper.Result| Modifier and Type | Field and Description |
|---|---|
protected EventFieldWrapper<E,java.lang.Integer> |
duration |
stacklivingevent| Modifier | Constructor and Description |
|---|---|
protected |
CommonLivingStackUseEventType(CommonEventWrapper.CommonType<?> type) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDuration() |
void |
populate() |
void |
setDuration(int duration) |
protected abstract EventFieldWrapper<E,java.lang.Integer> |
wrapDurationField() |
getStack, wrapStackFieldwrapLivingFieldisClient, isCommon, isServercancel, hasInvokers, hasResult, initPrimitive, isCancelable, setEvent, wrapAdvancement, wrapAdvancementBoth, wrapAdvancementGetter, wrapBlock, wrapBlockBoth, wrapBlockEntity, wrapBlockEntityBoth, wrapBlockEntityGetter, wrapBlockGetter, wrapEntity, wrapEntityBoth, wrapEntityGetter, wrapExplosion, wrapExplosionBoth, wrapExplosionGetter, wrapGenericBoth, wrapGenericGetter, wrapItem, wrapItemBoth, wrapItemGetter, wrapItemStack, wrapItemStackBoth, wrapItemStackGetter, wrapLiving, wrapLivingBoth, wrapLivingGetter, wrapPlayer, wrapPlayerBoth, wrapPlayerGetter, wrapPos, wrapPosBoth, wrapPosGetter, wrapSnapshot, wrapSnapshotBoth, wrapSnapshotGetter, wrapState, wrapStateBoth, wrapStateGetter, wrapWorld, wrapWorldBoth, wrapWorldGetterprotected EventFieldWrapper<E,java.lang.Integer> duration
protected CommonLivingStackUseEventType(CommonEventWrapper.CommonType<?> type)
public int getDuration()
public void populate()
populate in class CommonLivingStackEventType<E>public void setDuration(int duration)
protected abstract EventFieldWrapper<E,java.lang.Integer> wrapDurationField()