public abstract class ClientPlayerInteractEventType<E> extends ClientPlayerEventType<E>
ClientEventWrapper.ClientType<E extends ClientEventWrapper<?>>EventWrapper.EventType<E extends EventWrapper<?>>, EventWrapper.Result| Modifier and Type | Field and Description |
|---|---|
protected EventFieldWrapper<E,ActionResult> |
cancelResult |
protected EventFieldWrapper<E,Facing> |
facing |
protected EventFieldWrapper<E,Hand> |
hand |
protected EventFieldWrapper<E,BlockPosAPI<?>> |
pos |
playerminecrafteventBOOLEAN_VALUES, FABRIC, FORGE, FORGE_OR_NEOFORGE, GAME_VERSION, JAVA_17, JAVA_21, JAVA_8, JAVA_MODULES, JAVA_VERSION, JAVA_VERSION_ASM, LEGACY, MOD_LOADER, NAMED_ENV, NEOFORGE, SRG_ENV, V12, V16, V16_OR_EARLIER, V16_OR_LATER, V18, V18_OR_EARLIER, V18_OR_LATER, V19, V19_2_OR_EARLIER, V19_4_OR_LATER, V19_OR_EARLIER, V19_OR_LATER, V20, V20_4_OR_EARLIER, V20_6_OR_LATER, V20_OR_EARLIER, V20_OR_LATER, V21, V21_OR_LATER| Modifier | Constructor and Description |
|---|---|
protected |
ClientPlayerInteractEventType(ClientEventWrapper.ClientType<?> type) |
| Modifier and Type | Method and Description |
|---|---|
ActionResult |
getCancelResult() |
Facing |
getFacing() |
Hand |
getHand() |
BlockPosAPI<?> |
getPos() |
protected abstract ItemStackAPI<?> |
getStackInHand() |
protected abstract WorldAPI<?> |
getWorld() |
boolean |
isFacing(Facing facing) |
boolean |
isHand(Hand hand) |
void |
populate() |
void |
setCancelResult(ActionResult result) |
protected abstract EventFieldWrapper<E,ActionResult> |
wrapCancelResultField() |
protected abstract EventFieldWrapper<E,Facing> |
wrapFacingField() |
protected abstract EventFieldWrapper<E,Hand> |
wrapHandField() |
protected abstract EventFieldWrapper<E,BlockPosAPI<?>> |
wrapPosField() |
getPlayer, wrapPlayerFieldisClient, isCommon, isServer, setEventactionResultGetter, actionResultSetter, cancel, cast, eventResultGetter, eventResultSetter, getter, getter, getter, getter, hasInvokers, hasResult, initPrimitive, isCancelable, nestedGetter, nestedGetter, nestedGetter, nestedGetter, setter, setter, setter, setter, wrapActionResultBoth, wrapAdvancement, wrapAdvancementBoth, wrapAdvancementGetter, wrapBlock, wrapBlockBoth, wrapBlockEntity, wrapBlockEntityBoth, wrapBlockEntityGetter, wrapBlockGetter, wrapBoth, wrapBoth, wrapDamage, wrapDamage, wrapDamageGetter, wrapDamageGetter, wrapEntity, wrapEntityBoth, wrapEntityGetter, wrapEventResultBoth, wrapExplosion, wrapExplosionBoth, wrapExplosionGetter, wrapGenericBoth, wrapGenericGetter, wrapGetter, wrapGetter, 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,ActionResult> cancelResult
protected EventFieldWrapper<E,Facing> facing
protected EventFieldWrapper<E,Hand> hand
protected EventFieldWrapper<E,BlockPosAPI<?>> pos
protected ClientPlayerInteractEventType(ClientEventWrapper.ClientType<?> type)
public ActionResult getCancelResult()
public Facing getFacing()
public Hand getHand()
public BlockPosAPI<?> getPos()
protected abstract ItemStackAPI<?> getStackInHand()
protected abstract WorldAPI<?> getWorld()
public boolean isFacing(Facing facing)
public boolean isHand(Hand hand)
public void populate()
populate in class ClientPlayerEventType<E>public void setCancelResult(ActionResult result)
protected abstract EventFieldWrapper<E,ActionResult> wrapCancelResultField()
protected abstract EventFieldWrapper<E,Facing> wrapFacingField()
protected abstract EventFieldWrapper<E,Hand> wrapHandField()
protected abstract EventFieldWrapper<E,BlockPosAPI<?>> wrapPosField()