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/AnimationFrameResourceMetadata- intermediary - net/minecraft/class_1080- official - hgf- named - index- intermediary - comp_3451- official - c- named - time- intermediary - comp_3452- official - d
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionAnimationFrameResourceMetadata(int index) AnimationFrameResourceMetadata(int index, Optional<Integer> optional) 
- 
Method SummaryModifier 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- 
indexprivate final int indexThe field for theindexrecord component.
- 
timeThe field for thetimerecord component.
- 
BASE_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - BASE_CODEC- Lnet/minecraft/client/resource/metadata/AnimationFrameResourceMetadata;BASE_CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_55534- Lnet/minecraft/class_1080;field_55534:Lcom/mojang/serialization/Codec;- official - a- Lhgf;a:Lcom/mojang/serialization/Codec;
 
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/client/resource/metadata/AnimationFrameResourceMetadata;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_55535- Lnet/minecraft/class_1080;field_55535:Lcom/mojang/serialization/Codec;- official - b- Lhgf;b:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
AnimationFrameResourceMetadatapublic AnimationFrameResourceMetadata(int index) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/client/resource/metadata/AnimationFrameResourceMetadata;<init>(I)V- intermediary - <init>- Lnet/minecraft/class_1080;<init>(I)V- official - <init>- Lhgf;<init>(I)V
 
- 
AnimationFrameResourceMetadata- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/client/resource/metadata/AnimationFrameResourceMetadata;<init>(ILjava/util/Optional;)V- intermediary - <init>- Lnet/minecraft/class_1080;<init>(ILjava/util/Optional;)V- official - <init>- Lhgf;<init>(ILjava/util/Optional;)V
 
 
- 
- 
Method Details- 
getTimepublic int getTime(int defaultTime) - Mappings:
- Namespace - Name - Mixin selector - named - getTime- Lnet/minecraft/client/resource/metadata/AnimationFrameResourceMetadata;getTime(I)I- intermediary - method_4691- Lnet/minecraft/class_1080;method_4691(I)I- official - a- Lhgf;a(I)I
 
- 
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
indexpublic int index()Returns the value of theindexrecord component.- Returns:
- the value of the indexrecord component
 
- 
timeReturns the value of thetimerecord component.- Returns:
- the value of the timerecord component
 
 
-