Class PositionCacheSystems.UpdateSystem
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.component.system.tick.EntityTickingSystem<EntityStore>
com.hypixel.hytale.server.npc.systems.SteppableTickingSystem
com.hypixel.hytale.server.npc.systems.PositionCacheSystems.UpdateSystem
- All Implemented Interfaces:
ISystem<EntityStore>,QuerySystem<EntityStore>,TickableSystem<EntityStore>
- Enclosing class:
PositionCacheSystems
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.component.system.tick.EntityTickingSystem
EntityTickingSystem.SystemTaskData<ECS_TYPE> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ThreadLocal<BucketItemPool<Ref<EntityStore>>> private final Set<Dependency<EntityStore>> private final ResourceType<EntityStore, SpatialResource<Ref<EntityStore>, EntityStore>> private final ComponentType<EntityStore, ModelComponent> private final ComponentType<EntityStore, NPCEntity> private final ResourceType<EntityStore, SpatialResource<Ref<EntityStore>, EntityStore>> private final ResourceType<EntityStore, SpatialResource<Ref<EntityStore>, EntityStore>> private final Query<EntityStore> private final ComponentType<EntityStore, TransformComponent> Fields inherited from interface com.hypixel.hytale.component.system.ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionUpdateSystem(ComponentType<EntityStore, NPCEntity> npcComponentType, ResourceType<EntityStore, SpatialResource<Ref<EntityStore>, EntityStore>> npcSpatialResource) -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddEntities(Ref<EntityStore> self, Vector3d position, EntityList entityList, SpatialResource<Ref<EntityStore>, EntityStore> spatialResource, CommandBuffer<EntityStore> commandBuffer) getQuery()booleanisParallel(int archetypeChunkSize, int taskCount) voidsteppedTick(float dt, int index, ArchetypeChunk<EntityStore> archetypeChunk, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) Methods inherited from class com.hypixel.hytale.server.npc.systems.SteppableTickingSystem
tickMethods inherited from class com.hypixel.hytale.component.system.tick.EntityTickingSystem
doTick, maybeUseParallel, tick, useParallelMethods inherited from class com.hypixel.hytale.component.system.tick.ArchetypeTickingSystem
isExplicitQuery, test, tickMethods inherited from class com.hypixel.hytale.component.system.System
getComponentRegistrations, getResourceRegistrations, registerComponent, registerComponent, registerComponent, registerResource, registerResourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.system.ISystem
getGroup, onSystemRegistered, onSystemUnregistered
-
Field Details
-
BUCKET_POOL_THREAD_LOCAL
@Nonnull private static final ThreadLocal<BucketItemPool<Ref<EntityStore>>> BUCKET_POOL_THREAD_LOCAL -
npcComponentType
-
modelComponentType
-
transformComponentType
-
playerSpatialResource
@Nonnull private final ResourceType<EntityStore,SpatialResource<Ref<EntityStore>, playerSpatialResourceEntityStore>> -
npcSpatialResource
@Nonnull private final ResourceType<EntityStore,SpatialResource<Ref<EntityStore>, npcSpatialResourceEntityStore>> -
itemSpatialResource
@Nonnull private final ResourceType<EntityStore,SpatialResource<Ref<EntityStore>, itemSpatialResourceEntityStore>> -
query
-
dependencies
-
-
Constructor Details
-
UpdateSystem
public UpdateSystem(@Nonnull ComponentType<EntityStore, NPCEntity> npcComponentType, @Nonnull ResourceType<EntityStore, SpatialResource<Ref<EntityStore>, EntityStore>> npcSpatialResource)
-
-
Method Details
-
getDependencies
-
isParallel
public boolean isParallel(int archetypeChunkSize, int taskCount) - Overrides:
isParallelin classEntityTickingSystem<EntityStore>
-
getQuery
-
steppedTick
public void steppedTick(float dt, int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer) - Specified by:
steppedTickin classSteppableTickingSystem
-
addEntities
private static void addEntities(@Nonnull Ref<EntityStore> self, @Nonnull Vector3d position, @Nonnull EntityList entityList, @Nonnull SpatialResource<Ref<EntityStore>, EntityStore> spatialResource, @Nonnull CommandBuffer<EntityStore> commandBuffer)
-