Skip to content

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.

Root dependency (runs first).

  • onEntityAdd: Ensures Interactable, adds NetworkId, ensures PrefabCopyableComponent.
  • onEntityRemoved: No-op.
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.