Record Class FilteredMessage

java.lang.Object
java.lang.Record
net.minecraft.server.filter.FilteredMessage
Record Components:
raw - the raw (or "original") message
mask -

public record FilteredMessage(String raw, FilterMask mask) extends Record
A message from the TextFilterer.
Mappings:
Namespace Name
named net/minecraft/server/filter/FilteredMessage
intermediary net/minecraft/class_5837
official arl
named raw
intermediary comp_841
official b
named mask
intermediary comp_978
official c
  • Field Details

    • raw

      private final String raw
      The field for the raw record component.
    • mask

      private final FilterMask mask
      The field for the mask record component.
    • EMPTY

      public static final FilteredMessage EMPTY
      Mappings:
      Namespace Name Mixin selector
      named EMPTY Lnet/minecraft/server/filter/FilteredMessage;EMPTY:Lnet/minecraft/server/filter/FilteredMessage;
      intermediary field_28863 Lnet/minecraft/class_5837;field_28863:Lnet/minecraft/class_5837;
      official a Larl;a:Larl;
  • Constructor Details

    • FilteredMessage

      public FilteredMessage(String string, FilterMask filterMask)
  • Method Details

    • permitted

      public static FilteredMessage permitted(String raw)
      Mappings:
      Namespace Name Mixin selector
      named permitted Lnet/minecraft/server/filter/FilteredMessage;permitted(Ljava/lang/String;)Lnet/minecraft/server/filter/FilteredMessage;
      intermediary method_45060 Lnet/minecraft/class_5837;method_45060(Ljava/lang/String;)Lnet/minecraft/class_5837;
      official a Larl;a(Ljava/lang/String;)Larl;
    • censored

      public static FilteredMessage censored(String raw)
      Mappings:
      Namespace Name Mixin selector
      named censored Lnet/minecraft/server/filter/FilteredMessage;censored(Ljava/lang/String;)Lnet/minecraft/server/filter/FilteredMessage;
      intermediary method_45062 Lnet/minecraft/class_5837;method_45062(Ljava/lang/String;)Lnet/minecraft/class_5837;
      official b Larl;b(Ljava/lang/String;)Larl;
    • filter

      @Nullable public @Nullable String filter()
      Mappings:
      Namespace Name Mixin selector
      named filter Lnet/minecraft/server/filter/FilteredMessage;filter()Ljava/lang/String;
      intermediary method_45059 Lnet/minecraft/class_5837;method_45059()Ljava/lang/String;
      official a Larl;a()Ljava/lang/String;
    • getString

      public String getString()
      Mappings:
      Namespace Name Mixin selector
      named getString Lnet/minecraft/server/filter/FilteredMessage;getString()Ljava/lang/String;
      intermediary method_45061 Lnet/minecraft/class_5837;method_45061()Ljava/lang/String;
      official b Larl;b()Ljava/lang/String;
    • isFiltered

      public boolean isFiltered()
      Mappings:
      Namespace Name Mixin selector
      named isFiltered Lnet/minecraft/server/filter/FilteredMessage;isFiltered()Z
      intermediary method_45063 Lnet/minecraft/class_5837;method_45063()Z
      official c Larl;c()Z
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • raw

      public String raw()
      Returns the value of the raw record component.
      Returns:
      the value of the raw record component
    • mask

      public FilterMask mask()
      Returns the value of the mask record component.
      Returns:
      the value of the mask record component