Class CommandSetDimension


  • @Deprecated
    public class CommandSetDimension
    extends java.lang.Object
    Deprecated.
    For removal in 1.17, superseded by /execute in <dim> run tp <targets>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_DIMENSION
      Deprecated.
       
      private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType NO_ENTITIES
      Deprecated.
       
    • Field Detail

      • NO_ENTITIES

        private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType NO_ENTITIES
        Deprecated.
      • INVALID_DIMENSION

        private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_DIMENSION
        Deprecated.
    • Constructor Detail

      • CommandSetDimension

        public CommandSetDimension()
        Deprecated.
    • Method Detail

      • register

        static com.mojang.brigadier.builder.ArgumentBuilder<CommandSource,​?> register()
        Deprecated.
      • execute

        private static int execute​(com.mojang.brigadier.context.CommandContext<CommandSource> ctx,
                                   java.util.Collection<? extends Entity> entities,
                                   ServerWorld dim,
                                   BlockPos pos)
                            throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Deprecated.
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • canEntityTeleport

        private static boolean canEntityTeleport​(Entity entity)
        Deprecated.