MountSystems.RemoveMountedBy
Package: com.hypixel.hytale.builtin.mounts
public static class RemoveMountedBy extends RefSystem<EntityStore>Dismounts all passengers when a mount entity is removed from the store. On entity removal, iterates the MountedByComponent passenger list and removes the MountedComponent from each valid passenger whose mount target matches the removed entity (or is already invalid).
Matches entities with MountedByComponent.
Behavior
Section titled “Behavior”- onEntityAdded: No-op.
- onEntityRemove: For each passenger in the
MountedByComponent, checks if the passenger’sMountedComponenttargets this entity, and if so removes it.
Related Types
Section titled “Related Types”- MountSystems — enclosing class
- MountSystems.RemoveMounted — handles the reverse case (mounted entity removed)
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.