Class BanIpCommand
java.lang.Object
net.minecraft.server.dedicated.command.BanIpCommand
public class BanIpCommand extends Object
- Mappings:
Namespace Name official wx
intermediary net/minecraft/class_3012
named net/minecraft/server/dedicated/command/BanIpCommand
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ALREADY_BANNED_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
INVALID_IP_EXCEPTION
static Pattern
PATTERN
-
Constructor Summary
Constructors Constructor Description BanIpCommand()
-
Method Summary
Modifier and Type Method Description private static int
banIp(ServerCommandSource source, String targetIp, Text reason)
private static int
checkIp(ServerCommandSource source, String target, Text reason)
static void
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
-
Field Details
-
PATTERN
- Mappings:
Namespace Name Mixin selector official a
Lwx;a:Ljava/util/regex/Pattern;
intermediary field_13466
Lnet/minecraft/class_3012;field_13466:Ljava/util/regex/Pattern;
named PATTERN
Lnet/minecraft/server/dedicated/command/BanIpCommand;PATTERN:Ljava/util/regex/Pattern;
-
INVALID_IP_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_IP_EXCEPTION- Mappings:
Namespace Name Mixin selector official b
Lwx;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
intermediary field_13468
Lnet/minecraft/class_3012;field_13468:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
named INVALID_IP_EXCEPTION
Lnet/minecraft/server/dedicated/command/BanIpCommand;INVALID_IP_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
ALREADY_BANNED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ALREADY_BANNED_EXCEPTION- Mappings:
Namespace Name Mixin selector official c
Lwx;c:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
intermediary field_13467
Lnet/minecraft/class_3012;field_13467:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
named ALREADY_BANNED_EXCEPTION
Lnet/minecraft/server/dedicated/command/BanIpCommand;ALREADY_BANNED_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
-
Constructor Details
-
BanIpCommand
public BanIpCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)- Mappings:
Namespace Name Mixin selector official a
Lwx;a(Lcom/mojang/brigadier/CommandDispatcher;)V
intermediary method_13008
Lnet/minecraft/class_3012;method_13008(Lcom/mojang/brigadier/CommandDispatcher;)V
named register
Lnet/minecraft/server/dedicated/command/BanIpCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
-
checkIp
private static int checkIp(ServerCommandSource source, String target, @Nullable Text reason) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lwx;a(Ldb;Ljava/lang/String;Loi;)I
intermediary method_13009
Lnet/minecraft/class_3012;method_13009(Lnet/minecraft/class_2168;Ljava/lang/String;Lnet/minecraft/class_2561;)I
named checkIp
Lnet/minecraft/server/dedicated/command/BanIpCommand;checkIp(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;Lnet/minecraft/text/Text;)I
-
banIp
private static int banIp(ServerCommandSource source, String targetIp, @Nullable Text reason) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official b
Lwx;b(Ldb;Ljava/lang/String;Loi;)I
intermediary method_13007
Lnet/minecraft/class_3012;method_13007(Lnet/minecraft/class_2168;Ljava/lang/String;Lnet/minecraft/class_2561;)I
named banIp
Lnet/minecraft/server/dedicated/command/BanIpCommand;banIp(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;Lnet/minecraft/text/Text;)I
-