类 TeleportCommand
java.lang.Object
net.minecraft.server.commands.TeleportCommand
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static String
formatDouble
(double p_142776_) private static void
performTeleport
(CommandSourceStack pSource, Entity pEntity, ServerLevel pLevel, double pX, double pY, double pZ, Set<RelativeMovement> pRelativeList, float pYaw, float pPitch, TeleportCommand.LookAt pFacing) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher) private static int
teleportToEntity
(CommandSourceStack pSource, Collection<? extends Entity> pTargets, Entity pDestination) private static int
teleportToPos
(CommandSourceStack pSource, Collection<? extends Entity> pTargets, ServerLevel pLevel, Coordinates pPosition, Coordinates pRotation, TeleportCommand.LookAt pFacing)
-
字段详细资料
-
INVALID_POSITION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_POSITION
-
-
构造器详细资料
-
TeleportCommand
public TeleportCommand()
-
-
方法详细资料
-
register
-
teleportToEntity
private static int teleportToEntity(CommandSourceStack pSource, Collection<? extends Entity> pTargets, Entity pDestination) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
teleportToPos
private static int teleportToPos(CommandSourceStack pSource, Collection<? extends Entity> pTargets, ServerLevel pLevel, Coordinates pPosition, @Nullable Coordinates pRotation, @Nullable TeleportCommand.LookAt pFacing) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
formatDouble
-
performTeleport
private static void performTeleport(CommandSourceStack pSource, Entity pEntity, ServerLevel pLevel, double pX, double pY, double pZ, Set<RelativeMovement> pRelativeList, float pYaw, float pPitch, @Nullable TeleportCommand.LookAt pFacing) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-