public class TeleportCommand
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
TeleportCommand.Facing |
Constructor and Description |
---|
TeleportCommand() |
Modifier and Type | Method and Description |
---|---|
static void |
register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher) |
private static void |
teleport(CommandSource source,
Entity entityIn,
ServerWorld worldIn,
double x,
double y,
double z,
java.util.Set<SPlayerPositionLookPacket.Flags> relativeList,
float yaw,
float pitch,
TeleportCommand.Facing facing) |
private static int |
teleportToEntity(CommandSource source,
java.util.Collection<? extends Entity> targets,
Entity destination) |
private static int |
teleportToPos(CommandSource source,
java.util.Collection<? extends Entity> targets,
ServerWorld worldIn,
ILocationArgument position,
ILocationArgument rotationIn,
TeleportCommand.Facing facing) |
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher)
private static int teleportToEntity(CommandSource source, java.util.Collection<? extends Entity> targets, Entity destination)
private static int teleportToPos(CommandSource source, java.util.Collection<? extends Entity> targets, ServerWorld worldIn, ILocationArgument position, @Nullable ILocationArgument rotationIn, @Nullable TeleportCommand.Facing facing) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static void teleport(CommandSource source, Entity entityIn, ServerWorld worldIn, double x, double y, double z, java.util.Set<SPlayerPositionLookPacket.Flags> relativeList, float yaw, float pitch, @Nullable TeleportCommand.Facing facing)