classpublicPriority 1
InteractionManager
com.hypixel.hytale.server.core.entity.InteractionManager
implements Component
22
Methods
22
Public Methods
13
Fields
1
Constructors
Constants
float[]DEFAULT_CHARGE_TIMES= <complex>
HytaleLoggerLOGGER= HytaleLogger.forEnclosingClass()
doubleMAX_REACH_DISTANCE= 8.0
Constructors
public
InteractionManager(LivingEntity entity, PlayerRef playerRef, IInteractionSimulationHandler simulationHandler)Methods
Public Methods (22)
public
boolean canRun(InteractionType type, RootInteraction rootInteraction)public
boolean canRun(InteractionType type, short equipSlot, RootInteraction rootInteraction)public
void cancelChains(InteractionChain chain)public
void clear()public
void clearAllGlobalTimeShift(float dt)public
Component<EntityStore> clone()@Nonnull@Override
public
void copyFrom(InteractionManager interactionManager)@Deprecated
public
void executeChain(Ref<EntityStore> ref, CommandBuffer<EntityStore> commandBuffer, InteractionChain chain)public
<T> T forEachInteraction(TriFunction<InteractionChain, Interaction, T, T> func, T val)public
Int2ObjectMap<InteractionChain> getChains()@Nonnull
public
float getGlobalTimeShift(InteractionType type)public
IInteractionSimulationHandler getInteractionSimulationHandler()@Nonnull
public
ObjectList<SyncInteractionChain> getSyncPackets()public
void queueExecuteChain(InteractionChain chain)public
void sendCancelPacket(int chainId, ForkedChainId forkedChainId)public
void sendSyncPacket(InteractionChain chain, int operationBaseIndex, List<InteractionSyncData> interactionData)public
void setGlobalTimeShift(InteractionType type, float shift)public
void setHasRemoteClient(boolean hasRemoteClient)public
void sync(Ref<EntityStore> ref, ChainSyncStorage chainSyncStorage, SyncInteractionChain packet)public
void tick(Ref<EntityStore> ref, CommandBuffer<EntityStore> commandBuffer, float dt)public
void tryRunHeldInteraction(Ref<EntityStore> ref, CommandBuffer<EntityStore> commandBuffer, InteractionType type)publicstatic
boolean walkInteraction(Collector collector, InteractionContext context, CollectorTag tag, String id)Fields
Protected Fields (1)
protected
CommandBuffer<EntityStore> commandBufferPrivate/Package Fields (12)
private
Predicate<InteractionChain> cachedTickChainprivate
long currentTimeprivate
LivingEntity entityprivate
float[] globalTimeShiftprivate
boolean[] globalTimeShiftDirtyprivate
boolean hasRemoteClientprivate
IInteractionSimulationHandler interactionSimulationHandlerprivate
int lastClientChainIdprivate
int lastServerChainIdprivate
long packetQueueTimeprivate
PlayerRef playerRefprivate
boolean timeShiftsDirty