Class BanCommand

java.lang.Object
net.minecraft.server.dedicated.command.BanCommand

public class BanCommand extends Object
Mappings:
Namespace Name
official abn
intermediary net/minecraft/class_3016
named net/minecraft/server/dedicated/command/BanCommand
  • Field Details

    • ALREADY_BANNED_EXCEPTION

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ALREADY_BANNED_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official a Labn;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      intermediary field_13473 Lnet/minecraft/class_3016;field_13473:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      named ALREADY_BANNED_EXCEPTION Lnet/minecraft/server/dedicated/command/BanCommand;ALREADY_BANNED_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
  • Constructor Details

    • BanCommand

      public BanCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
      Mappings:
      Namespace Name Mixin selector
      official a Labn;a(Lcom/mojang/brigadier/CommandDispatcher;)V
      intermediary method_13021 Lnet/minecraft/class_3016;method_13021(Lcom/mojang/brigadier/CommandDispatcher;)V
      named register Lnet/minecraft/server/dedicated/command/BanCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
    • ban

      private static int ban(ServerCommandSource source, Collection<com.mojang.authlib.GameProfile> targets, @Nullable @Nullable Text reason) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Labn;a(Ldr;Ljava/util/Collection;Lrm;)I
      intermediary method_13022 Lnet/minecraft/class_3016;method_13022(Lnet/minecraft/class_2168;Ljava/util/Collection;Lnet/minecraft/class_2561;)I
      named ban Lnet/minecraft/server/dedicated/command/BanCommand;ban(Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/Collection;Lnet/minecraft/text/Text;)I