HyCodeYourTale
classpublicPriority 3

InteractionContext

com.hypixel.hytale.server.core.entity.InteractionContext

38

Methods

38

Public Methods

15

Fields

2

Constructors

Constants

Function<InteractionContext, Map<String, String>>DEFAULT_VAR_GETTER= InteractionContext::defaultGetVars
HytaleLoggerLOGGER= HytaleLogger.forEnclosingClass()

Constructors

private
InteractionContext(InteractionManager interactionManager, Ref<EntityStore> owningEntity, int heldItemSectionId, ItemContainer heldItemContainer, byte heldItemSlot, ItemStack heldItem)
private
InteractionContext(InteractionManager interactionManager, Ref<EntityStore> owningEntity, Ref<EntityStore> runningForEntity, int heldItemSectionId, ItemContainer heldItemContainer, byte heldItemSlot, ItemStack heldItem)

Methods

Public Methods (38)

public
boolean allowSkipChainOnClick()
public
ItemContext createHeldItemContext()
@Nullable
public
void execute(RootInteraction nextInteraction)
public
InteractionChain fork(InteractionType type, InteractionContext context, RootInteraction rootInteraction, boolean predicted)
@Nonnull
public
InteractionChain fork(InteractionContext context, RootInteraction rootInteraction, boolean predicted)
@Nonnull
public
InteractionChain getChain()
@Nullable
public
InteractionSyncData getClientState()
@Nullable
public
CommandBuffer<EntityStore> getCommandBuffer()
@Nullable
public
Ref<EntityStore> getEntity()
@Nonnull
public
InteractionEntry getEntry()
@Nullable
public
ItemStack getHeldItem()
@Nullable
public
ItemContainer getHeldItemContainer()
@Nullable
public
int getHeldItemSectionId()
public
byte getHeldItemSlot()
public
DynamicMetaStore<Interaction> getInstanceStore()
@Nonnull
public
InteractionManager getInteractionManager()
public
Map<String, String> getInteractionVars()
public
Function<InteractionContext, Map<String, String>> getInteractionVarsGetter()
public
Label getLabel(int index)
public
DynamicMetaStore<InteractionContext> getMetaStore()
@Nonnull
public
int getOperationCounter()
public
Item getOriginalItemType()
@Nullable
public
Ref<EntityStore> getOwningEntity()
@Nonnull
public
String getRootInteractionId(InteractionType type)
@Nullable
public
InteractionSyncData getServerState()
@Nonnull
public
EntitySnapshot getSnapshot(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor)
public
InteractionSyncData getState()
@Nonnull
public
BlockPosition getTargetBlock()
@Nullable
public
Ref<EntityStore> getTargetEntity()
@Nullable
public
boolean hasLabels()
public
void jump(Label label)
public
void setHeldItem(ItemStack heldItem)
public
void setInteractionVarsGetter(Function<InteractionContext, Map<String, String>> interactionVarsGetter)
public
void setLabels(Label[] labels)
public
void setOperationCounter(int operationCounter)
public
void setSnapshotProvider(InteractionContext.SnapshotProvider snapshotProvider)
public
void setTimeShift(float shift)
public
String toString()
@Nonnull@Override

Fields

Private/Package Fields (15)

privateInteractionChain chain
privateLivingEntity entity
privateInteractionEntry entry
privateItemStack heldItem
privateItemContainer heldItemContainer
privateint heldItemSectionId
privatebyte heldItemSlot
privateInteractionManager interactionManager
privateFunction<InteractionContext, Map<String, String>> interactionVarsGetter
privateLabel[] labels
privateDynamicMetaStore<InteractionContext> metaStore
privateItem originalItemType
privateRef<EntityStore> owningEntity
privateRef<EntityStore> runningForEntity
privateInteractionContext.SnapshotProvider snapshotProvider

Related Classes