Package net.minecraft.server.network
Class LegacyTextFilter
java.lang.Object
net.minecraft.server.network.ServerTextFilter
net.minecraft.server.network.LegacyTextFilter
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interface
Nested classes/interfaces inherited from class net.minecraft.server.network.ServerTextFilter
ServerTextFilter.IgnoreStrategy, ServerTextFilter.MessageEncoder, ServerTextFilter.PlayerContext, ServerTextFilter.RequestFailedException
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private static final String
(package private) final LegacyTextFilter.JoinOrLeaveEncoder
(package private) final URL
(package private) final LegacyTextFilter.JoinOrLeaveEncoder
(package private) final URL
Fields inherited from class net.minecraft.server.network.ServerTextFilter
chatIgnoreStrategy, LOGGER, workerPool
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
LegacyTextFilter
(URL pChatEndpoint, ServerTextFilter.MessageEncoder pChatEncoder, URL pJoinEndpoint, LegacyTextFilter.JoinOrLeaveEncoder pJoinEncoder, URL pLeaveEndpoint, LegacyTextFilter.JoinOrLeaveEncoder pLeaveEncoder, String pAuthKey, ServerTextFilter.IgnoreStrategy pChatIgnoreStrategy, ExecutorService pWorkerPool) -
Method Summary
Modifier and TypeMethodDescriptioncreateContext
(com.mojang.authlib.GameProfile p_364054_) static ServerTextFilter
createTextFilterFromConfig
(String pConfig) protected FilteredText
filterText
(String p_361804_, ServerTextFilter.IgnoreStrategy p_362791_, com.google.gson.JsonObject p_364399_) (package private) void
processJoinOrLeave
(com.mojang.authlib.GameProfile p_364281_, URL p_364927_, LegacyTextFilter.JoinOrLeaveEncoder p_362293_, Executor p_363061_) private void
processRequest
(com.google.gson.JsonObject p_364402_, URL p_360408_) protected void
setAuthorizationProperty
(HttpURLConnection pConnection) Methods inherited from class net.minecraft.server.network.ServerTextFilter
close, connectionReadTimeout, createFromConfig, createWorkerPool, drainStream, getEndpoint, getEndpointFromConfig, getURLConnection, makeRequest, parseMask, requestMessageProcessing
-
Field Details
-
ENDPOINT
- See Also:
-
joinEndpoint
-
joinEncoder
-
leaveEndpoint
-
leaveEncoder
-
authKey
-
-
Constructor Details
-
LegacyTextFilter
private LegacyTextFilter(URL pChatEndpoint, ServerTextFilter.MessageEncoder pChatEncoder, URL pJoinEndpoint, LegacyTextFilter.JoinOrLeaveEncoder pJoinEncoder, URL pLeaveEndpoint, LegacyTextFilter.JoinOrLeaveEncoder pLeaveEncoder, String pAuthKey, ServerTextFilter.IgnoreStrategy pChatIgnoreStrategy, ExecutorService pWorkerPool)
-
-
Method Details
-
createTextFilterFromConfig
-
createContext
- Overrides:
createContext
in classServerTextFilter
-
processJoinOrLeave
void processJoinOrLeave(com.mojang.authlib.GameProfile p_364281_, URL p_364927_, LegacyTextFilter.JoinOrLeaveEncoder p_362293_, Executor p_363061_) -
processRequest
- Throws:
IOException
-
setAuthorizationProperty
- Specified by:
setAuthorizationProperty
in classServerTextFilter
-
filterText
protected FilteredText filterText(String p_361804_, ServerTextFilter.IgnoreStrategy p_362791_, com.google.gson.JsonObject p_364399_) - Specified by:
filterText
in classServerTextFilter
-