Class ForEachTaskData<ECS_TYPE>
java.lang.Object
com.hypixel.hytale.component.data.ForEachTaskData<ECS_TYPE>
- All Implemented Interfaces:
IntConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ArchetypeChunk<ECS_TYPE> private CommandBuffer<ECS_TYPE> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(int index) voidclear()voidinit(IntBiObjectConsumer<ArchetypeChunk<ECS_TYPE>, CommandBuffer<ECS_TYPE>> consumer, ArchetypeChunk<ECS_TYPE> archetypeChunk, CommandBuffer<ECS_TYPE> commandBuffer) static <ECS_TYPE> voidinvokeParallelTask(ParallelTask<ForEachTaskData<ECS_TYPE>> parallelTask, CommandBuffer<ECS_TYPE> commandBuffer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.IntConsumer
andThen
-
Field Details
-
consumer
-
archetypeChunk
-
commandBuffer
-
-
Constructor Details
-
ForEachTaskData
public ForEachTaskData()
-
-
Method Details
-
init
public void init(IntBiObjectConsumer<ArchetypeChunk<ECS_TYPE>, CommandBuffer<ECS_TYPE>> consumer, ArchetypeChunk<ECS_TYPE> archetypeChunk, CommandBuffer<ECS_TYPE> commandBuffer) -
accept
public void accept(int index) - Specified by:
acceptin interfaceIntConsumer
-
clear
public void clear() -
invokeParallelTask
public static <ECS_TYPE> void invokeParallelTask(@Nonnull ParallelTask<ForEachTaskData<ECS_TYPE>> parallelTask, @Nonnull CommandBuffer<ECS_TYPE> commandBuffer)
-