Class TargetMemorySystems.Ticking
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.builtin.npccombatactionevaluator.memory.TargetMemorySystems.Ticking
- All Implemented Interfaces:
ISystem<EntityStore>,QuerySystem<EntityStore>,TickableSystem<EntityStore>
- Enclosing class:
TargetMemorySystems
-
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 final Set<Dependency<EntityStore>> private static final Stringprivate static final Stringprivate final ComponentType<EntityStore, TargetMemory> Fields inherited from interface com.hypixel.hytale.component.system.ISystem
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetQuery()booleanisParallel(int archetypeChunkSize, int taskCount) private static booleanisValidTarget(Ref<EntityStore> targetRef, CommandBuffer<EntityStore> commandBuffer) private static voiditerateMemory(float dt, int index, ArchetypeChunk<EntityStore> archetypeChunk, CommandBuffer<EntityStore> commandBuffer, List<Ref<EntityStore>> targetsList, it.unimi.dsi.fastutil.ints.Int2FloatOpenHashMap targetsMap, String type) private static voidremoveEntry(int index, ArchetypeChunk<EntityStore> archetypeChunk, int targetIndex, Ref<EntityStore> targetRef, List<Ref<EntityStore>> targetsList, it.unimi.dsi.fastutil.ints.Int2FloatOpenHashMap targetsMap, String type) voidtick(float dt, int index, ArchetypeChunk<EntityStore> archetypeChunk, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) Methods 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
-
HOSTILE
- See Also:
-
FRIENDLY
- See Also:
-
targetMemoryComponentType
-
dependencies
-
-
Constructor Details
-
Ticking
-
-
Method Details
-
isParallel
public boolean isParallel(int archetypeChunkSize, int taskCount) - Overrides:
isParallelin classEntityTickingSystem<EntityStore>
-
getQuery
-
getDependencies
-
tick
public void tick(float dt, int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer) - Specified by:
tickin classEntityTickingSystem<EntityStore>
-
iterateMemory
private static void iterateMemory(float dt, int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull List<Ref<EntityStore>> targetsList, @Nonnull it.unimi.dsi.fastutil.ints.Int2FloatOpenHashMap targetsMap, @Nonnull String type) -
isValidTarget
private static boolean isValidTarget(@Nonnull Ref<EntityStore> targetRef, @Nonnull CommandBuffer<EntityStore> commandBuffer) -
removeEntry
private static void removeEntry(int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, int targetIndex, @Nonnull Ref<EntityStore> targetRef, @Nonnull List<Ref<EntityStore>> targetsList, @Nonnull it.unimi.dsi.fastutil.ints.Int2FloatOpenHashMap targetsMap, @Nonnull String type)
-