Package net.minecraft.server.network
Class TextFilterClient
java.lang.Object
net.minecraft.server.network.TextFilterClient
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
(package private) class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private URL
(package private) TextFilterClient.IgnoreStrategy
(package private) URL
(package private) URL
private static org.apache.logging.log4j.Logger
private int
private String
private static ThreadFactory
private static AtomicInteger
(package private) ExecutorService
-
Constructor Summary
ModifierConstructorDescriptionprivate
TextFilterClient(URI p_143726_, String p_143727_, int p_143728_, String p_143729_, TextFilterClient.IgnoreStrategy p_143730_, int p_143731_)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
createContext(com.mojang.authlib.GameProfile p_10135_)
static TextFilterClient
createFromConfig(String p_143737_)
private void
drainStream(InputStream p_10146_)
private HttpURLConnection
makeRequest(com.google.gson.JsonObject p_10157_, URL p_10158_)
(package private) void
processJoinOrLeave(com.mojang.authlib.GameProfile p_10142_, URL p_10143_, Executor p_10144_)
private void
processRequest(com.google.gson.JsonObject p_10152_, URL p_10153_)
private com.google.gson.JsonObject
processRequestResponse(com.google.gson.JsonObject p_10128_, URL p_10129_)
(package private) CompletableFuture<TextFilter.FilteredText>
requestMessageProcessing(com.mojang.authlib.GameProfile p_10137_, String p_10138_, TextFilterClient.IgnoreStrategy p_10139_, Executor p_10140_)
-
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 -
serverId
-
chatIgnoreStrategy
-
workerPool
-
-
Constructor Details
-
TextFilterClient
private TextFilterClient(URI p_143726_, String p_143727_, int p_143728_, String p_143729_, TextFilterClient.IgnoreStrategy p_143730_, int p_143731_) throws MalformedURLException- Throws:
MalformedURLException
-
-
Method Details
-
createFromConfig
-
processJoinOrLeave
-
requestMessageProcessing
CompletableFuture<TextFilter.FilteredText> requestMessageProcessing(com.mojang.authlib.GameProfile p_10137_, String p_10138_, TextFilterClient.IgnoreStrategy p_10139_, Executor p_10140_) -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
drainStream
- Throws:
IOException
-
processRequestResponse
private com.google.gson.JsonObject processRequestResponse(com.google.gson.JsonObject p_10128_, URL p_10129_) throws IOException- Throws:
IOException
-
processRequest
- Throws:
IOException
-
makeRequest
private HttpURLConnection makeRequest(com.google.gson.JsonObject p_10157_, URL p_10158_) throws IOException- Throws:
IOException
-
createContext
-