Package net.minecraft.util
Record Class ModelAndTexture<T>
java.lang.Object
java.lang.Record
net.minecraft.util.ModelAndTexture<T>
- Record Components:
model
-asset
-
- Mappings:
Namespace Name named net/minecraft/util/ModelAndTexture
intermediary net/minecraft/class_10693
official cuj
named model
intermediary comp_3572
official a
named asset
intermediary comp_3573
official b
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModelAndTexture
(T t, AssetInfo assetInfo) ModelAndTexture
(T model, Identifier assetId) -
Method Summary
Modifier and TypeMethodDescriptionasset()
Returns the value of theasset
record component.static <T> com.mojang.serialization.MapCodec
<ModelAndTexture<T>> createMapCodec
(com.mojang.serialization.Codec<T> modelCodec, T model) static <T> PacketCodec
<RegistryByteBuf, ModelAndTexture<T>> createPacketCodec
(PacketCodec<? super RegistryByteBuf, T> modelPacketCodec) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.model()
Returns the value of themodel
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
ModelAndTexture
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/util/ModelAndTexture;<init>(Ljava/lang/Object;Lnet/minecraft/util/Identifier;)V
intermediary <init>
Lnet/minecraft/class_10693;<init>(Ljava/lang/Object;Lnet/minecraft/class_2960;)V
official <init>
Lcuj;<init>(Ljava/lang/Object;Lalr;)V
-
ModelAndTexture
-
-
Method Details
-
createMapCodec
public static <T> com.mojang.serialization.MapCodec<ModelAndTexture<T>> createMapCodec(com.mojang.serialization.Codec<T> modelCodec, T model) - Mappings:
Namespace Name Mixin selector named createMapCodec
Lnet/minecraft/util/ModelAndTexture;createMapCodec(Lcom/mojang/serialization/Codec;Ljava/lang/Object;)Lcom/mojang/serialization/MapCodec;
intermediary method_67154
Lnet/minecraft/class_10693;method_67154(Lcom/mojang/serialization/Codec;Ljava/lang/Object;)Lcom/mojang/serialization/MapCodec;
official a
Lcuj;a(Lcom/mojang/serialization/Codec;Ljava/lang/Object;)Lcom/mojang/serialization/MapCodec;
-
createPacketCodec
public static <T> PacketCodec<RegistryByteBuf,ModelAndTexture<T>> createPacketCodec(PacketCodec<? super RegistryByteBuf, T> modelPacketCodec) - Mappings:
Namespace Name Mixin selector named createPacketCodec
Lnet/minecraft/util/ModelAndTexture;createPacketCodec(Lnet/minecraft/network/codec/PacketCodec;)Lnet/minecraft/network/codec/PacketCodec;
intermediary method_67156
Lnet/minecraft/class_10693;method_67156(Lnet/minecraft/class_9139;)Lnet/minecraft/class_9139;
official a
Lcuj;a(Lze;)Lze;
-
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)
. -
model
Returns the value of themodel
record component.- Returns:
- the value of the
model
record component
-
asset
Returns the value of theasset
record component.- Returns:
- the value of the
asset
record component
-