Package net.minecraft.command.impl
Class TeleportCommand
- java.lang.Object
-
- net.minecraft.command.impl.TeleportCommand
-
public class TeleportCommand extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
TeleportCommand.Facing
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
INVALID_POSITION
-
Constructor Summary
Constructors Constructor Description TeleportCommand()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static void
performTeleport(CommandSource p_201127_0_, Entity p_201127_1_, ServerWorld p_201127_2_, double p_201127_3_, double p_201127_5_, double p_201127_7_, java.util.Set<SPlayerPositionLookPacket.Flags> p_201127_9_, float p_201127_10_, float p_201127_11_, TeleportCommand.Facing p_201127_12_)
static void
register(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198809_0_)
private static int
teleportToEntity(CommandSource p_201126_0_, java.util.Collection<? extends Entity> p_201126_1_, Entity p_201126_2_)
private static int
teleportToPos(CommandSource p_200559_0_, java.util.Collection<? extends Entity> p_200559_1_, ServerWorld p_200559_2_, ILocationArgument p_200559_3_, ILocationArgument p_200559_4_, TeleportCommand.Facing p_200559_5_)
-
-
-
Method Detail
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198809_0_)
-
teleportToEntity
private static int teleportToEntity(CommandSource p_201126_0_, java.util.Collection<? extends Entity> p_201126_1_, Entity p_201126_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
teleportToPos
private static int teleportToPos(CommandSource p_200559_0_, java.util.Collection<? extends Entity> p_200559_1_, ServerWorld p_200559_2_, ILocationArgument p_200559_3_, @Nullable ILocationArgument p_200559_4_, @Nullable TeleportCommand.Facing p_200559_5_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
performTeleport
private static void performTeleport(CommandSource p_201127_0_, Entity p_201127_1_, ServerWorld p_201127_2_, double p_201127_3_, double p_201127_5_, double p_201127_7_, java.util.Set<SPlayerPositionLookPacket.Flags> p_201127_9_, float p_201127_10_, float p_201127_11_, @Nullable TeleportCommand.Facing p_201127_12_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
-