Contents
Class FromWorldGen
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.component.FromWorldGen
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
Component that is added to entities spawned via world gen. Also passes on
the worldGenId to be consumed by other systems.
This component will be removed after the entity is added to the store.
To use this component before it is cleared make the Ref/Holder system
have the group EntityModule.getPreClearMarkersGroup().
-
Field Details
-
CODEC
-
-
Constructor Details
-
FromWorldGen
public FromWorldGen(int worldGenId)
-
-
Method Details
-
getComponentType
-
getWorldGenId
public int getWorldGenId() -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-