MountCheckCommand
Package: com.hypixel.hytale.builtin.mounts.commands
public class MountCheckCommand extends AbstractTargetPlayerCommandThe /mount check subcommand. Reports the mount status of the target player.
Constructor
Section titled “Constructor”public MountCheckCommand()Creates the command with name "check" and description key "server.commands.check.desc".
Behavior
Section titled “Behavior”@Overrideprotected void execute( @Nonnull CommandContext context, @Nullable Ref<EntityStore> sourceRef, @Nonnull Ref<EntityStore> ref, @Nonnull PlayerRef playerRef, @Nonnull World world, @Nonnull Store<EntityStore> store)Reads the target player’s MountedComponent and sends one of four messages:
| Condition | Message Key |
|---|---|
No MountedComponent | server.commands.check.noComponent |
| Mounted to entity | server.commands.check.mountedToEntity |
| Mounted to block | server.commands.check.mountedToBlock |
| Neither entity nor block | server.commands.check.unknownStatus |
Related Types
Section titled “Related Types”- MountCommand — parent command collection
- MountedComponent — the component being inspected
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.