Package com.hypixel.hytale.component
Class ArchetypeChunk<ECS_TYPE>
java.lang.Object
com.hypixel.hytale.component.ArchetypeChunk<ECS_TYPE>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidappendDump(String prefix, StringBuilder sb) copyEntity(int entityIndex, Holder<ECS_TYPE> target) copySerializableEntity(ComponentRegistry.Data<ECS_TYPE> data, int entityIndex, Holder<ECS_TYPE> target) static <ECS_TYPE> ArchetypeChunk<ECS_TYPE>[]protected voidfillEmptyIndex(int entityIndex, int lastIndex) getComponent(int index, ComponentType<ECS_TYPE, T> componentType) getReferenceTo(int index) removeEntity(int entityIndex, Holder<ECS_TYPE> target) setComponent(int index, ComponentType<ECS_TYPE, T> componentType, T component) intsize()toString()voidtransferSomeTo(Holder<ECS_TYPE> tempInternalEntityHolder, ArchetypeChunk<ECS_TYPE> chunk, IntPredicate shouldTransfer, Consumer<Holder<ECS_TYPE>> modification, IntObjectConsumer<Ref<ECS_TYPE>> referenceConsumer) voidtransferTo(Holder<ECS_TYPE> tempInternalEntityHolder, ArchetypeChunk<ECS_TYPE> chunk, Consumer<Holder<ECS_TYPE>> modification, IntObjectConsumer<Ref<ECS_TYPE>> referenceConsumer)
-
Field Details
-
EMPTY_ARRAY
-
store
-
archetype
-
entitiesSize
protected int entitiesSize -
refs
-
components
-
-
Constructor Details
-
ArchetypeChunk
-
-
Method Details
-
emptyArray
-
getArchetype
-
size
public int size() -
getReferenceTo
-
setComponent
public <T extends Component<ECS_TYPE>> void setComponent(int index, @Nonnull ComponentType<ECS_TYPE, T> componentType, @Nonnull T component) -
getComponent
@Nullable public <T extends Component<ECS_TYPE>> T getComponent(int index, @Nonnull ComponentType<ECS_TYPE, T> componentType) -
addEntity
-
copyEntity
-
copySerializableEntity
-
removeEntity
-
transferTo
public void transferTo(@Nonnull Holder<ECS_TYPE> tempInternalEntityHolder, @Nonnull ArchetypeChunk<ECS_TYPE> chunk, @Nonnull Consumer<Holder<ECS_TYPE>> modification, @Nonnull IntObjectConsumer<Ref<ECS_TYPE>> referenceConsumer) -
transferSomeTo
public void transferSomeTo(@Nonnull Holder<ECS_TYPE> tempInternalEntityHolder, @Nonnull ArchetypeChunk<ECS_TYPE> chunk, @Nonnull IntPredicate shouldTransfer, @Nonnull Consumer<Holder<ECS_TYPE>> modification, @Nonnull IntObjectConsumer<Ref<ECS_TYPE>> referenceConsumer) -
fillEmptyIndex
protected void fillEmptyIndex(int entityIndex, int lastIndex) -
appendDump
-
toString
-