Skip to content

MountSystems

Package: com.hypixel.hytale.builtin.mounts

public class MountSystems

Container class for entity-mount ECS systems. All systems are declared as static inner classes and registered by MountPlugin.setup(). Also contains a private static helper method handleMountedRemoval used by multiple systems to clean up mount relationships.

private static void handleMountedRemoval(
@Nonnull Ref<EntityStore> ref, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull MountedComponent component
)

Cleans up both sides of a mount relationship:

  • If mounted to an entity, removes the passenger from the target’s MountedByComponent.
  • If mounted to a block, removes the seated entity from the BlockMountComponent and removes the component if no entities remain.
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.