Class TeleportCommand

java.lang.Object
net.minecraft.server.commands.TeleportCommand

public class TeleportCommand extends Object
  • Field Details

    • INVALID_POSITION

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

    • TeleportCommand

      public TeleportCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher)
    • teleportToEntity

      private static int teleportToEntity(CommandSourceStack source, Collection<? extends Entity> targets, Entity destination) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • teleportToPos

      private static int teleportToPos(CommandSourceStack source, Collection<? extends Entity> targets, ServerLevel level, Coordinates position, @Nullable Coordinates rotation, @Nullable TeleportCommand.LookAt facing) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • formatDouble

      private static String formatDouble(double value)
    • performTeleport

      private static void performTeleport(CommandSourceStack source, Entity entity, ServerLevel level, double x, double y, double z, Set<RelativeMovement> relativeList, float yaw, float pitch, @Nullable TeleportCommand.LookAt facing) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException