Contents
Class NetworkTickSystem
java.lang.Object
com.hypixel.hytale.component.system.System<EntityStore>
com.hypixel.hytale.component.system.tick.TickingSystem<EntityStore>
com.hypixel.hytale.component.system.tick.ArchetypeTickingSystem<EntityStore>
com.hypixel.hytale.server.core.modules.entity.player.NetworkTickSystem
- All Implemented Interfaces:
ISystem<EntityStore>, QuerySystem<EntityStore>, RunWhenPausedSystem<EntityStore>, TickableSystem<EntityStore>
public class NetworkTickSystem
extends ArchetypeTickingSystem<EntityStore>
implements RunWhenPausedSystem<EntityStore>
An entity ticking system that sends a
NetworkTick packet to every connected player
once per server tick.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Set<Dependency<EntityStore>> Ordered before the entity packet send group so the tick marker is written to the connection ahead of entity updates.Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionNetworkTickSystem(ResourceType<EntityStore, NetworkTickResource> networkTickResourceType) -
Method Summary
Modifier and TypeMethodDescriptiongetQuery()voidtick(float dt, int systemIndex, Store<EntityStore> store) Required reading:CommandBuffervoidtick(float dt, ArchetypeChunk<EntityStore> archetypeChunk, Store<EntityStore> store, CommandBuffer<EntityStore> buffer) Required reading:CommandBufferMethods inherited from class ArchetypeTickingSystem
isExplicitQuery, testMethods inherited from class System
getComponentRegistrations, getResourceRegistrations, registerResource, registerResourceMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ISystem
getGroup, onSystemRegistered, onSystemUnregisteredMethods inherited from interface QuerySystem
getHierarchyScope
-
Field Details
-
DEPENDENCIES
Ordered before the entity packet send group so the tick marker is written to the connection ahead of entity updates.
-
-
Constructor Details
-
NetworkTickSystem
public NetworkTickSystem(@Nonnull ResourceType<EntityStore, NetworkTickResource> networkTickResourceType)
-
-
Method Details
-
tick
Description copied from class:TickingSystem- Specified by:
tickin interfaceTickableSystem<EntityStore>- Overrides:
tickin classArchetypeTickingSystem<EntityStore>- Parameters:
dt- The delta time in seconds.systemIndex- The index of this system, used for faster lookups inStore.
-
tick
public void tick(float dt, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> buffer) Description copied from class:ArchetypeTickingSystemRequired reading:CommandBufferCalled once per world tick for each
ArchetypeChunkwith anArchetypethat fulfills theQueryprovided byQuerySystem.getQuery()}.- Specified by:
tickin classArchetypeTickingSystem<EntityStore>- Parameters:
dt- The delta time in seconds.archetypeChunk- The affiliated archetype chunkstore- The entity store for component accessbuffer- The command buffer to execute tasks
-
getQuery
- Specified by:
getQueryin interfaceQuerySystem<EntityStore>
-
getDependencies
- Specified by:
getDependenciesin interfaceISystem<EntityStore>
-