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 interfaceNested classes/interfaces inherited from class net.minecraft.server.network.ServerTextFilter
ServerTextFilter.IgnoreStrategy, ServerTextFilter.MessageEncoder, ServerTextFilter.PlayerContext, ServerTextFilter.RequestFailedException -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate static final String(package private) final LegacyTextFilter.JoinOrLeaveEncoder(package private) final URL(package private) final LegacyTextFilter.JoinOrLeaveEncoder(package private) final URLFields inherited from class net.minecraft.server.network.ServerTextFilter
chatIgnoreStrategy, LOGGER, workerPool -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLegacyTextFilter(URL chatEndpoint, ServerTextFilter.MessageEncoder chatEncoder, URL joinEndpoint, LegacyTextFilter.JoinOrLeaveEncoder joinEncoder, URL leaveEndpoint, LegacyTextFilter.JoinOrLeaveEncoder leaveEncoder, String authKey, ServerTextFilter.IgnoreStrategy chatIgnoreStrategy, ExecutorService workerPool) -
Method Summary
Modifier and TypeMethodDescriptioncreateContext(com.mojang.authlib.GameProfile p_364054_) static ServerTextFiltercreateTextFilterFromConfig(String config) protected FilteredTextfilterText(String p_361804_, ServerTextFilter.IgnoreStrategy p_362791_, JsonObject p_364399_) (package private) voidprocessJoinOrLeave(com.mojang.authlib.GameProfile profile, URL endpoint, LegacyTextFilter.JoinOrLeaveEncoder encoder, Executor streamExecutor) private voidprocessRequest(JsonObject request, URL endpoint) protected voidsetAuthorizationProperty(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 chatEndpoint, ServerTextFilter.MessageEncoder chatEncoder, URL joinEndpoint, LegacyTextFilter.JoinOrLeaveEncoder joinEncoder, URL leaveEndpoint, LegacyTextFilter.JoinOrLeaveEncoder leaveEncoder, String authKey, ServerTextFilter.IgnoreStrategy chatIgnoreStrategy, ExecutorService workerPool)
-
-
Method Details
-
createTextFilterFromConfig
-
createContext
- Overrides:
createContextin classServerTextFilter
-
processJoinOrLeave
void processJoinOrLeave(com.mojang.authlib.GameProfile profile, URL endpoint, LegacyTextFilter.JoinOrLeaveEncoder encoder, Executor streamExecutor) -
processRequest
- Throws:
IOException
-
setAuthorizationProperty
- Specified by:
setAuthorizationPropertyin classServerTextFilter
-
filterText
protected FilteredText filterText(String p_361804_, ServerTextFilter.IgnoreStrategy p_362791_, JsonObject p_364399_) - Specified by:
filterTextin classServerTextFilter
-