Package net.minecraft.server.filter
Record Class FilteredMessage<T>
java.lang.Object
java.lang.Record
net.minecraft.server.filter.FilteredMessage<T>
- Record Components:
raw- the raw (or "original") messagefiltered- the filtered message, ornullif everything was filtered ("censored")
A message from the
TextFilterer.- Mappings:
Namespace Name official agdintermediary net/minecraft/class_5837named net/minecraft/server/filter/FilteredMessageofficial bintermediary comp_841named rawofficial cintermediary comp_842named filtered
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> FilteredMessage<T>censored(T filterable) Returns the message with everything filtered.final booleanIndicates whether some other object is "equal to" this one.filtered()Returns the value of thefilteredrecord component.filteredOrElse(T filterable) getFilterableFor(ServerCommandSource source, ServerPlayerEntity receiver) getFilterableFor(ServerPlayerEntity sender, ServerPlayerEntity receiver) final inthashCode()Returns a hash code value for this object.booleanReturns if all of the messages are filtered, e.g. by usingcensored(T).booleanReturns if some of the messages are filtered.<U> FilteredMessage<U>static <T> FilteredMessage<T>permitted(T filterable) Returns the message with nothing filtered.raw()Returns the value of therawrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
raw
The field for therawrecord component. -
filtered
The field for thefilteredrecord component. -
EMPTY
- Mappings:
Namespace Name Mixin selector official aLagd;a:Lagd;intermediary field_28863Lnet/minecraft/class_5837;field_28863:Lnet/minecraft/class_5837;named EMPTYLnet/minecraft/server/filter/FilteredMessage;EMPTY:Lnet/minecraft/server/filter/FilteredMessage;
-
-
Constructor Details
-
FilteredMessage
-
-
Method Details
-
permitted
Returns the message with nothing filtered.- Returns:
- the message with nothing filtered
- Mappings:
Namespace Name Mixin selector official aLagd;a(Ljava/lang/Object;)Lagd;intermediary method_33802Lnet/minecraft/class_5837;method_33802(Ljava/lang/Object;)Lnet/minecraft/class_5837;named permittedLnet/minecraft/server/filter/FilteredMessage;permitted(Ljava/lang/Object;)Lnet/minecraft/server/filter/FilteredMessage;
-
censored
Returns the message with everything filtered.- Returns:
- the message with everything filtered
- Mappings:
Namespace Name Mixin selector official bLagd;b(Ljava/lang/Object;)Lagd;intermediary method_33804Lnet/minecraft/class_5837;method_33804(Ljava/lang/Object;)Lnet/minecraft/class_5837;named censoredLnet/minecraft/server/filter/FilteredMessage;censored(Ljava/lang/Object;)Lnet/minecraft/server/filter/FilteredMessage;
-
map
- Mappings:
Namespace Name Mixin selector official aLagd;a(Ljava/util/function/Function;)Lagd;intermediary method_44151Lnet/minecraft/class_5837;method_44151(Ljava/util/function/Function;)Lnet/minecraft/class_5837;named mapLnet/minecraft/server/filter/FilteredMessage;map(Ljava/util/function/Function;)Lnet/minecraft/server/filter/FilteredMessage;
-
isFiltered
public boolean isFiltered()Returns if some of the messages are filtered.- Returns:
- if some of the messages are filtered
- Mappings:
Namespace Name Mixin selector official aLagd;a()Zintermediary method_43933Lnet/minecraft/class_5837;method_43933()Znamed isFilteredLnet/minecraft/server/filter/FilteredMessage;isFiltered()Z
-
isCensored
public boolean isCensored()Returns if all of the messages are filtered, e.g. by usingcensored(T).- Returns:
- if all of the messages are filtered, e.g. by using
censored(T) - Mappings:
Namespace Name Mixin selector official bLagd;b()Zintermediary method_44152Lnet/minecraft/class_5837;method_44152()Znamed isCensoredLnet/minecraft/server/filter/FilteredMessage;isCensored()Z
-
filteredOrElse
- Mappings:
Namespace Name Mixin selector official cLagd;c(Ljava/lang/Object;)Ljava/lang/Object;intermediary method_44153Lnet/minecraft/class_5837;method_44153(Ljava/lang/Object;)Ljava/lang/Object;named filteredOrElseLnet/minecraft/server/filter/FilteredMessage;filteredOrElse(Ljava/lang/Object;)Ljava/lang/Object;
-
getFilterableFor
- Mappings:
Namespace Name Mixin selector official aLagd;a(Lafp;Lafp;)Ljava/lang/Object;intermediary method_44149Lnet/minecraft/class_5837;method_44149(Lnet/minecraft/class_3222;Lnet/minecraft/class_3222;)Ljava/lang/Object;named getFilterableForLnet/minecraft/server/filter/FilteredMessage;getFilterableFor(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/server/network/ServerPlayerEntity;)Ljava/lang/Object;
-
getFilterableFor
- Mappings:
Namespace Name Mixin selector official aLagd;a(Ldr;Lafp;)Ljava/lang/Object;intermediary method_44150Lnet/minecraft/class_5837;method_44150(Lnet/minecraft/class_2168;Lnet/minecraft/class_3222;)Ljava/lang/Object;named getFilterableForLnet/minecraft/server/filter/FilteredMessage;getFilterableFor(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/server/network/ServerPlayerEntity;)Ljava/lang/Object;
-
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
-
filtered
Returns the value of thefilteredrecord component.- Returns:
- the value of the
filteredrecord component
-