Package net.minecraft.util.text.filter
Class ChatFilterClient
java.lang.Object
net.minecraft.util.text.filter.ChatFilterClient
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static interface
(package private) class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
private final URL
private final ChatFilterClient.IIgnoreTest
private final URL
private final URL
private static final org.apache.logging.log4j.Logger
private final int
private final String
private static final ThreadFactory
private static final AtomicInteger
private final ExecutorService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
createContext
(com.mojang.authlib.GameProfile p_244566_1_) private void
drainStream
(InputStream p_244569_1_) private HttpURLConnection
makeRequest
(com.google.gson.JsonObject p_244575_1_, URL p_244575_2_) private void
processJoinOrLeave
(com.mojang.authlib.GameProfile p_244568_1_, URL p_244568_2_, Executor p_244568_3_) private void
processRequest
(com.google.gson.JsonObject p_244573_1_, URL p_244573_2_) private com.google.gson.JsonObject
processRequestResponse
(com.google.gson.JsonObject p_244564_1_, URL p_244564_2_) private CompletableFuture<Optional<String>>
requestMessageProcessing
(com.mojang.authlib.GameProfile p_244567_1_, String p_244567_2_, ChatFilterClient.IIgnoreTest p_244567_3_, Executor p_244567_4_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
WORKER_COUNT
-
THREAD_FACTORY
-
chatEndpoint
-
joinEndpoint
-
leaveEndpoint
-
authKey
-
ruleId
private final int ruleId- See Also:
-
serverId
-
chatIgnoreStrategy
-
workerPool
-
-
Constructor Details
-
ChatFilterClient
private ChatFilterClient()
-
-
Method Details
-
processJoinOrLeave
-
requestMessageProcessing
private CompletableFuture<Optional<String>> requestMessageProcessing(com.mojang.authlib.GameProfile p_244567_1_, String p_244567_2_, ChatFilterClient.IIgnoreTest p_244567_3_, Executor p_244567_4_) -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
drainStream
- Throws:
IOException
-
processRequestResponse
private com.google.gson.JsonObject processRequestResponse(com.google.gson.JsonObject p_244564_1_, URL p_244564_2_) throws IOException - Throws:
IOException
-
processRequest
private void processRequest(com.google.gson.JsonObject p_244573_1_, URL p_244573_2_) throws IOException - Throws:
IOException
-
makeRequest
private HttpURLConnection makeRequest(com.google.gson.JsonObject p_244575_1_, URL p_244575_2_) throws IOException - Throws:
IOException
-
createContext
-