HyCodeYourTale
classpublicPriority 3

ArchetypeChunk

com.hypixel.hytale.component.ArchetypeChunk

12

Methods

12

Public Methods

5

Fields

1

Constructors

Constants

ArchetypeChunk[]EMPTY_ARRAY= new ArchetypeChunk[0]

Constructors

public
ArchetypeChunk(Store<ECS_TYPE> store, Archetype<ECS_TYPE> archetype)

Methods

Public Methods (12)

public
int addEntity(Ref<ECS_TYPE> ref, Holder<ECS_TYPE> holder)
public
void appendDump(String prefix, StringBuilder sb)
public
Holder<ECS_TYPE> copyEntity(int entityIndex, Holder<ECS_TYPE> target)
@Nonnull
public
Holder<ECS_TYPE> copySerializableEntity(ComponentRegistry.Data<ECS_TYPE> data, int entityIndex, Holder<ECS_TYPE> target)
@Nonnull
publicstatic
<ECS_TYPE> ArchetypeChunk<ECS_TYPE>[] emptyArray()
public
Archetype<ECS_TYPE> getArchetype()
@Nonnull
public
<T extends Component<ECS_TYPE>> T getComponent(int index, ComponentType<ECS_TYPE, T> componentType)
@Nullable
public
Ref<ECS_TYPE> getReferenceTo(int index)
@Nonnull
public
Holder<ECS_TYPE> removeEntity(int entityIndex, Holder<ECS_TYPE> target)
@Nonnull
public
<T extends Component<ECS_TYPE>> void setComponent(int index, ComponentType<ECS_TYPE, T> componentType, T component)
public
int size()
public
String toString()
@Nonnull@Override

Fields

Protected Fields (5)

protectedArchetype<ECS_TYPE> archetype
protectedComponent<ECS_TYPE>[][] components
protectedint entitiesSize
protectedRef<ECS_TYPE>[] refs
protectedStore<ECS_TYPE> store

Related Classes