public class TeleportCommand extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
TeleportCommand.LookTarget |
Modifier and Type | Field and Description |
---|---|
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
INVALID_POSITION_EXCEPTION |
Constructor and Description |
---|
TeleportCommand() |
Modifier and Type | Method and Description |
---|---|
private static int |
execute(ServerCommandSource source,
Collection<? extends Entity> targets,
Entity destination) |
private static int |
execute(ServerCommandSource source,
Collection<? extends Entity> targets,
ServerWorld world,
PosArgument location,
PosArgument rotation,
TeleportCommand.LookTarget facingLocation) |
static void |
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) |
private static void |
teleport(ServerCommandSource source,
Entity target,
ServerWorld world,
double x,
double y,
double z,
Set<PlayerPositionLookS2CPacket.Flag> movementFlags,
float yaw,
float pitch,
TeleportCommand.LookTarget facingLocation) |
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_POSITION_EXCEPTION
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
private static int execute(ServerCommandSource source, Collection<? extends Entity> targets, Entity destination)
private static int execute(ServerCommandSource source, Collection<? extends Entity> targets, ServerWorld world, PosArgument location, @Nullable PosArgument rotation, @Nullable TeleportCommand.LookTarget facingLocation)
private static void teleport(ServerCommandSource source, Entity target, ServerWorld world, double x, double y, double z, Set<PlayerPositionLookS2CPacket.Flag> movementFlags, float yaw, float pitch, @Nullable TeleportCommand.LookTarget facingLocation)