interface

Store

Methods

void addComponent(Ref ref, ComponentType type, T component)

Add or replace a component on an entity.

com.hypixel.hytale.component.Ref[] addEntities()
void addEntities()
Ref addEntity()

Creates entity from Holder blueprint. Params: (Holder holder, AddReason reason)

com.hypixel.hytale.component.Ref addEntity()
com.hypixel.hytale.component.metric.ArchetypeChunkData[] collectArchetypeChunkData()
void forEachChunk()

Iterates over all chunks containing a component type. Params: (ComponentType type, BiConsumer<ArchetypeChunk, CommandBuffer> consumer)

int getArchetypeChunkCount()
int getArchetypeChunkCountFor()
T getComponent(Ref ref, ComponentType type)

Get a component from an entity.

int getEntityCount()
int getEntityCountFor()
ECS_TYPE getExternalData()
T getModule()

Gets a module by class. Params: (Class<T> moduleClass)

com.hypixel.hytale.component.ComponentRegistry getRegistry()
T getResource()

Gets a global resource. Params: (ResourceType<T> type)

com.hypixel.hytale.component.IResourceStorage getResourceStorage()
int getStoreIndex()
com.hypixel.hytale.metrics.metric.HistoricMetric[] getSystemMetrics()
boolean isShutdown()
void removeComponent()

Removes component from entity. Params: (Ref ref, ComponentType type)

java.util.concurrent.CompletableFuture saveAllResources()
void shutdown()