类 ServerTextFilter
java.lang.Object
net.minecraft.server.network.ServerTextFilter
- 所有已实现的接口:
AutoCloseable
-
嵌套类概要
嵌套类修饰符和类型类说明static interface
protected static interface
protected class
protected static class
-
字段概要
字段修饰符和类型字段说明private final ServerTextFilter.MessageEncoder
private final URL
(专用程序包) final ServerTextFilter.IgnoreStrategy
protected static final org.slf4j.Logger
private static final ThreadFactory
private static final AtomicInteger
(专用程序包) final ExecutorService
-
构造器概要
构造器限定符构造器说明protected
ServerTextFilter
(URL p_364797_, ServerTextFilter.MessageEncoder p_361949_, ServerTextFilter.IgnoreStrategy p_370136_, ExecutorService p_369238_) -
方法概要
修饰符和类型方法说明void
close()
protected int
createContext
(com.mojang.authlib.GameProfile p_364200_) static ServerTextFilter
createFromConfig
(DedicatedServerProperties p_365465_) protected static ExecutorService
createWorkerPool
(int p_360924_) protected void
drainStream
(InputStream p_362205_) protected abstract FilteredText
filterText
(String p_368106_, ServerTextFilter.IgnoreStrategy p_370195_, com.google.gson.JsonObject p_368275_) protected static URL
getEndpoint
(URI p_362612_, com.google.gson.JsonObject p_362365_, String p_369987_, String p_360990_) protected static String
getEndpointFromConfig
(com.google.gson.JsonObject p_364044_, String p_360878_, String p_365862_) protected HttpURLConnection
getURLConnection
(URL p_365457_) protected HttpURLConnection
makeRequest
(com.google.gson.JsonObject p_365844_, URL p_361087_) protected FilterMask
parseMask
(String p_365656_, com.google.gson.JsonArray p_365004_, ServerTextFilter.IgnoreStrategy p_366306_) private com.google.gson.JsonObject
processRequestResponse
(com.google.gson.JsonObject p_369256_, URL p_367030_) protected CompletableFuture
<FilteredText> requestMessageProcessing
(com.mojang.authlib.GameProfile p_370178_, String p_362939_, ServerTextFilter.IgnoreStrategy p_364336_, Executor p_367327_) protected abstract void
setAuthorizationProperty
(HttpURLConnection p_369971_)
-
字段详细资料
-
LOGGER
protected static final org.slf4j.Logger LOGGER -
WORKER_COUNT
-
THREAD_FACTORY
-
chatEndpoint
-
chatEncoder
-
chatIgnoreStrategy
-
workerPool
-
-
构造器详细资料
-
ServerTextFilter
protected ServerTextFilter(URL p_364797_, ServerTextFilter.MessageEncoder p_361949_, ServerTextFilter.IgnoreStrategy p_370136_, ExecutorService p_369238_)
-
-
方法详细资料
-
createWorkerPool
-
getEndpoint
protected static URL getEndpoint(URI p_362612_, @Nullable com.google.gson.JsonObject p_362365_, String p_369987_, String p_360990_) throws MalformedURLException -
getEndpointFromConfig
-
createFromConfig
-
requestMessageProcessing
protected CompletableFuture<FilteredText> requestMessageProcessing(com.mojang.authlib.GameProfile p_370178_, String p_362939_, ServerTextFilter.IgnoreStrategy p_364336_, Executor p_367327_) -
filterText
protected abstract FilteredText filterText(String p_368106_, ServerTextFilter.IgnoreStrategy p_370195_, com.google.gson.JsonObject p_368275_) -
parseMask
protected FilterMask parseMask(String p_365656_, com.google.gson.JsonArray p_365004_, ServerTextFilter.IgnoreStrategy p_366306_) -
close
public void close()- 指定者:
close
在接口中AutoCloseable
-
drainStream
- 抛出:
IOException
-
processRequestResponse
private com.google.gson.JsonObject processRequestResponse(com.google.gson.JsonObject p_369256_, URL p_367030_) throws IOException - 抛出:
IOException
-
makeRequest
protected HttpURLConnection makeRequest(com.google.gson.JsonObject p_365844_, URL p_361087_) throws IOException - 抛出:
IOException
-
setAuthorizationProperty
-
connectionReadTimeout
protected int connectionReadTimeout() -
getURLConnection
- 抛出:
IOException
-
createContext
-