Class TeleportCommand

java.lang.Object
net.minecraft.command.impl.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<CommandSource> p_198809_0_)
    • teleportToEntity

      private static int teleportToEntity(CommandSource p_201126_0_, Collection<? extends Entity> p_201126_1_, Entity p_201126_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • teleportToPos

      private static int teleportToPos(CommandSource p_200559_0_, Collection<? extends Entity> p_200559_1_, ServerWorld p_200559_2_, ILocationArgument p_200559_3_, @Nullable ILocationArgument p_200559_4_, @Nullable TeleportCommand.Facing p_200559_5_) 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_, 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