MountSystems.TrackedMounted
Package: com.hypixel.hytale.builtin.mounts
public static class TrackedMounted extends RefChangeSystem<EntityStore, MountedComponent>Maintains the bidirectional mount relationship between a mounted entity and its mount target. Reacts to MountedComponent lifecycle events.
Behavior
Section titled “Behavior”- onComponentAdded: If the mount target entity is valid, ensures a MountedByComponent exists on the target and adds the mounted entity as a passenger.
- onComponentRemoved: Delegates to
MountSystems.handleMountedRemoval()to clean up both sides of the relationship. - onComponentSet: No-op.
Matches entities with MountedComponent.
Related Types
Section titled “Related Types”- MountSystems — enclosing class
- MountedByComponent — the component maintained on mount targets
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.