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, ornull
if everything was filtered ("censored")
A message from the
TextFilterer
.- Mappings:
Namespace Name official agd
intermediary net/minecraft/class_5837
named net/minecraft/server/filter/FilteredMessage
official b
intermediary comp_841
named raw
official c
intermediary comp_842
named filtered
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> FilteredMessage<T>
censored
(T filterable) Returns the message with everything filtered.final boolean
Indicates whether some other object is "equal to" this one.filtered()
Returns the value of thefiltered
record component.filteredOrElse
(T filterable) getFilterableFor
(ServerCommandSource source, ServerPlayerEntity receiver) getFilterableFor
(ServerPlayerEntity sender, ServerPlayerEntity receiver) final int
hashCode()
Returns a hash code value for this object.boolean
Returns if all of the messages are filtered, e.g. by usingcensored(T)
.boolean
Returns 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 theraw
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
raw
The field for theraw
record component. -
filtered
The field for thefiltered
record component. -
EMPTY
- Mappings:
Namespace Name Mixin selector official a
Lagd;a:Lagd;
intermediary field_28863
Lnet/minecraft/class_5837;field_28863:Lnet/minecraft/class_5837;
named EMPTY
Lnet/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 a
Lagd;a(Ljava/lang/Object;)Lagd;
intermediary method_33802
Lnet/minecraft/class_5837;method_33802(Ljava/lang/Object;)Lnet/minecraft/class_5837;
named permitted
Lnet/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 b
Lagd;b(Ljava/lang/Object;)Lagd;
intermediary method_33804
Lnet/minecraft/class_5837;method_33804(Ljava/lang/Object;)Lnet/minecraft/class_5837;
named censored
Lnet/minecraft/server/filter/FilteredMessage;censored(Ljava/lang/Object;)Lnet/minecraft/server/filter/FilteredMessage;
-
map
- Mappings:
Namespace Name Mixin selector official a
Lagd;a(Ljava/util/function/Function;)Lagd;
intermediary method_44151
Lnet/minecraft/class_5837;method_44151(Ljava/util/function/Function;)Lnet/minecraft/class_5837;
named map
Lnet/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 a
Lagd;a()Z
intermediary method_43933
Lnet/minecraft/class_5837;method_43933()Z
named isFiltered
Lnet/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 b
Lagd;b()Z
intermediary method_44152
Lnet/minecraft/class_5837;method_44152()Z
named isCensored
Lnet/minecraft/server/filter/FilteredMessage;isCensored()Z
-
filteredOrElse
- Mappings:
Namespace Name Mixin selector official c
Lagd;c(Ljava/lang/Object;)Ljava/lang/Object;
intermediary method_44153
Lnet/minecraft/class_5837;method_44153(Ljava/lang/Object;)Ljava/lang/Object;
named filteredOrElse
Lnet/minecraft/server/filter/FilteredMessage;filteredOrElse(Ljava/lang/Object;)Ljava/lang/Object;
-
getFilterableFor
- Mappings:
Namespace Name Mixin selector official a
Lagd;a(Lafp;Lafp;)Ljava/lang/Object;
intermediary method_44149
Lnet/minecraft/class_5837;method_44149(Lnet/minecraft/class_3222;Lnet/minecraft/class_3222;)Ljava/lang/Object;
named getFilterableFor
Lnet/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 a
Lagd;a(Ldr;Lafp;)Ljava/lang/Object;
intermediary method_44150
Lnet/minecraft/class_5837;method_44150(Lnet/minecraft/class_2168;Lnet/minecraft/class_3222;)Ljava/lang/Object;
named getFilterableFor
Lnet/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 theraw
record component.- Returns:
- the value of the
raw
record component
-
filtered
Returns the value of thefiltered
record component.- Returns:
- the value of the
filtered
record component
-