类 TeleportCommand
java.lang.Object
net.minecraft.server.commands.TeleportCommand
-
字段概要
字段修饰符和类型字段说明private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static String
formatDouble
(double p_142776_) getRelatives
(Coordinates p_374290_, Coordinates p_374529_, boolean p_381166_) private static void
performTeleport
(CommandSourceStack p_139015_, Entity p_139016_, ServerLevel p_139017_, double p_139018_, double p_139019_, double p_139020_, Set<Relative> p_139021_, float p_139022_, float p_139023_, LookAt p_380216_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_139009_) private static int
teleportToEntity
(CommandSourceStack p_139033_, Collection<? extends Entity> p_139034_, Entity p_139035_) private static int
teleportToPos
(CommandSourceStack p_139026_, Collection<? extends Entity> p_139027_, ServerLevel p_139028_, Coordinates p_139029_, Coordinates p_139030_, LookAt p_380364_)
-
字段详细资料
-
INVALID_POSITION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_POSITION
-
-
构造器详细资料
-
TeleportCommand
public TeleportCommand()
-
-
方法详细资料
-
register
-
teleportToEntity
private static int teleportToEntity(CommandSourceStack p_139033_, Collection<? extends Entity> p_139034_, Entity p_139035_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
teleportToPos
private static int teleportToPos(CommandSourceStack p_139026_, Collection<? extends Entity> p_139027_, ServerLevel p_139028_, Coordinates p_139029_, @Nullable Coordinates p_139030_, @Nullable LookAt p_380364_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getRelatives
private static Set<Relative> getRelatives(Coordinates p_374290_, @Nullable Coordinates p_374529_, boolean p_381166_) -
formatDouble
-
performTeleport
private static void performTeleport(CommandSourceStack p_139015_, Entity p_139016_, ServerLevel p_139017_, double p_139018_, double p_139019_, double p_139020_, Set<Relative> p_139021_, float p_139022_, float p_139023_, @Nullable LookAt p_380216_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-