Class TeleportCommand


  • public class TeleportCommand
    extends java.lang.Object
    • Field Detail

      • INVALID_POSITION

        private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_POSITION
    • Constructor Detail

      • TeleportCommand

        public TeleportCommand()
    • 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
      • 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