Class AbstractTextFilterer

java.lang.Object
net.minecraft.server.filter.AbstractTextFilterer
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
V0TextFilterer, V1TextFilterer

public abstract class AbstractTextFilterer extends Object implements AutoCloseable
Mappings:
Namespace Name
named net/minecraft/server/filter/AbstractTextFilterer
intermediary net/minecraft/class_9847
official atp
  • Field Details

    • LOGGER

      protected static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/server/filter/AbstractTextFilterer;LOGGER:Lorg/slf4j/Logger;
      intermediary field_52365 Lnet/minecraft/class_9847;field_52365:Lorg/slf4j/Logger;
      official a Latp;a:Lorg/slf4j/Logger;
    • WORKER_ID

      private static final AtomicInteger WORKER_ID
      Mappings:
      Namespace Name Mixin selector
      named WORKER_ID Lnet/minecraft/server/filter/AbstractTextFilterer;WORKER_ID:Ljava/util/concurrent/atomic/AtomicInteger;
      intermediary field_52366 Lnet/minecraft/class_9847;field_52366:Ljava/util/concurrent/atomic/AtomicInteger;
      official b Latp;b:Ljava/util/concurrent/atomic/AtomicInteger;
    • THREAD_FACTORY

      private static final ThreadFactory THREAD_FACTORY
      Mappings:
      Namespace Name Mixin selector
      named THREAD_FACTORY Lnet/minecraft/server/filter/AbstractTextFilterer;THREAD_FACTORY:Ljava/util/concurrent/ThreadFactory;
      intermediary field_52367 Lnet/minecraft/class_9847;field_52367:Ljava/util/concurrent/ThreadFactory;
      official c Latp;c:Ljava/util/concurrent/ThreadFactory;
    • url

      private final URL url
      Mappings:
      Namespace Name Mixin selector
      named url Lnet/minecraft/server/filter/AbstractTextFilterer;url:Ljava/net/URL;
      intermediary field_52368 Lnet/minecraft/class_9847;field_52368:Ljava/net/URL;
      official d Latp;d:Ljava/net/URL;
    • messageEncoder

      private final AbstractTextFilterer.MessageEncoder messageEncoder
      Mappings:
      Namespace Name Mixin selector
      named messageEncoder Lnet/minecraft/server/filter/AbstractTextFilterer;messageEncoder:Lnet/minecraft/server/filter/AbstractTextFilterer$MessageEncoder;
      intermediary field_52369 Lnet/minecraft/class_9847;field_52369:Lnet/minecraft/class_9847$class_7242;
      official e Latp;e:Latp$b;
    • hashIgnorer

      Mappings:
      Namespace Name Mixin selector
      named hashIgnorer Lnet/minecraft/server/filter/AbstractTextFilterer;hashIgnorer:Lnet/minecraft/server/filter/AbstractTextFilterer$HashIgnorer;
      intermediary field_52370 Lnet/minecraft/class_9847;field_52370:Lnet/minecraft/class_9847$class_5515;
      official f Latp;f:Latp$a;
    • threadPool

      final ExecutorService threadPool
      Mappings:
      Namespace Name Mixin selector
      named threadPool Lnet/minecraft/server/filter/AbstractTextFilterer;threadPool:Ljava/util/concurrent/ExecutorService;
      intermediary field_52371 Lnet/minecraft/class_9847;field_52371:Ljava/util/concurrent/ExecutorService;
      official g Latp;g:Ljava/util/concurrent/ExecutorService;
  • Constructor Details

    • AbstractTextFilterer

      protected AbstractTextFilterer(URL url, AbstractTextFilterer.MessageEncoder messageEncoder, AbstractTextFilterer.HashIgnorer hashIgnorer, ExecutorService threadPool)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/filter/AbstractTextFilterer;<init>(Ljava/net/URL;Lnet/minecraft/server/filter/AbstractTextFilterer$MessageEncoder;Lnet/minecraft/server/filter/AbstractTextFilterer$HashIgnorer;Ljava/util/concurrent/ExecutorService;)V
      intermediary <init> Lnet/minecraft/class_9847;<init>(Ljava/net/URL;Lnet/minecraft/class_9847$class_7242;Lnet/minecraft/class_9847$class_5515;Ljava/util/concurrent/ExecutorService;)V
      official <init> Latp;<init>(Ljava/net/URL;Latp$b;Latp$a;Ljava/util/concurrent/ExecutorService;)V
  • Method Details

    • newThreadPool

      protected static ExecutorService newThreadPool(int threadCount)
      Mappings:
      Namespace Name Mixin selector
      named newThreadPool Lnet/minecraft/server/filter/AbstractTextFilterer;newThreadPool(I)Ljava/util/concurrent/ExecutorService;
      intermediary method_61291 Lnet/minecraft/class_9847;method_61291(I)Ljava/util/concurrent/ExecutorService;
      official a Latp;a(I)Ljava/util/concurrent/ExecutorService;
    • resolveEndpoint

      protected static URL resolveEndpoint(URI uri, @Nullable @Nullable JsonObject endpoints, String key, String defaultPath) throws MalformedURLException
      Throws:
      MalformedURLException
      Mappings:
      Namespace Name Mixin selector
      named resolveEndpoint Lnet/minecraft/server/filter/AbstractTextFilterer;resolveEndpoint(Ljava/net/URI;Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/String;)Ljava/net/URL;
      intermediary method_61300 Lnet/minecraft/class_9847;method_61300(Ljava/net/URI;Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/String;)Ljava/net/URL;
      official a Latp;a(Ljava/net/URI;Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/String;)Ljava/net/URL;
    • getEndpointPath

      protected static String getEndpointPath(@Nullable @Nullable JsonObject endpoints, String key, String defaultPath)
      Mappings:
      Namespace Name Mixin selector
      named getEndpointPath Lnet/minecraft/server/filter/AbstractTextFilterer;getEndpointPath(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
      intermediary method_61293 Lnet/minecraft/class_9847;method_61293(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
      official a Latp;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    • createTextFilter

      @Nullable public static @Nullable AbstractTextFilterer createTextFilter(ServerPropertiesHandler properties)
      Mappings:
      Namespace Name Mixin selector
      named createTextFilter Lnet/minecraft/server/filter/AbstractTextFilterer;createTextFilter(Lnet/minecraft/server/dedicated/ServerPropertiesHandler;)Lnet/minecraft/server/filter/AbstractTextFilterer;
      intermediary method_61292 Lnet/minecraft/class_9847;method_61292(Lnet/minecraft/class_3806;)Lnet/minecraft/class_9847;
      official a Latp;a(Laqz;)Latp;
    • filter

      protected CompletableFuture<FilteredMessage> filter(com.mojang.authlib.GameProfile profile, String raw, AbstractTextFilterer.HashIgnorer hashIgnorer, Executor executor)
      Mappings:
      Namespace Name Mixin selector
      named filter Lnet/minecraft/server/filter/AbstractTextFilterer;filter(Lcom/mojang/authlib/GameProfile;Ljava/lang/String;Lnet/minecraft/server/filter/AbstractTextFilterer$HashIgnorer;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_61296 Lnet/minecraft/class_9847;method_61296(Lcom/mojang/authlib/GameProfile;Ljava/lang/String;Lnet/minecraft/class_9847$class_5515;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      official a Latp;a(Lcom/mojang/authlib/GameProfile;Ljava/lang/String;Latp$a;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
    • filter

      protected abstract FilteredMessage filter(String raw, AbstractTextFilterer.HashIgnorer hashIgnorer, JsonObject response)
      Mappings:
      Namespace Name Mixin selector
      named filter Lnet/minecraft/server/filter/AbstractTextFilterer;filter(Ljava/lang/String;Lnet/minecraft/server/filter/AbstractTextFilterer$HashIgnorer;Lcom/google/gson/JsonObject;)Lnet/minecraft/server/filter/FilteredMessage;
      intermediary method_61281 Lnet/minecraft/class_9847;method_61281(Ljava/lang/String;Lnet/minecraft/class_9847$class_5515;Lcom/google/gson/JsonObject;)Lnet/minecraft/class_5837;
      official a Latp;a(Ljava/lang/String;Latp$a;Lcom/google/gson/JsonObject;)Lata;
    • createFilterMask

      protected FilterMask createFilterMask(String raw, JsonArray redactedTextIndex, AbstractTextFilterer.HashIgnorer hashIgnorer)
      Mappings:
      Namespace Name Mixin selector
      named createFilterMask Lnet/minecraft/server/filter/AbstractTextFilterer;createFilterMask(Ljava/lang/String;Lcom/google/gson/JsonArray;Lnet/minecraft/server/filter/AbstractTextFilterer$HashIgnorer;)Lnet/minecraft/network/message/FilterMask;
      intermediary method_61299 Lnet/minecraft/class_9847;method_61299(Ljava/lang/String;Lcom/google/gson/JsonArray;Lnet/minecraft/class_9847$class_5515;)Lnet/minecraft/class_7649;
      official a Latp;a(Ljava/lang/String;Lcom/google/gson/JsonArray;Latp$a;)Lxz;
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • discardRestOfInput

      protected void discardRestOfInput(InputStream stream) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named discardRestOfInput Lnet/minecraft/server/filter/AbstractTextFilterer;discardRestOfInput(Ljava/io/InputStream;)V
      intermediary method_61297 Lnet/minecraft/class_9847;method_61297(Ljava/io/InputStream;)V
      official a Latp;a(Ljava/io/InputStream;)V
    • request

      private JsonObject request(JsonObject request, URL url) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named request Lnet/minecraft/server/filter/AbstractTextFilterer;request(Lcom/google/gson/JsonObject;Ljava/net/URL;)Lcom/google/gson/JsonObject;
      intermediary method_61302 Lnet/minecraft/class_9847;method_61302(Lcom/google/gson/JsonObject;Ljava/net/URL;)Lcom/google/gson/JsonObject;
      official b Latp;b(Lcom/google/gson/JsonObject;Ljava/net/URL;)Lcom/google/gson/JsonObject;
    • openConnection

      protected HttpURLConnection openConnection(JsonObject request, URL url) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named openConnection Lnet/minecraft/server/filter/AbstractTextFilterer;openConnection(Lcom/google/gson/JsonObject;Ljava/net/URL;)Ljava/net/HttpURLConnection;
      intermediary method_61294 Lnet/minecraft/class_9847;method_61294(Lcom/google/gson/JsonObject;Ljava/net/URL;)Ljava/net/HttpURLConnection;
      official a Latp;a(Lcom/google/gson/JsonObject;Ljava/net/URL;)Ljava/net/HttpURLConnection;
    • addAuthentication

      protected abstract void addAuthentication(HttpURLConnection connection)
      Mappings:
      Namespace Name Mixin selector
      named addAuthentication Lnet/minecraft/server/filter/AbstractTextFilterer;addAuthentication(Ljava/net/HttpURLConnection;)V
      intermediary method_61284 Lnet/minecraft/class_9847;method_61284(Ljava/net/HttpURLConnection;)V
      official a Latp;a(Ljava/net/HttpURLConnection;)V
    • getReadTimeout

      protected int getReadTimeout()
      Mappings:
      Namespace Name Mixin selector
      named getReadTimeout Lnet/minecraft/server/filter/AbstractTextFilterer;getReadTimeout()I
      intermediary method_61285 Lnet/minecraft/class_9847;method_61285()I
      official a Latp;a()I
    • openConnection

      protected HttpURLConnection openConnection(URL url) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named openConnection Lnet/minecraft/server/filter/AbstractTextFilterer;openConnection(Ljava/net/URL;)Ljava/net/HttpURLConnection;
      intermediary method_61301 Lnet/minecraft/class_9847;method_61301(Ljava/net/URL;)Ljava/net/HttpURLConnection;
      official a Latp;a(Ljava/net/URL;)Ljava/net/HttpURLConnection;
    • createFilterer

      public TextStream createFilterer(com.mojang.authlib.GameProfile profile)
      Mappings:
      Namespace Name Mixin selector
      named createFilterer Lnet/minecraft/server/filter/AbstractTextFilterer;createFilterer(Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/server/filter/TextStream;
      intermediary method_31297 Lnet/minecraft/class_9847;method_31297(Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/class_5513;
      official a Latp;a(Lcom/mojang/authlib/GameProfile;)Latq;