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 SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionModelAndTexture(T t, AssetInfo assetInfo) ModelAndTexture(T model, Identifier assetId) 
- 
Method SummaryModifier and TypeMethodDescriptionasset()Returns the value of theassetrecord 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 booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.final StringtoString()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- 
createMapCodecpublic 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;
 
- 
createPacketCodecpublic 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;
 
- 
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).
- 
modelReturns the value of themodelrecord component.- Returns:
- the value of the modelrecord component
 
- 
assetReturns the value of theassetrecord component.- Returns:
- the value of the assetrecord component
 
 
-