Package net.minecraft.server.commands
Class RideCommand
java.lang.Object
net.minecraft.server.commands.RideCommand
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
dismount
(CommandSourceStack p_265724_, Entity p_265678_) private static int
mount
(CommandSourceStack p_265285_, Entity p_265711_, Entity p_265339_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_265201_)
-
Field Details
-
ERROR_NOT_RIDING
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_NOT_RIDING -
ERROR_ALREADY_RIDING
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_ALREADY_RIDING -
ERROR_MOUNT_FAILED
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_MOUNT_FAILED -
ERROR_MOUNTING_PLAYER
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_MOUNTING_PLAYER -
ERROR_MOUNTING_LOOP
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_MOUNTING_LOOP -
ERROR_WRONG_DIMENSION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_WRONG_DIMENSION
-
-
Constructor Details
-
RideCommand
public RideCommand()
-
-
Method Details
-
register
-
mount
private static int mount(CommandSourceStack p_265285_, Entity p_265711_, Entity p_265339_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
dismount
private static int dismount(CommandSourceStack p_265724_, Entity p_265678_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-