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 p_363560_, ServerTextFilter.MessageEncoder p_365315_, URL p_364476_, LegacyTextFilter.JoinOrLeaveEncoder p_360868_, URL p_365117_, LegacyTextFilter.JoinOrLeaveEncoder p_363479_, String p_364988_, ServerTextFilter.IgnoreStrategy p_364465_, ExecutorService p_365348_) -
Method Summary
Modifier and TypeMethodDescriptioncreateContext
(com.mojang.authlib.GameProfile p_364054_) static ServerTextFilter
createTextFilterFromConfig
(String p_363094_) 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 p_365203_) 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 p_363560_, ServerTextFilter.MessageEncoder p_365315_, URL p_364476_, LegacyTextFilter.JoinOrLeaveEncoder p_360868_, URL p_365117_, LegacyTextFilter.JoinOrLeaveEncoder p_363479_, String p_364988_, ServerTextFilter.IgnoreStrategy p_364465_, ExecutorService p_365348_)
-
-
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
-