Package net.minecraft.text
Record Class RawFilteredPair<T>
java.lang.Object
java.lang.Record
net.minecraft.text.RawFilteredPair<T>
- Record Components:
- raw-
- filtered-
- Mappings:
- Namespace - Name - named - net/minecraft/text/RawFilteredPair- intermediary - net/minecraft/class_9262- official - arv- named - raw- intermediary - comp_2369- official - a- named - filtered- intermediary - comp_2370- official - b
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> com.mojang.serialization.Codec<RawFilteredPair<T>> createCodec(com.mojang.serialization.Codec<T> baseCodec) static <B extends ByteBuf,T> 
 PacketCodec<B, RawFilteredPair<T>> createPacketCodec(PacketCodec<B, T> basePacketCodec) final booleanIndicates whether some other object is "equal to" this one.filtered()Returns the value of thefilteredrecord component.get(boolean shouldFilter) final inthashCode()Returns a hash code value for this object.<U> RawFilteredPair<U> static RawFilteredPair<String> of(FilteredMessage message) static <T> RawFilteredPair<T> of(T raw) raw()Returns the value of therawrecord component.<U> Optional<RawFilteredPair<U>> final StringtoString()Returns a string representation of this record class.
- 
Field Details
- 
Constructor Details- 
RawFilteredPair
 
- 
- 
Method Details- 
createCodecpublic static <T> com.mojang.serialization.Codec<RawFilteredPair<T>> createCodec(com.mojang.serialization.Codec<T> baseCodec) - Mappings:
- Namespace - Name - Mixin selector - named - createCodec- Lnet/minecraft/text/RawFilteredPair;createCodec(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;- intermediary - method_57135- Lnet/minecraft/class_9262;method_57135(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;- official - a- Larv;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
 
- 
createPacketCodecpublic static <B extends ByteBuf,T> PacketCodec<B,RawFilteredPair<T>> createPacketCodec(PacketCodec<B, T> basePacketCodec) - Mappings:
- Namespace - Name - Mixin selector - named - createPacketCodec- Lnet/minecraft/text/RawFilteredPair;createPacketCodec(Lnet/minecraft/network/codec/PacketCodec;)Lnet/minecraft/network/codec/PacketCodec;- intermediary - method_57139- Lnet/minecraft/class_9262;method_57139(Lnet/minecraft/class_9139;)Lnet/minecraft/class_9139;- official - a- Larv;a(Lyn;)Lyn;
 
- 
of- Mappings:
- Namespace - Name - Mixin selector - named - of- Lnet/minecraft/text/RawFilteredPair;of(Ljava/lang/Object;)Lnet/minecraft/text/RawFilteredPair;- intermediary - method_57137- Lnet/minecraft/class_9262;method_57137(Ljava/lang/Object;)Lnet/minecraft/class_9262;- official - a- Larv;a(Ljava/lang/Object;)Larv;
 
- 
of- Mappings:
- Namespace - Name - Mixin selector - named - of- Lnet/minecraft/text/RawFilteredPair;of(Lnet/minecraft/server/filter/FilteredMessage;)Lnet/minecraft/text/RawFilteredPair;- intermediary - method_57134- Lnet/minecraft/class_9262;method_57134(Lnet/minecraft/class_5837;)Lnet/minecraft/class_9262;- official - a- Larv;a(Larw;)Larv;
 
- 
get- Mappings:
- Namespace - Name - Mixin selector - named - get- Lnet/minecraft/text/RawFilteredPair;get(Z)Ljava/lang/Object;- intermediary - method_57140- Lnet/minecraft/class_9262;method_57140(Z)Ljava/lang/Object;- official - a- Larv;a(Z)Ljava/lang/Object;
 
- 
map- Mappings:
- Namespace - Name - Mixin selector - named - map- Lnet/minecraft/text/RawFilteredPair;map(Ljava/util/function/Function;)Lnet/minecraft/text/RawFilteredPair;- intermediary - method_57138- Lnet/minecraft/class_9262;method_57138(Ljava/util/function/Function;)Lnet/minecraft/class_9262;- official - a- Larv;a(Ljava/util/function/Function;)Larv;
 
- 
resolve- Mappings:
- Namespace - Name - Mixin selector - named - resolve- Lnet/minecraft/text/RawFilteredPair;resolve(Ljava/util/function/Function;)Ljava/util/Optional;- intermediary - method_57141- Lnet/minecraft/class_9262;method_57141(Ljava/util/function/Function;)Ljava/util/Optional;- official - b- Larv;b(Ljava/util/function/Function;)Ljava/util/Optional;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
rawReturns the value of therawrecord component.- Returns:
- the value of the rawrecord component
 
- 
filteredReturns the value of thefilteredrecord component.- Returns:
- the value of the filteredrecord component
 
 
-