Package net.minecraft
Record Class class_9791<T>
java.lang.Object
java.lang.Record
net.minecraft.class_9791<T>
- Record Components:
holder
-key
-
- Mappings:
Namespace Name named net/minecraft/class_9791
intermediary net/minecraft/class_9791
official ctj
named holder
intermediary comp_2831
official a
named key
intermediary comp_2832
official b
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Optional
<RegistryEntry<T>> The field for theholder
record component.private final RegistryKey
<T> The field for thekey
record component. -
Constructor Summary
ConstructorDescriptionclass_9791
(Optional<RegistryEntry<T>> optional, RegistryKey<T> registryKey) class_9791
(RegistryEntry<T> registryEntry) class_9791
(RegistryKey<T> registryKey) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.holder()
Returns the value of theholder
record component.key()
Returns the value of thekey
record component.com.mojang.datafixers.util.Either
<RegistryEntry<T>, RegistryKey<T>> static <T> com.mojang.serialization.Codec
<class_9791<T>> method_60736
(RegistryKey<Registry<T>> registryKey, com.mojang.serialization.Codec<RegistryEntry<T>> codec) static <T> PacketCodec
<RegistryByteBuf, class_9791<T>> method_60737
(RegistryKey<Registry<T>> registryKey, PacketCodec<RegistryByteBuf, RegistryEntry<T>> packetCodec) static <T> class_9791
<T> method_60738
(com.mojang.datafixers.util.Either<RegistryEntry<T>, RegistryKey<T>> either) method_60739
(RegistryWrapper.WrapperLookup wrapperLookup) method_60740
(Registry<T> registry) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
class_9791
-
class_9791
-
class_9791
-
-
Method Details
-
method_60736
public static <T> com.mojang.serialization.Codec<class_9791<T>> method_60736(RegistryKey<Registry<T>> registryKey, com.mojang.serialization.Codec<RegistryEntry<T>> codec) - Mappings:
Namespace Name Mixin selector named method_60736
Lnet/minecraft/class_9791;method_60736(Lnet/minecraft/registry/RegistryKey;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
intermediary method_60736
Lnet/minecraft/class_9791;method_60736(Lnet/minecraft/class_5321;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
official a
Lctj;a(Lakp;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
-
method_60737
public static <T> PacketCodec<RegistryByteBuf,class_9791<T>> method_60737(RegistryKey<Registry<T>> registryKey, PacketCodec<RegistryByteBuf, RegistryEntry<T>> packetCodec) - Mappings:
Namespace Name Mixin selector named method_60737
Lnet/minecraft/class_9791;method_60737(Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/network/codec/PacketCodec;)Lnet/minecraft/network/codec/PacketCodec;
intermediary method_60737
Lnet/minecraft/class_9791;method_60737(Lnet/minecraft/class_5321;Lnet/minecraft/class_9139;)Lnet/minecraft/class_9139;
official a
Lctj;a(Lakp;Lyw;)Lyw;
-
method_60734
- Mappings:
Namespace Name Mixin selector named method_60734
Lnet/minecraft/class_9791;method_60734()Lcom/mojang/datafixers/util/Either;
intermediary method_60734
Lnet/minecraft/class_9791;method_60734()Lcom/mojang/datafixers/util/Either;
official a
Lctj;a()Lcom/mojang/datafixers/util/Either;
-
method_60738
public static <T> class_9791<T> method_60738(com.mojang.datafixers.util.Either<RegistryEntry<T>, RegistryKey<T>> either) - Mappings:
Namespace Name Mixin selector named method_60738
Lnet/minecraft/class_9791;method_60738(Lcom/mojang/datafixers/util/Either;)Lnet/minecraft/class_9791;
intermediary method_60738
Lnet/minecraft/class_9791;method_60738(Lcom/mojang/datafixers/util/Either;)Lnet/minecraft/class_9791;
official a
Lctj;a(Lcom/mojang/datafixers/util/Either;)Lctj;
-
method_60740
- Mappings:
Namespace Name Mixin selector named method_60740
Lnet/minecraft/class_9791;method_60740(Lnet/minecraft/registry/Registry;)Ljava/util/Optional;
intermediary method_60740
Lnet/minecraft/class_9791;method_60740(Lnet/minecraft/class_2378;)Ljava/util/Optional;
official a
Lctj;a(Ljz;)Ljava/util/Optional;
-
method_60739
- Mappings:
Namespace Name Mixin selector named method_60739
Lnet/minecraft/class_9791;method_60739(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Ljava/util/Optional;
intermediary method_60739
Lnet/minecraft/class_9791;method_60739(Lnet/minecraft/class_7225$class_7874;)Ljava/util/Optional;
official a
Lctj;a(Ljo$a;)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)
. -
holder
Returns the value of theholder
record component.- Returns:
- the value of the
holder
record component
-
key
Returns the value of thekey
record component.- Returns:
- the value of the
key
record component
-