Skip to content

com.hypixel.hytale.builtin.mounts

Package: com.hypixel.hytale.builtin.mounts

Built-in mount system providing entity mounting (NPC mounts), block-based seating (chairs, beds), and minecart rail vehicles. The plugin registers ECS components and systems for tracking mount relationships, handling player input while mounted, synchronizing mount state across the network, and managing mount lifecycle (dismounting on death, teleport, entity removal). None of the types in this package are part of the public API surface.

TypeKindDescription
MountPluginclassMain plugin class; singleton entry point registering all mount components, systems, commands, and interactions.
TypeKindDescription
BlockMountAPIclassStatic utility for mounting entities onto block-based seats and beds.
BlockMountAPI.BlockMountResultsealed interfaceResult type for block mount attempts.
BlockMountAPI.DidNotMountenumFailure reasons when a block mount attempt does not succeed.
BlockMountAPI.MountedrecordSuccess result carrying the block type and mounted component.
TypeKindStoreDescription
MountedComponentclassEntityStoreMarks an entity as mounted to another entity or a block.
MountedByComponentclassEntityStoreTracks which entities are riding a given mount entity.
NPCMountComponentclassEntityStoreNPC-specific mount state including owner player and anchor offset.
BlockMountComponentclassChunkStoreTracks seated entities on a block-based mount point (seat or bed).
MinecartComponentclassEntityStoreMinecart entity state including hit tracking and source item.
TypeKindDescription
MountSystemsclassContainer for entity-mount ECS systems.
MountSystems.TrackerUpdateclassTicking system that queues network updates for mounted entity visibility.
MountSystems.TrackerRemoveclassReacts to MountedComponent removal by sending remove updates to viewers.
MountSystems.TrackedMountedclassReacts to MountedComponent changes to maintain MountedByComponent passenger lists.
MountSystems.PlayerMountclassReacts to MountedComponent on player entities to set/clear mount IDs on PlayerInput.
MountSystems.HandleMountInputclassTicking system that processes player movement input while mounted.
MountSystems.MountedEntityDeathclassRemoves MountedComponent when a mounted entity receives DeathComponent.
MountSystems.TeleportMountedEntityclassRemoves MountedComponent when a mounted entity is teleported.
MountSystems.RemoveMountedclassCleans up mount relationships when a mounted entity is removed from the store.
MountSystems.RemoveMountedByclassDismounts all passengers when a mount entity is removed from the store.
MountSystems.RemoveMountedHolderclassStrips MountedComponent from the holder during entity removal.
MountSystems.RemoveBlockSeatclassDismounts seated entities when a block seat chunk entity is removed.
MountSystems.EnsureMinecartComponentsclassEnsures minecart entities have Interactable, NetworkId, and PrefabCopyableComponent.
MountSystems.OnMinecartHitclassHandles damage to minecart entities, destroying them after 3 hits.
TypeKindDescription
NPCMountSystemsclassContainer for NPC-specific mount ECS systems.
NPCMountSystems.OnAddclassHandles NPCMountComponent addition: sends mount packet to player or resets role.
NPCMountSystems.DismountOnPlayerDeathclassDismounts the player from their NPC mount when the player dies.
NPCMountSystems.DismountOnMountDeathclassResets player movement settings when the mounted NPC dies.
NPCMountSystems.OnPlayerRemoveclassDismounts the player from their NPC mount when the player entity is removed.
TypeKindDescription
MountCommandclassTop-level /mount command collection.
DismountCommandclass/mount dismount subcommand to dismount self or another player.
DismountCommand.DismountOtherCommandclassVariant of dismount targeting a specific player by name.
MountCheckCommandclass/mount check subcommand reporting mount status.
TypeKindDescription
MountInteractionclassEntity interaction that mounts the player onto a target entity.
SeatingInteractionclassBlock interaction that seats the player on a block with seat/bed mount points.
SpawnMinecartInteractionclassBlock interaction that spawns a minecart entity at a rail block.
TypeKindDescription
ActionMountclassNPC action that enables a player to mount an NPC entity.
BuilderActionMountclassBuilder/config reader for ActionMount NPC action definitions.
TypeKindDescription
MountGamePacketHandlerclassHandles DismountNPC packets from clients.
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.