AddReason
Package: com.hypixel.hytale.component
public enum AddReasonIndicates why an entity is being added to a Store. Passed to RefSystem.onEntityAdded() and HolderSystem.onEntityAdd() so systems can distinguish between newly created entities and entities restored from storage.
Enum Constants
Section titled “Enum Constants”| Constant | Description |
|---|---|
SPAWN | The entity is newly created at runtime (e.g., NPC spawn, player join). |
LOAD | The entity is being restored from persistent storage (e.g., chunk load, stored flock restore). |
Related Types
Section titled “Related Types”- RemoveReason — the corresponding enum for entity removal
- Store —
addEntity()accepts anAddReason - CommandBuffer —
addEntity()accepts anAddReason
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.