Record Class AnimationFrameResourceMetadata
java.lang.Object
java.lang.Record
net.minecraft.client.resource.metadata.AnimationFrameResourceMetadata
- Record Components:
index-time-
@Environment(CLIENT)
public record AnimationFrameResourceMetadata(int index, Optional<Integer> time)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/resource/metadata/AnimationFrameResourceMetadataintermediary net/minecraft/class_1080official hmcnamed indexintermediary comp_3451official cnamed timeintermediary comp_3452official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<AnimationFrameResourceMetadata> static final com.mojang.serialization.Codec<AnimationFrameResourceMetadata> private final intThe field for theindexrecord component.The field for thetimerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionAnimationFrameResourceMetadata(int index) AnimationFrameResourceMetadata(int index, Optional<Integer> optional) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intgetTime(int defaultTime) final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.time()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
index
private final int indexThe field for theindexrecord component. -
time
The field for thetimerecord component. -
BASE_CODEC
- Mappings:
Namespace Name Mixin selector named BASE_CODECLnet/minecraft/client/resource/metadata/AnimationFrameResourceMetadata;BASE_CODEC:Lcom/mojang/serialization/Codec;intermediary field_55534Lnet/minecraft/class_1080;field_55534:Lcom/mojang/serialization/Codec;official aLhmc;a:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/resource/metadata/AnimationFrameResourceMetadata;CODEC:Lcom/mojang/serialization/Codec;intermediary field_55535Lnet/minecraft/class_1080;field_55535:Lcom/mojang/serialization/Codec;official bLhmc;b:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
AnimationFrameResourceMetadata
public AnimationFrameResourceMetadata(int index) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/resource/metadata/AnimationFrameResourceMetadata;<init>(I)Vintermediary <init>Lnet/minecraft/class_1080;<init>(I)Vofficial <init>Lhmc;<init>(I)V
-
AnimationFrameResourceMetadata
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/resource/metadata/AnimationFrameResourceMetadata;<init>(ILjava/util/Optional;)Vintermediary <init>Lnet/minecraft/class_1080;<init>(ILjava/util/Optional;)Vofficial <init>Lhmc;<init>(ILjava/util/Optional;)V
-
-
Method Details
-
getTime
public int getTime(int defaultTime) - Mappings:
Namespace Name Mixin selector named getTimeLnet/minecraft/client/resource/metadata/AnimationFrameResourceMetadata;getTime(I)Iintermediary method_4691Lnet/minecraft/class_1080;method_4691(I)Iofficial aLhmc;a(I)I
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
time
Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-