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 final String
private final URL
(package private) final TextFilterClient.IgnoreStrategy
(package private) final URL
(package private) final URL
private static final org.slf4j.Logger
private final String
private final int
private final String
private static final ThreadFactory
private static final AtomicInteger
(package private) final ExecutorService
-
Constructor Summary
ModifierConstructorDescriptionprivate
TextFilterClient
(URL p_212236_, URL p_212237_, URL p_212238_, String p_212239_, int p_212240_, String p_212241_, String p_212242_, TextFilterClient.IgnoreStrategy p_212243_, int p_212244_) -
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 static URL
getEndpoint
(URI p_212246_, com.google.gson.JsonObject p_212247_, String p_212248_, String p_212249_) 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.slf4j.Logger LOGGER -
WORKER_COUNT
-
THREAD_FACTORY
-
chatEndpoint
-
joinEndpoint
-
leaveEndpoint
-
authKey
-
ruleId
private final int ruleId -
serverId
-
roomId
-
chatIgnoreStrategy
-
workerPool
-
-
Constructor Details
-
TextFilterClient
-
-
Method Details
-
getEndpoint
private static URL getEndpoint(URI p_212246_, @Nullable com.google.gson.JsonObject p_212247_, String p_212248_, String p_212249_) throws MalformedURLException - Throws:
MalformedURLException
-
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
-