Package net.minecraft.server.filter
Record Class FilteredMessage
java.lang.Object
java.lang.Record
net.minecraft.server.filter.FilteredMessage
- Record Components:
raw- the raw (or "original") messagemask-
A message from the
TextFilterer.- Mappings:
Namespace Name intermediary net/minecraft/class_5837official aiunamed net/minecraft/server/filter/FilteredMessageintermediary comp_841official bnamed rawintermediary comp_978official cnamed mask
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FilteredMessageprivate final FilterMaskThe field for themaskrecord component.private final StringThe field for therawrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FilteredMessagefinal booleanIndicates whether some other object is "equal to" this one.filter()final inthashCode()Returns a hash code value for this object.booleanmask()Returns the value of themaskrecord component.static FilteredMessageraw()Returns the value of therawrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
raw
The field for therawrecord component. -
mask
The field for themaskrecord component. -
EMPTY
- Mappings:
Namespace Name Mixin selector intermediary field_28863Lnet/minecraft/class_5837;field_28863:Lnet/minecraft/class_5837;official aLaiu;a:Laiu;named EMPTYLnet/minecraft/server/filter/FilteredMessage;EMPTY:Lnet/minecraft/server/filter/FilteredMessage;
-
-
Constructor Details
-
FilteredMessage
-
-
Method Details
-
permitted
- Mappings:
Namespace Name Mixin selector intermediary method_45060Lnet/minecraft/class_5837;method_45060(Ljava/lang/String;)Lnet/minecraft/class_5837;official aLaiu;a(Ljava/lang/String;)Laiu;named permittedLnet/minecraft/server/filter/FilteredMessage;permitted(Ljava/lang/String;)Lnet/minecraft/server/filter/FilteredMessage;
-
censored
- Mappings:
Namespace Name Mixin selector intermediary method_45062Lnet/minecraft/class_5837;method_45062(Ljava/lang/String;)Lnet/minecraft/class_5837;official bLaiu;b(Ljava/lang/String;)Laiu;named censoredLnet/minecraft/server/filter/FilteredMessage;censored(Ljava/lang/String;)Lnet/minecraft/server/filter/FilteredMessage;
-
filter
- Mappings:
Namespace Name Mixin selector intermediary method_45059Lnet/minecraft/class_5837;method_45059()Ljava/lang/String;official aLaiu;a()Ljava/lang/String;named filterLnet/minecraft/server/filter/FilteredMessage;filter()Ljava/lang/String;
-
getString
- Mappings:
Namespace Name Mixin selector intermediary method_45061Lnet/minecraft/class_5837;method_45061()Ljava/lang/String;official bLaiu;b()Ljava/lang/String;named getStringLnet/minecraft/server/filter/FilteredMessage;getString()Ljava/lang/String;
-
isFiltered
public boolean isFiltered()- Mappings:
Namespace Name Mixin selector intermediary method_45063Lnet/minecraft/class_5837;method_45063()Zofficial cLaiu;c()Znamed isFilteredLnet/minecraft/server/filter/FilteredMessage;isFiltered()Z
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
raw
Returns the value of therawrecord component.- Returns:
- the value of the
rawrecord component
-
mask
Returns the value of themaskrecord component.- Returns:
- the value of the
maskrecord component
-