类 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_365184_, ServerTextFilter.MessageEncoder p_364370_, ServerTextFilter.IgnoreStrategy p_362863_, ExecutorService p_361317_) -
方法概要
修饰符和类型方法说明void
close()
protected int
createContext
(com.mojang.authlib.GameProfile p_364881_) static ServerTextFilter
createFromConfig
(DedicatedServerProperties p_360477_) protected static ExecutorService
createWorkerPool
(int p_365438_) protected void
drainStream
(InputStream p_364540_) protected abstract FilteredText
filterText
(String p_361873_, ServerTextFilter.IgnoreStrategy p_364388_, com.google.gson.JsonObject p_365044_) protected static URL
getEndpoint
(URI p_362537_, com.google.gson.JsonObject p_363488_, String p_362892_, String p_363642_) protected static String
getEndpointFromConfig
(com.google.gson.JsonObject p_364584_, String p_360874_, String p_364672_) protected HttpURLConnection
getURLConnection
(URL p_364237_) protected HttpURLConnection
makeRequest
(com.google.gson.JsonObject p_365284_, URL p_360402_) protected FilterMask
parseMask
(String p_360987_, com.google.gson.JsonArray p_362850_, ServerTextFilter.IgnoreStrategy p_361890_) private com.google.gson.JsonObject
processRequestResponse
(com.google.gson.JsonObject p_360751_, URL p_364299_) protected CompletableFuture
<FilteredText> requestMessageProcessing
(com.mojang.authlib.GameProfile p_362002_, String p_365325_, ServerTextFilter.IgnoreStrategy p_363966_, Executor p_363262_) protected abstract void
setAuthorizationProperty
(HttpURLConnection p_361800_)
-
字段详细资料
-
LOGGER
protected static final org.slf4j.Logger LOGGER -
WORKER_COUNT
-
THREAD_FACTORY
-
chatEndpoint
-
chatEncoder
-
chatIgnoreStrategy
-
workerPool
-
-
构造器详细资料
-
ServerTextFilter
protected ServerTextFilter(URL p_365184_, ServerTextFilter.MessageEncoder p_364370_, ServerTextFilter.IgnoreStrategy p_362863_, ExecutorService p_361317_)
-
-
方法详细资料
-
createWorkerPool
-
getEndpoint
protected static URL getEndpoint(URI p_362537_, @Nullable com.google.gson.JsonObject p_363488_, String p_362892_, String p_363642_) throws MalformedURLException -
getEndpointFromConfig
-
createFromConfig
-
requestMessageProcessing
protected CompletableFuture<FilteredText> requestMessageProcessing(com.mojang.authlib.GameProfile p_362002_, String p_365325_, ServerTextFilter.IgnoreStrategy p_363966_, Executor p_363262_) -
filterText
protected abstract FilteredText filterText(String p_361873_, ServerTextFilter.IgnoreStrategy p_364388_, com.google.gson.JsonObject p_365044_) -
parseMask
protected FilterMask parseMask(String p_360987_, com.google.gson.JsonArray p_362850_, ServerTextFilter.IgnoreStrategy p_361890_) -
close
public void close()- 指定者:
close
在接口中AutoCloseable
-
drainStream
- 抛出:
IOException
-
processRequestResponse
private com.google.gson.JsonObject processRequestResponse(com.google.gson.JsonObject p_360751_, URL p_364299_) throws IOException - 抛出:
IOException
-
makeRequest
protected HttpURLConnection makeRequest(com.google.gson.JsonObject p_365284_, URL p_360402_) throws IOException - 抛出:
IOException
-
setAuthorizationProperty
-
connectionReadTimeout
protected int connectionReadTimeout() -
getURLConnection
- 抛出:
IOException
-
createContext
-