Skip to content

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.

  • onEntityAdded: No-op.
  • onEntityRemove: For each passenger in the MountedByComponent, checks if the passenger’s MountedComponent targets this entity, and if so removes it.
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.