net.minecraft.server.filter

public abstract class AbstractTextFilterer

implements AutoCloseable

net.minecraft.server.network.ServerTextFilter
net.minecraft.server.network.ServerTextFilter
net.minecraft.class_9847
net.minecraft.server.filter.AbstractTextFilterer

Field summary

Modifier and TypeField
protected static final org.slf4j.Logger
LOGGER
LOGGER
field_52365
LOGGER
private static final AtomicInteger
WORKER_COUNT
WORKER_COUNT
field_52366
WORKER_ID
private static final ThreadFactory
THREAD_FACTORY
THREAD_FACTORY
field_52367
THREAD_FACTORY
private final URL
chatEndpoint
chatEndpoint
field_52368
url
private final AbstractTextFilterer$MessageEncoder
chatEncoder
chatEncoder
field_52369
messageEncoder
private final AbstractTextFilterer$HashIgnorer
chatIgnoreStrategy
chatIgnoreStrategy
field_52370
hashIgnorer
private final ExecutorService
workerPool
workerPool
field_52371
threadPool

Constructor summary

ModifierConstructor
protected (URL url, AbstractTextFilterer$MessageEncoder messageEncoder, AbstractTextFilterer$HashIgnorer hashIgnorer, ExecutorService threadPool)

Method summary

Modifier and TypeMethod
protected static ExecutorService
createWorkerPool(int maxConcurrentRequests)
createWorkerPool(int maxConcurrentRequests)
method_61291(int arg0)
newThreadPool(int threadCount)
protected static URL
getEndpoint(URI host, com.google.gson.JsonObject source, String id, String def)
getEndpoint(URI host, com.google.gson.JsonObject source, String id, String def)
method_61300(URI arg0, com.google.gson.JsonObject arg1, String arg2, String arg3)
resolveEndpoint(URI uri, com.google.gson.JsonObject endpoints, String key, String defaultPath)
protected static String
getEndpointFromConfig(com.google.gson.JsonObject source, String id, String def)
getEndpointFromConfig(com.google.gson.JsonObject source, String id, String def)
method_61293(com.google.gson.JsonObject arg0, String arg1, String arg2)
getEndpointPath(com.google.gson.JsonObject endpoints, String key, String defaultPath)
public static AbstractTextFilterer
createFromConfig(DedicatedServerProperties config)
createFromConfig(DedicatedServerProperties config)
method_61292(class_3806 arg0)
createTextFilter(ServerPropertiesHandler properties)
protected CompletableFuture<FilteredMessage>
requestMessageProcessing(com.mojang.authlib.GameProfile sender, String message, ServerTextFilter$IgnoreStrategy ignoreStrategy, Executor executor)
requestMessageProcessing(com.mojang.authlib.GameProfile sender, String message, ServerTextFilter$IgnoreStrategy ignoreStrategy, Executor executor)
method_61296(com.mojang.authlib.GameProfile arg0, String arg1, class_9847$class_5515 arg2, Executor arg3)
filter(com.mojang.authlib.GameProfile profile, String raw, AbstractTextFilterer$HashIgnorer hashIgnorer, Executor executor)
protected abstract FilteredMessage
filterText(String message, ServerTextFilter$IgnoreStrategy ignoreStrategy, com.google.gson.JsonObject result)
filterText(String message, ServerTextFilter$IgnoreStrategy ignoreStrategy, com.google.gson.JsonObject result)
method_61281(String arg0, class_9847$class_5515 arg1, com.google.gson.JsonObject arg2)
filter(String raw, AbstractTextFilterer$HashIgnorer hashIgnorer, com.google.gson.JsonObject response)
protected FilterMask
parseMask(String message, com.google.gson.JsonArray removedChars, ServerTextFilter$IgnoreStrategy ignoreStrategy)
parseMask(String message, com.google.gson.JsonArray removedChars, ServerTextFilter$IgnoreStrategy ignoreStrategy)
method_61299(String arg0, com.google.gson.JsonArray arg1, class_9847$class_5515 arg2)
createFilterMask(String raw, com.google.gson.JsonArray redactedTextIndex, AbstractTextFilterer$HashIgnorer hashIgnorer)
public void
close()
close()
protected void
drainStream(InputStream input)
drainStream(InputStream input)
method_61297(InputStream arg0)
discardRestOfInput(InputStream stream)
private com.google.gson.JsonObject
processRequestResponse(com.google.gson.JsonObject payload, URL url)
processRequestResponse(com.google.gson.JsonObject payload, URL url)
method_61302(com.google.gson.JsonObject arg0, URL arg1)
request(com.google.gson.JsonObject request, URL url)
protected HttpURLConnection
makeRequest(com.google.gson.JsonObject payload, URL url)
makeRequest(com.google.gson.JsonObject payload, URL url)
method_61294(com.google.gson.JsonObject arg0, URL arg1)
openConnection(com.google.gson.JsonObject request, URL url)
protected abstract void
setAuthorizationProperty(HttpURLConnection connection)
setAuthorizationProperty(HttpURLConnection connection)
method_61284(HttpURLConnection arg0)
addAuthentication(HttpURLConnection connection)
protected int
connectionReadTimeout()
connectionReadTimeout()
method_61285()
getReadTimeout()
protected HttpURLConnection
getURLConnection(URL url)
getURLConnection(URL url)
method_61301(URL arg0)
openConnection(URL url)
public TextStream
createContext(com.mojang.authlib.GameProfile gameProfile)
createContext(com.mojang.authlib.GameProfile gameProfile)
method_31297(com.mojang.authlib.GameProfile arg0)
createFilterer(com.mojang.authlib.GameProfile profile)