Package net.minecraft.util
Record Class AssetInfo
java.lang.Object
java.lang.Record
net.minecraft.util.AssetInfo
- Record Components:
id
-texturePath
-
- Mappings:
Namespace Name named net/minecraft/util/AssetInfo
intermediary net/minecraft/class_10726
official ix
named id
intermediary comp_3626
official d
named texturePath
intermediary comp_3627
official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<AssetInfo> private final Identifier
The field for theid
record component.static final com.mojang.serialization.MapCodec
<AssetInfo> static final PacketCodec
<ByteBuf, AssetInfo> private final Identifier
The field for thetexturePath
record component. -
Constructor Summary
ConstructorsConstructorDescriptionAssetInfo
(Identifier id) AssetInfo
(Identifier identifier, Identifier identifier2) -
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.id()
Returns the value of theid
record component.Returns the value of thetexturePath
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
id
The field for theid
record component. -
texturePath
The field for thetexturePath
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/util/AssetInfo;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_56393
Lnet/minecraft/class_10726;field_56393:Lcom/mojang/serialization/Codec;
official a
Lix;a:Lcom/mojang/serialization/Codec;
-
MAP_CODEC
- Mappings:
Namespace Name Mixin selector named MAP_CODEC
Lnet/minecraft/util/AssetInfo;MAP_CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_56394
Lnet/minecraft/class_10726;field_56394:Lcom/mojang/serialization/MapCodec;
official b
Lix;b:Lcom/mojang/serialization/MapCodec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/util/AssetInfo;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_56395
Lnet/minecraft/class_10726;field_56395:Lnet/minecraft/class_9139;
official c
Lix;c:Lze;
-
-
Constructor Details
-
Method Details
-
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)
. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
texturePath
Returns the value of thetexturePath
record component.- Returns:
- the value of the
texturePath
record component
-