Package net.minecraft.server.filter
Class TextFilterer
java.lang.Object
net.minecraft.server.filter.TextFilterer
- All Implemented Interfaces:
AutoCloseable
- Mappings:
Namespace Name official ach
intermediary net/minecraft/class_5514
named net/minecraft/server/filter/TextFilterer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static interface
(package private) class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private URL
private ExecutorService
private TextFilterer.HashIgnorer
private URL
private URL
private static Logger
private static AtomicInteger
private int
private String
private static ThreadFactory
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
TextFilterer(URI apiUrl, String apiKey, int ruleId, String serverId, TextFilterer.HashIgnorer ignorer, int int2)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private void
consumeFully(InputStream inputStream)
private HttpURLConnection
createConnection(JsonObject payload, URL endpoint)
createFilterer(com.mojang.authlib.GameProfile gameProfile)
private CompletableFuture<TextStream.Message>
filterMessage(com.mojang.authlib.GameProfile gameProfile, String message, TextFilterer.HashIgnorer ignorer, Executor executor)
static @Nullable TextFilterer
private void
sendJoinOrLeaveRequest(com.mojang.authlib.GameProfile gameProfile, URL endpoint, Executor executor)
private JsonObject
sendJsonRequest(JsonObject payload, URL endpoint)
private void
sendRequest(JsonObject payload, URL endpoint)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lach;a:Lorg/apache/logging/log4j/Logger;
intermediary field_26823
Lnet/minecraft/class_5514;field_26823:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/server/filter/TextFilterer;LOGGER:Lorg/apache/logging/log4j/Logger;
-
NEXT_WORKER_ID
- Mappings:
Namespace Name Mixin selector official b
Lach;b:Ljava/util/concurrent/atomic/AtomicInteger;
intermediary field_26824
Lnet/minecraft/class_5514;field_26824:Ljava/util/concurrent/atomic/AtomicInteger;
named NEXT_WORKER_ID
Lnet/minecraft/server/filter/TextFilterer;NEXT_WORKER_ID:Ljava/util/concurrent/atomic/AtomicInteger;
-
THREAD_FACTORY
- Mappings:
Namespace Name Mixin selector official c
Lach;c:Ljava/util/concurrent/ThreadFactory;
intermediary field_26825
Lnet/minecraft/class_5514;field_26825:Ljava/util/concurrent/ThreadFactory;
named THREAD_FACTORY
Lnet/minecraft/server/filter/TextFilterer;THREAD_FACTORY:Ljava/util/concurrent/ThreadFactory;
-
chatEndpoint
- Mappings:
Namespace Name Mixin selector official d
Lach;d:Ljava/net/URL;
intermediary field_26826
Lnet/minecraft/class_5514;field_26826:Ljava/net/URL;
named chatEndpoint
Lnet/minecraft/server/filter/TextFilterer;chatEndpoint:Ljava/net/URL;
-
joinEndpoint
- Mappings:
Namespace Name Mixin selector official e
Lach;e:Ljava/net/URL;
intermediary field_26827
Lnet/minecraft/class_5514;field_26827:Ljava/net/URL;
named joinEndpoint
Lnet/minecraft/server/filter/TextFilterer;joinEndpoint:Ljava/net/URL;
-
leaveEndpoint
- Mappings:
Namespace Name Mixin selector official f
Lach;f:Ljava/net/URL;
intermediary field_26828
Lnet/minecraft/class_5514;field_26828:Ljava/net/URL;
named leaveEndpoint
Lnet/minecraft/server/filter/TextFilterer;leaveEndpoint:Ljava/net/URL;
-
apiKey
- Mappings:
Namespace Name Mixin selector official g
Lach;g:Ljava/lang/String;
intermediary field_26829
Lnet/minecraft/class_5514;field_26829:Ljava/lang/String;
named apiKey
Lnet/minecraft/server/filter/TextFilterer;apiKey:Ljava/lang/String;
-
ruleId
private final int ruleId- Mappings:
Namespace Name Mixin selector official h
Lach;h:I
intermediary field_26830
Lnet/minecraft/class_5514;field_26830:I
named ruleId
Lnet/minecraft/server/filter/TextFilterer;ruleId:I
-
serverId
- Mappings:
Namespace Name Mixin selector official i
Lach;i:Ljava/lang/String;
intermediary field_26831
Lnet/minecraft/class_5514;field_26831:Ljava/lang/String;
named serverId
Lnet/minecraft/server/filter/TextFilterer;serverId:Ljava/lang/String;
-
ignorer
- Mappings:
Namespace Name Mixin selector official j
Lach;j:Lach$a;
intermediary field_26832
Lnet/minecraft/class_5514;field_26832:Lnet/minecraft/class_5514$class_5515;
named ignorer
Lnet/minecraft/server/filter/TextFilterer;ignorer:Lnet/minecraft/server/filter/TextFilterer$HashIgnorer;
-
executor
- Mappings:
Namespace Name Mixin selector official k
Lach;k:Ljava/util/concurrent/ExecutorService;
intermediary field_26833
Lnet/minecraft/class_5514;field_26833:Ljava/util/concurrent/ExecutorService;
named executor
Lnet/minecraft/server/filter/TextFilterer;executor:Ljava/util/concurrent/ExecutorService;
-
-
Constructor Details
-
TextFilterer
private TextFilterer(URI apiUrl, String apiKey, int ruleId, String serverId, TextFilterer.HashIgnorer ignorer, int int2) throws MalformedURLException- Throws:
MalformedURLException
- Mappings:
Namespace Name Mixin selector official <init>
Lach;<init>(Ljava/net/URI;Ljava/lang/String;ILjava/lang/String;Lach$a;I)V
intermediary <init>
Lnet/minecraft/class_5514;<init>(Ljava/net/URI;Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_5514$class_5515;I)V
named <init>
Lnet/minecraft/server/filter/TextFilterer;<init>(Ljava/net/URI;Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/server/filter/TextFilterer$HashIgnorer;I)V
-
-
Method Details
-
load
- Mappings:
Namespace Name Mixin selector official a
Lach;a(Ljava/lang/String;)Lach;
intermediary method_33805
Lnet/minecraft/class_5514;method_33805(Ljava/lang/String;)Lnet/minecraft/class_5514;
named load
Lnet/minecraft/server/filter/TextFilterer;load(Ljava/lang/String;)Lnet/minecraft/server/filter/TextFilterer;
-
sendJoinOrLeaveRequest
private void sendJoinOrLeaveRequest(com.mojang.authlib.GameProfile gameProfile, URL endpoint, Executor executor)- Mappings:
Namespace Name Mixin selector official a
Lach;a(Lcom/mojang/authlib/GameProfile;Ljava/net/URL;Ljava/util/concurrent/Executor;)V
intermediary method_31299
Lnet/minecraft/class_5514;method_31299(Lcom/mojang/authlib/GameProfile;Ljava/net/URL;Ljava/util/concurrent/Executor;)V
named sendJoinOrLeaveRequest
Lnet/minecraft/server/filter/TextFilterer;sendJoinOrLeaveRequest(Lcom/mojang/authlib/GameProfile;Ljava/net/URL;Ljava/util/concurrent/Executor;)V
-
filterMessage
private CompletableFuture<TextStream.Message> filterMessage(com.mojang.authlib.GameProfile gameProfile, String message, TextFilterer.HashIgnorer ignorer, Executor executor)- Mappings:
Namespace Name Mixin selector official a
Lach;a(Lcom/mojang/authlib/GameProfile;Ljava/lang/String;Lach$a;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
intermediary method_31298
Lnet/minecraft/class_5514;method_31298(Lcom/mojang/authlib/GameProfile;Ljava/lang/String;Lnet/minecraft/class_5514$class_5515;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
named filterMessage
Lnet/minecraft/server/filter/TextFilterer;filterMessage(Lcom/mojang/authlib/GameProfile;Ljava/lang/String;Lnet/minecraft/server/filter/TextFilterer$HashIgnorer;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Mappings:
Namespace Name Mixin selector official close
Lach;close()V
intermediary close
Lnet/minecraft/class_5514;close()V
named close
Lnet/minecraft/server/filter/TextFilterer;close()V
-
consumeFully
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lach;a(Ljava/io/InputStream;)V
intermediary method_31300
Lnet/minecraft/class_5514;method_31300(Ljava/io/InputStream;)V
named consumeFully
Lnet/minecraft/server/filter/TextFilterer;consumeFully(Ljava/io/InputStream;)V
-
sendJsonRequest
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lach;a(Lcom/google/gson/JsonObject;Ljava/net/URL;)Lcom/google/gson/JsonObject;
intermediary method_31295
Lnet/minecraft/class_5514;method_31295(Lcom/google/gson/JsonObject;Ljava/net/URL;)Lcom/google/gson/JsonObject;
named sendJsonRequest
Lnet/minecraft/server/filter/TextFilterer;sendJsonRequest(Lcom/google/gson/JsonObject;Ljava/net/URL;)Lcom/google/gson/JsonObject;
-
sendRequest
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official b
Lach;b(Lcom/google/gson/JsonObject;Ljava/net/URL;)V
intermediary method_31304
Lnet/minecraft/class_5514;method_31304(Lcom/google/gson/JsonObject;Ljava/net/URL;)V
named sendRequest
Lnet/minecraft/server/filter/TextFilterer;sendRequest(Lcom/google/gson/JsonObject;Ljava/net/URL;)V
-
createConnection
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official c
Lach;c(Lcom/google/gson/JsonObject;Ljava/net/URL;)Ljava/net/HttpURLConnection;
intermediary method_31306
Lnet/minecraft/class_5514;method_31306(Lcom/google/gson/JsonObject;Ljava/net/URL;)Ljava/net/HttpURLConnection;
named createConnection
Lnet/minecraft/server/filter/TextFilterer;createConnection(Lcom/google/gson/JsonObject;Ljava/net/URL;)Ljava/net/HttpURLConnection;
-
createFilterer
- Mappings:
Namespace Name Mixin selector official a
Lach;a(Lcom/mojang/authlib/GameProfile;)Lacg;
intermediary method_31297
Lnet/minecraft/class_5514;method_31297(Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/class_5513;
named createFilterer
Lnet/minecraft/server/filter/TextFilterer;createFilterer(Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/server/filter/TextStream;
-