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 named net/minecraft/server/filter/FilteredMessageintermediary net/minecraft/class_5837official armnamed rawintermediary comp_841official bnamed maskintermediary comp_978official c
-
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 named EMPTYLnet/minecraft/server/filter/FilteredMessage;EMPTY:Lnet/minecraft/server/filter/FilteredMessage;intermediary field_28863Lnet/minecraft/class_5837;field_28863:Lnet/minecraft/class_5837;official aLarm;a:Larm;
-
-
Constructor Details
-
FilteredMessage
-
-
Method Details
-
permitted
- Mappings:
Namespace Name Mixin selector named permittedLnet/minecraft/server/filter/FilteredMessage;permitted(Ljava/lang/String;)Lnet/minecraft/server/filter/FilteredMessage;intermediary method_45060Lnet/minecraft/class_5837;method_45060(Ljava/lang/String;)Lnet/minecraft/class_5837;official aLarm;a(Ljava/lang/String;)Larm;
-
censored
- Mappings:
Namespace Name Mixin selector named censoredLnet/minecraft/server/filter/FilteredMessage;censored(Ljava/lang/String;)Lnet/minecraft/server/filter/FilteredMessage;intermediary method_45062Lnet/minecraft/class_5837;method_45062(Ljava/lang/String;)Lnet/minecraft/class_5837;official bLarm;b(Ljava/lang/String;)Larm;
-
filter
- Mappings:
Namespace Name Mixin selector named filterLnet/minecraft/server/filter/FilteredMessage;filter()Ljava/lang/String;intermediary method_45059Lnet/minecraft/class_5837;method_45059()Ljava/lang/String;official aLarm;a()Ljava/lang/String;
-
getString
- Mappings:
Namespace Name Mixin selector named getStringLnet/minecraft/server/filter/FilteredMessage;getString()Ljava/lang/String;intermediary method_45061Lnet/minecraft/class_5837;method_45061()Ljava/lang/String;official bLarm;b()Ljava/lang/String;
-
isFiltered
public boolean isFiltered()- Mappings:
Namespace Name Mixin selector named isFilteredLnet/minecraft/server/filter/FilteredMessage;isFiltered()Zintermediary method_45063Lnet/minecraft/class_5837;method_45063()Zofficial cLarm;c()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
-