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/ModelAndTextureintermediary net/minecraft/class_10693official cujnamed modelintermediary comp_3572official anamed assetintermediary comp_3573official 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 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;)Vintermediary <init>Lnet/minecraft/class_10693;<init>(Ljava/lang/Object;Lnet/minecraft/class_2960;)Vofficial <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 createMapCodecLnet/minecraft/util/ModelAndTexture;createMapCodec(Lcom/mojang/serialization/Codec;Ljava/lang/Object;)Lcom/mojang/serialization/MapCodec;intermediary method_67154Lnet/minecraft/class_10693;method_67154(Lcom/mojang/serialization/Codec;Ljava/lang/Object;)Lcom/mojang/serialization/MapCodec;official aLcuj;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 createPacketCodecLnet/minecraft/util/ModelAndTexture;createPacketCodec(Lnet/minecraft/network/codec/PacketCodec;)Lnet/minecraft/network/codec/PacketCodec;intermediary method_67156Lnet/minecraft/class_10693;method_67156(Lnet/minecraft/class_9139;)Lnet/minecraft/class_9139;official aLcuj;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 themodelrecord component.- Returns:
- the value of the
modelrecord component
-
asset
Returns the value of theassetrecord component.- Returns:
- the value of the
assetrecord component
-