net.minecraft.server.network

public class TextFilterClient

implements AutoCloseable

alv
net.minecraft.server.network.TextFilterClient
net.minecraft.class_5514
net.minecraft.server.filter.TextFilterer
net.minecraft.src.C_42_
net.minecraft.server.network.TextFilter

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
a
LOGGER
field_26823
LOGGER
f_10098_
private static final AtomicInteger
b
WORKER_COUNT
field_26824
NEXT_WORKER_ID
f_10099_
private static final ThreadFactory
c
THREAD_FACTORY
field_26825
THREAD_FACTORY
f_10100_
private static final String
d
DEFAULT_ENDPOINT
field_38055
CHAT_ENDPOINT
f_215270_
private final URL
e
chatEndpoint
field_26826
chatEndpoint
f_10101_
private final TextFilterClient$MessageEncoder
f
chatEncoder
field_38056
messageEncoder
f_215271_
final URL
g
joinEndpoint
field_26827
joinEndpoint
f_10102_
final TextFilterClient$JoinOrLeaveEncoder
h
joinEncoder
field_38057
joinEncoder
f_215272_
final URL
i
leaveEndpoint
field_26828
leaveEndpoint
f_10103_
final TextFilterClient$JoinOrLeaveEncoder
j
leaveEncoder
field_38058
leaveEncoder
f_215273_
private final String
k
authKey
field_26829
apiKey
f_10104_
final TextFilterClient$IgnoreStrategy
l
chatIgnoreStrategy
field_26832
ignorer
f_10107_
final ExecutorService
m
workerPool
field_26833
executor
f_10108_

Constructor summary

ModifierConstructor
private (URL chatEndpoint, TextFilterClient$MessageEncoder messageEncoder, URL joinEndpoint, TextFilterClient$JoinOrLeaveEncoder joinEncoder, URL leaveEndpoint, TextFilterClient$JoinOrLeaveEncoder leaveEncoder, String apiKey, TextFilterClient$IgnoreStrategy ignorer, int parallelism)

Method summary

Modifier and TypeMethod
private static URL
a(URI arg0, com.google.gson.JsonObject arg1, String arg2, String arg3)
getEndpoint(URI arg0, com.google.gson.JsonObject arg1, String arg2, String arg3)
method_41206(URI arg0, com.google.gson.JsonObject arg1, String arg2, String arg3)
getEndpoint(URI root, com.google.gson.JsonObject endpoints, String key, String fallback)
m_212245_(URI p_212246_, com.google.gson.JsonObject p_212247_, String p_212248_, String p_212249_)
private static String
a(com.google.gson.JsonObject arg0, String arg1, String arg2)
getEndpointFromConfig(com.google.gson.JsonObject arg0, String arg1, String arg2)
method_42111(com.google.gson.JsonObject arg0, String arg1, String arg2)
getValue(com.google.gson.JsonObject json, String key, String fallback)
m_215294_(com.google.gson.JsonObject p_215295_, String p_215296_, String p_215297_)
public static TextFilterClient
a(String arg0)
createFromConfig(String arg0)
method_33805(String arg0)
load(String config)
m_143736_(String p_143737_)
void
a(com.mojang.authlib.GameProfile arg0, URL arg1, alv$b arg2, Executor arg3)
processJoinOrLeave(com.mojang.authlib.GameProfile arg0, URL arg1, TextFilterClient$JoinOrLeaveEncoder arg2, Executor arg3)
method_31299(com.mojang.authlib.GameProfile arg0, URL arg1, class_5514$class_7241 arg2, Executor arg3)
sendJoinOrLeaveRequest(com.mojang.authlib.GameProfile gameProfile, URL endpoint, TextFilterer$ProfileEncoder profileEncoder, Executor executor)
m_215302_(com.mojang.authlib.GameProfile p_215304_, URL p_215305_, C_42_$C_212941_ p_215306_, Executor arg3)
CompletableFuture<FilteredText>
a(com.mojang.authlib.GameProfile arg0, String arg1, alv$a arg2, Executor arg3)
requestMessageProcessing(com.mojang.authlib.GameProfile arg0, String arg1, TextFilterClient$IgnoreStrategy arg2, Executor arg3)
method_31298(com.mojang.authlib.GameProfile arg0, String arg1, class_5514$class_5515 arg2, Executor arg3)
filterMessage(com.mojang.authlib.GameProfile gameProfile, String message, TextFilterer$HashIgnorer ignorer, Executor executor)
m_10136_(com.mojang.authlib.GameProfile p_10138_, String p_10139_, C_42_$C_44_ p_10140_, Executor arg3)
private FilterMask
a(String arg0, com.google.gson.JsonArray arg1, alv$a arg2)
parseMask(String arg0, com.google.gson.JsonArray arg1, TextFilterClient$IgnoreStrategy arg2)
method_45066(String arg0, com.google.gson.JsonArray arg1, class_5514$class_5515 arg2)
getMask(String message, com.google.gson.JsonArray mask, TextFilterer$HashIgnorer ignorer)
m_243083_(String p_243222_, com.google.gson.JsonArray p_243237_, C_42_$C_44_ arg2)
public void
close()
close()
close()
private void
a(InputStream arg0)
drainStream(InputStream arg0)
method_31300(InputStream arg0)
consumeFully(InputStream inputStream)
m_10145_(InputStream arg0)
private com.google.gson.JsonObject
a(com.google.gson.JsonObject arg0, URL arg1)
processRequestResponse(com.google.gson.JsonObject arg0, URL arg1)
method_31295(com.google.gson.JsonObject arg0, URL arg1)
sendJsonRequest(com.google.gson.JsonObject payload, URL endpoint)
m_10127_(com.google.gson.JsonObject p_10129_, URL arg1)
private void
b(com.google.gson.JsonObject arg0, URL arg1)
processRequest(com.google.gson.JsonObject arg0, URL arg1)
method_31304(com.google.gson.JsonObject arg0, URL arg1)
sendRequest(com.google.gson.JsonObject payload, URL endpoint)
m_10151_(com.google.gson.JsonObject p_10153_, URL arg1)
private HttpURLConnection
c(com.google.gson.JsonObject arg0, URL arg1)
makeRequest(com.google.gson.JsonObject arg0, URL arg1)
method_31306(com.google.gson.JsonObject arg0, URL arg1)
createConnection(com.google.gson.JsonObject payload, URL endpoint)
m_10156_(com.google.gson.JsonObject p_10158_, URL arg1)
public TextFilter
a(com.mojang.authlib.GameProfile arg0)
createContext(com.mojang.authlib.GameProfile arg0)
method_31297(com.mojang.authlib.GameProfile arg0)
createFilterer(com.mojang.authlib.GameProfile gameProfile)
m_10134_(com.mojang.authlib.GameProfile arg0)