Contents
Class SpawnLineage
java.lang.Object
com.hypixel.hytale.server.spawning.SpawnLineage
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
A persisted lineage token shared by an entity and everything it (transitively) spawns.
-
Field Summary
FieldsFields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()static ComponentType<EntityStore, SpawnLineage> static voidinherit(Ref<EntityStore> parent, Ref<EntityStore> child, Store<EntityStore> store) Copies the parent's lineage id onto the child if the parent has one and the child doesn't already.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Field Details
-
CODEC
-
-
Constructor Details
-
SpawnLineage
public SpawnLineage() -
SpawnLineage
-
-
Method Details
-
getComponentType
-
inherit
public static void inherit(@Nonnull Ref<EntityStore> parent, @Nonnull Ref<EntityStore> child, @Nonnull Store<EntityStore> store) Copies the parent's lineage id onto the child if the parent has one and the child doesn't already. -
getLineageId
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-