MountSystems.EnsureMinecartComponents
Package: com.hypixel.hytale.builtin.mounts
public static class EnsureMinecartComponents extends HolderSystem<EntityStore>Ensures that minecart entities have the required supporting components when added to the store. On entity add, ensures Interactable and PrefabCopyableComponent exist, and adds a NetworkId with a fresh network ID from the entity store.
Matches entities with MinecartComponent.
Dependencies
Section titled “Dependencies”Root dependency (runs first).
Behavior
Section titled “Behavior”- onEntityAdd: Ensures
Interactable, addsNetworkId, ensuresPrefabCopyableComponent. - onEntityRemoved: No-op.
Related Types
Section titled “Related Types”- MountSystems — enclosing class
- MinecartComponent — the query component
- MountSystems.OnMinecartHit — handles minecart damage
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.