Class V0TextFilterer

java.lang.Object
net.minecraft.server.filter.AbstractTextFilterer
net.minecraft.server.filter.V0TextFilterer
All Implemented Interfaces:
AutoCloseable

public class V0TextFilterer extends AbstractTextFilterer
Mappings:
Namespace Name
named net/minecraft/server/filter/V0TextFilterer
intermediary net/minecraft/class_5514
official atd
  • Field Details

    • CHAT_ENDPOINT

      private static final String CHAT_ENDPOINT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CHAT_ENDPOINT Lnet/minecraft/server/filter/V0TextFilterer;CHAT_ENDPOINT:Ljava/lang/String;
      intermediary field_38055 Lnet/minecraft/class_5514;field_38055:Ljava/lang/String;
      official b Latd;b:Ljava/lang/String;
    • joinEndpoint

      final URL joinEndpoint
      Mappings:
      Namespace Name Mixin selector
      named joinEndpoint Lnet/minecraft/server/filter/V0TextFilterer;joinEndpoint:Ljava/net/URL;
      intermediary field_26827 Lnet/minecraft/class_5514;field_26827:Ljava/net/URL;
      official c Latd;c:Ljava/net/URL;
    • joinEncoder

      final V0TextFilterer.ProfileEncoder joinEncoder
      Mappings:
      Namespace Name Mixin selector
      named joinEncoder Lnet/minecraft/server/filter/V0TextFilterer;joinEncoder:Lnet/minecraft/server/filter/V0TextFilterer$ProfileEncoder;
      intermediary field_38057 Lnet/minecraft/class_5514;field_38057:Lnet/minecraft/class_5514$class_7241;
      official d Latd;d:Latd$a;
    • leaveEndpoint

      final URL leaveEndpoint
      Mappings:
      Namespace Name Mixin selector
      named leaveEndpoint Lnet/minecraft/server/filter/V0TextFilterer;leaveEndpoint:Ljava/net/URL;
      intermediary field_26828 Lnet/minecraft/class_5514;field_26828:Ljava/net/URL;
      official e Latd;e:Ljava/net/URL;
    • leaveEncoder

      final V0TextFilterer.ProfileEncoder leaveEncoder
      Mappings:
      Namespace Name Mixin selector
      named leaveEncoder Lnet/minecraft/server/filter/V0TextFilterer;leaveEncoder:Lnet/minecraft/server/filter/V0TextFilterer$ProfileEncoder;
      intermediary field_38058 Lnet/minecraft/class_5514;field_38058:Lnet/minecraft/class_5514$class_7241;
      official f Latd;f:Latd$a;
    • apiKey

      private final String apiKey
      Mappings:
      Namespace Name Mixin selector
      named apiKey Lnet/minecraft/server/filter/V0TextFilterer;apiKey:Ljava/lang/String;
      intermediary field_26829 Lnet/minecraft/class_5514;field_26829:Ljava/lang/String;
      official g Latd;g:Ljava/lang/String;
  • Constructor Details

    • V0TextFilterer

      private V0TextFilterer(URL chatEndpoint, AbstractTextFilterer.MessageEncoder messageEncoder, URL joinEndpoint, V0TextFilterer.ProfileEncoder joinEncoder, URL leaveEndpoint, V0TextFilterer.ProfileEncoder leaveEncoder, String apiKey, AbstractTextFilterer.HashIgnorer ignorer, ExecutorService threadPool)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/filter/V0TextFilterer;<init>(Ljava/net/URL;Lnet/minecraft/server/filter/AbstractTextFilterer$MessageEncoder;Ljava/net/URL;Lnet/minecraft/server/filter/V0TextFilterer$ProfileEncoder;Ljava/net/URL;Lnet/minecraft/server/filter/V0TextFilterer$ProfileEncoder;Ljava/lang/String;Lnet/minecraft/server/filter/AbstractTextFilterer$HashIgnorer;Ljava/util/concurrent/ExecutorService;)V
      intermediary <init> Lnet/minecraft/class_5514;<init>(Ljava/net/URL;Lnet/minecraft/class_9847$class_7242;Ljava/net/URL;Lnet/minecraft/class_5514$class_7241;Ljava/net/URL;Lnet/minecraft/class_5514$class_7241;Ljava/lang/String;Lnet/minecraft/class_9847$class_5515;Ljava/util/concurrent/ExecutorService;)V
      official <init> Latd;<init>(Ljava/net/URL;Latp$b;Ljava/net/URL;Latd$a;Ljava/net/URL;Latd$a;Ljava/lang/String;Latp$a;Ljava/util/concurrent/ExecutorService;)V
  • Method Details

    • load

      @Nullable public static @Nullable AbstractTextFilterer load(String config)
      Mappings:
      Namespace Name Mixin selector
      named load Lnet/minecraft/server/filter/V0TextFilterer;load(Ljava/lang/String;)Lnet/minecraft/server/filter/AbstractTextFilterer;
      intermediary method_33805 Lnet/minecraft/class_5514;method_33805(Ljava/lang/String;)Lnet/minecraft/class_9847;
      official a Latd;a(Ljava/lang/String;)Latp;
    • createFilterer

      public TextStream createFilterer(com.mojang.authlib.GameProfile profile)
      Overrides:
      createFilterer in class AbstractTextFilterer
      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;
    • sendJoinOrLeaveRequest

      void sendJoinOrLeaveRequest(com.mojang.authlib.GameProfile gameProfile, URL endpoint, V0TextFilterer.ProfileEncoder profileEncoder, Executor executor)
      Mappings:
      Namespace Name Mixin selector
      named sendJoinOrLeaveRequest Lnet/minecraft/server/filter/V0TextFilterer;sendJoinOrLeaveRequest(Lcom/mojang/authlib/GameProfile;Ljava/net/URL;Lnet/minecraft/server/filter/V0TextFilterer$ProfileEncoder;Ljava/util/concurrent/Executor;)V
      intermediary method_31299 Lnet/minecraft/class_5514;method_31299(Lcom/mojang/authlib/GameProfile;Ljava/net/URL;Lnet/minecraft/class_5514$class_7241;Ljava/util/concurrent/Executor;)V
      official a Latd;a(Lcom/mojang/authlib/GameProfile;Ljava/net/URL;Latd$a;Ljava/util/concurrent/Executor;)V
    • sendRequest

      private void sendRequest(JsonObject payload, URL endpoint) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named sendRequest Lnet/minecraft/server/filter/V0TextFilterer;sendRequest(Lcom/google/gson/JsonObject;Ljava/net/URL;)V
      intermediary method_31304 Lnet/minecraft/class_5514;method_31304(Lcom/google/gson/JsonObject;Ljava/net/URL;)V
      official b Latd;b(Lcom/google/gson/JsonObject;Ljava/net/URL;)V
    • addAuthentication

      protected void addAuthentication(HttpURLConnection connection)
      Specified by:
      addAuthentication in class AbstractTextFilterer
      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
    • filter

      protected FilteredMessage filter(String raw, AbstractTextFilterer.HashIgnorer hashIgnorer, JsonObject response)
      Specified by:
      filter in class AbstractTextFilterer
      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;