public abstract class LivingItemUseFinishEventWrapper<E> extends CommonLivingStackUseEventType<E>
CommonEventWrapper.CommonType<E extends CommonEventWrapper<?>>EventWrapper.EventType<E extends EventWrapper<?>>, EventWrapper.Result| Modifier and Type | Field and Description |
|---|---|
protected EventFieldWrapper<E,ItemStackAPI<?>> |
stackResult |
durationstacklivingevent| Modifier | Constructor and Description |
|---|---|
protected |
LivingItemUseFinishEventWrapper() |
| Modifier and Type | Method and Description |
|---|---|
ItemStackAPI<?> |
getStackResult() |
void |
populate() |
void |
setResult(ItemStackAPI<?> result) |
protected abstract EventFieldWrapper<E,ItemStackAPI<?>> |
wrapStackResultField() |
getDuration, setDuration, wrapDurationFieldgetStack, 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,ItemStackAPI<?>> stackResult
public ItemStackAPI<?> getStackResult()
public void populate()
populate in class CommonLivingStackUseEventType<E>public void setResult(ItemStackAPI<?> result)
protected abstract EventFieldWrapper<E,ItemStackAPI<?>> wrapStackResultField()