HyCodeYourTale
classpublicPriority 3

InteractionChain

com.hypixel.hytale.server.core.entity.InteractionChain

implements ChainSyncStorage

70

Methods

70

Public Methods

33

Fields

2

Constructors

Constants

HytaleLoggerLOGGER= HytaleLogger.forEnclosingClass()
longNULL_FORK_ID= forkedIdToIndex(new ForkedChainId(-1, 2147483647, null))

Constructors

public
InteractionChain(InteractionType type, InteractionContext context, InteractionChainData chainData, RootInteraction rootInteraction, Runnable onCompletion, boolean requiresClient)
public
InteractionChain(ForkedChainId forkedChainId, ForkedChainId baseForkedChainId, InteractionType type, InteractionContext context, InteractionChainData chainData, RootInteraction rootInteraction, Runnable onCompletion, boolean requiresClient)

Methods

Public Methods (70)

public
void clearInteractionSyncData(int operationIndex)
@Override
public
boolean consumeFirstRun()
public
void copyTempFrom(InteractionChain.TempChain temp)
public
void flagDesync()
public
ForkedChainId getBaseForkedChainId()
public
InteractionType getBaseType()
public
int getCallDepth()
public
InteractionChainData getChainData()
public
int getChainId()
public
int getClientOperationIndex()
public
InteractionState getClientState()
@Override
public
InteractionContext getContext()
public
InteractionState getFinalState()
public
ForkedChainId getForkedChainId()
public
Long2ObjectMap<InteractionChain> getForkedChains()
@Nonnull
public
RootInteraction getInitialRootInteraction()
@Nonnull
public
InteractionEntry getInteraction(int index)
@Nullable@Override
public
List<InteractionChain> getNewForks()
@Nonnull
public
int getOperationCounter()
public
int getOperationIndex()
public
InteractionEntry getOrCreateInteractionEntry(int index)
@Nonnull
public
InteractionChain.TempChain getOrCreateTempForkedChain(ForkedChainId chainId)
@Nonnull
public
RootInteraction getRootInteraction()
public
InteractionState getServerState()
public
int getSimulatedCallDepth()
public
int getSimulatedOperationCounter()
public
RootInteraction getSimulatedRootInteraction()
public
InteractionChain.TempChain getTempForkedChain(ForkedChainId chainId)
@Nullable
public
Long2ObjectMap<InteractionChain.TempChain> getTempForkedChainData()
@Nonnull
public
float getTimeInSeconds()
public
float getTimeShift()
public
long getTimestamp()
public
InteractionType getType()
public
long getWaitingForClientFinished()
public
long getWaitingForServerFinished()
public
boolean hasSentInitial()
public
boolean isDesynced()
public
boolean isFirstRun()
public
boolean isPredicted()
public
boolean isSyncDataOutOfOrder(int index)
@Override
public
void nextOperationIndex()
public
void popRoot()
public
void pushRoot(RootInteraction nextInteraction, boolean simulate)
public
void putForkedChain(ForkedChainId chainId, InteractionChain chain)
public
void putInteractionSyncData(int index, InteractionSyncData data)
@Override
public
void removeInteractionEntry(InteractionManager interactionManager, int index)
public
InteractionSyncData removeInteractionSyncData(int index)
@Nullable
public
boolean requiresClient()
public
void setBaseForkedChainId(ForkedChainId baseForkedChainId)
public
void setBaseType(InteractionType baseType)
public
void setChainData(InteractionChainData chainData)
public
void setChainId(int chainId)
public
void setClientState(InteractionState state)
@Override
public
void setFinalState(InteractionState finalState)
public
void setFirstRun(boolean firstRun)
public
void setForkedChainId(ForkedChainId forkedChainId)
public
void setOnCompletion(Runnable onCompletion)
public
void setOperationCounter(int operationCounter)
public
void setPreTicked(boolean preTicked)
public
void setSentInitial(boolean sentInitial)
public
void setServerState(InteractionState serverState)
public
void setSimulatedOperationCounter(int simulatedOperationCounter)
public
void setTimeShift(float timeShift)
public
void setTimestamp(long timestamp)
public
void setWaitingForClientFinished(long waitingForClientFinished)
public
void setWaitingForServerFinished(long waitingForServerFinished)
public
void syncFork(Ref<EntityStore> ref, InteractionManager manager, SyncInteractionChain packet)
@Override
public
String toString()
@Nonnull@Override
public
void updateSyncPosition(int index)
@Override
public
boolean wasPreTicked()

Fields

Private/Package Fields (33)

package-privateboolean skipChainOnClick
privateForkedChainId baseForkedChainId
privateInteractionType baseType
privateInteractionChainData chainData
privateint chainId
privateint clientOperationIndex
privateInteractionState clientState
privateboolean completed
privateInteractionContext context
privateboolean desynced
privateInteractionState finalState
privateboolean firstRun
privateForkedChainId forkedChainId
privateRootInteraction initialRootInteraction
privateboolean isFirstRun
privateRunnable onCompletion
privateint operationCounter
privateint operationIndex
privateint operationIndexOffset
privateboolean preTicked
privateboolean predicted
privateboolean requiresClient
privateRootInteraction rootInteraction
privateboolean sentInitial
privateInteractionState serverState
privateint simulatedCallStack
privateint simulatedOperationCounter
privateRootInteraction simulatedRootInteraction
privateint tempSyncDataOffset
privatefloat timeShift
privateInteractionType type
privatelong waitingForClientFinished
privatelong waitingForServerFinished

Related Classes