NPCBlackboardCommand.ReserveCommand
Package: com.hypixel.hytale.server.npc.commands
public static class NPCBlackboardCommand.ReserveCommand extends AbstractPlayerCommandInner class of NPCBlackboardCommand. Adds or removes a player reservation on a target NPC. Reservations are tracked on the NPCEntity component using the player’s UUID. When reserve is true, calls npcEntity.addReservation(); when false, calls npcEntity.removeReservation().
Arguments
Section titled “Arguments”| Argument | Type | Required | Description |
|---|---|---|---|
reserve | Boolean | yes | true to add a reservation, false to remove |
entity | entity ID | no | Target NPC (defaults to player’s look-target) |
Constructor
Section titled “Constructor”public ReserveCommand()Registers as sub-command "reserve" with translation key "server.commands.npc.blackboard.reserve.desc".
Related Types
Section titled “Related Types”- NPCBlackboardCommand — parent command collection
- NPCBlackboardCommand.ReservationCommand — checks reservation status
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.