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 official aqlintermediary net/minecraft/class_9262named net/minecraft/text/RawFilteredPairofficial aintermediary comp_2369named rawofficial bintermediary comp_2370named filtered
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
createCodec
public static <T> com.mojang.serialization.Codec<RawFilteredPair<T>> createCodec(com.mojang.serialization.Codec<T> baseCodec) - Mappings:
Namespace Name Mixin selector official aLaql;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;intermediary method_57135Lnet/minecraft/class_9262;method_57135(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;named createCodecLnet/minecraft/text/RawFilteredPair;createCodec(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
-
createPacketCodec
public static <B extends ByteBuf,T> PacketCodec<B,RawFilteredPair<T>> createPacketCodec(PacketCodec<B, T> basePacketCodec) - Mappings:
Namespace Name Mixin selector official aLaql;a(Lyg;)Lyg;intermediary method_57139Lnet/minecraft/class_9262;method_57139(Lnet/minecraft/class_9139;)Lnet/minecraft/class_9139;named createPacketCodecLnet/minecraft/text/RawFilteredPair;createPacketCodec(Lnet/minecraft/network/codec/PacketCodec;)Lnet/minecraft/network/codec/PacketCodec;
-
of
- Mappings:
Namespace Name Mixin selector official aLaql;a(Ljava/lang/Object;)Laql;intermediary method_57137Lnet/minecraft/class_9262;method_57137(Ljava/lang/Object;)Lnet/minecraft/class_9262;named ofLnet/minecraft/text/RawFilteredPair;of(Ljava/lang/Object;)Lnet/minecraft/text/RawFilteredPair;
-
of
- Mappings:
Namespace Name Mixin selector official aLaql;a(Laqm;)Laql;intermediary method_57134Lnet/minecraft/class_9262;method_57134(Lnet/minecraft/class_5837;)Lnet/minecraft/class_9262;named ofLnet/minecraft/text/RawFilteredPair;of(Lnet/minecraft/server/filter/FilteredMessage;)Lnet/minecraft/text/RawFilteredPair;
-
get
- Mappings:
Namespace Name Mixin selector official aLaql;a(Z)Ljava/lang/Object;intermediary method_57140Lnet/minecraft/class_9262;method_57140(Z)Ljava/lang/Object;named getLnet/minecraft/text/RawFilteredPair;get(Z)Ljava/lang/Object;
-
map
- Mappings:
Namespace Name Mixin selector official aLaql;a(Ljava/util/function/Function;)Laql;intermediary method_57138Lnet/minecraft/class_9262;method_57138(Ljava/util/function/Function;)Lnet/minecraft/class_9262;named mapLnet/minecraft/text/RawFilteredPair;map(Ljava/util/function/Function;)Lnet/minecraft/text/RawFilteredPair;
-
resolve
- Mappings:
Namespace Name Mixin selector official bLaql;b(Ljava/util/function/Function;)Ljava/util/Optional;intermediary method_57141Lnet/minecraft/class_9262;method_57141(Ljava/util/function/Function;)Ljava/util/Optional;named resolveLnet/minecraft/text/RawFilteredPair;resolve(Ljava/util/function/Function;)Ljava/util/Optional;
-
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
-