Contents
Class CompanionSpawnerMarkerReference
java.lang.Object
com.hypixel.hytale.builtin.companionblockspawner.CompanionSpawnerMarkerReference
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
A back-reference placed on the spawn marker created by a
CompanionBlockSpawnerBlock, pointing at the world
position of the owning spawner block. CompanionBlockSpawnerSystems.MarkerHeartbeat uses it to self-remove
markers whose origin spawner no longer exists or no longer references them (e.g. the spawner was broken while the
marker's chunk was unloaded), so orphaned markers can't keep respawning companions forever. While the origin chunk
is unloaded the marker trusts it (waits) - removal only happens on loaded, contradicting evidence.-
Field Details
-
CODEC
-
-
Constructor Details
-
CompanionSpawnerMarkerReference
public CompanionSpawnerMarkerReference(@Nonnull org.joml.Vector3i spawnerPosition)
-
-
Method Details
-
getComponentType
-
getSpawnerPosition
public org.joml.Vector3i getSpawnerPosition() -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-