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 profile) static ServerTextFiltercreateTextFilterFromConfig(String config) protected FilteredTextfilterText(String text, ServerTextFilter.IgnoreStrategy ignoreStrategy, JsonObject response) (package private) voidprocessJoinOrLeave(com.mojang.authlib.GameProfile profile, URL endpoint, LegacyTextFilter.JoinOrLeaveEncoder encoder, Executor streamExecutor) private voidprocessRequest(JsonObject request, URL endpoint) protected voidsetAuthorizationProperty(HttpURLConnection connection) 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 text, ServerTextFilter.IgnoreStrategy ignoreStrategy, JsonObject response) - Specified by:
filterTextin classServerTextFilter
-