MountGamePacketHandler
Package: com.hypixel.hytale.builtin.mounts
public class MountGamePacketHandler implements SubPacketHandlerHandles incoming DismountNPC packets from clients. Registered by MountPlugin via ServerManager.get().registerSubPacketHandlers().
Constructor
Section titled “Constructor”public MountGamePacketHandler(IPacketHandler packetHandler)Stores the parent packet handler for player reference resolution.
Methods
Section titled “Methods”registerHandlers
Section titled “registerHandlers”@Overridepublic void registerHandlers()Registers a handler for packet ID 294 (DismountNPC).
handle
Section titled “handle”public void handle(DismountNPC packet)Processes a dismount request from the client. Resolves the player’s entity reference and executes on the world thread:
- If the player has no MountedComponent, delegates to
MountPlugin.checkDismountNpc()to handle NPC dismount. - If the player has a
MountedComponentwith controller typeBlockMount, removes theMountedComponentto dismount from the block.
Throws RuntimeException if the player reference is invalid.
Related Types
Section titled “Related Types”- MountPlugin — registers this handler
- MountedComponent — checked and removed during dismount
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.