Record Class AnimationResourceMetadata
java.lang.Object
java.lang.Record
net.minecraft.client.resource.metadata.AnimationResourceMetadata
- Record Components:
- frames-
- width-
- height-
- defaultFrameTime-
- interpolate-
@Environment(CLIENT)
public record AnimationResourceMetadata(Optional<List<AnimationFrameResourceMetadata>> frames, Optional<Integer> width, Optional<Integer> height, int defaultFrameTime, boolean interpolate)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/client/resource/metadata/AnimationResourceMetadata- intermediary - net/minecraft/class_1079- official - hgg- named - frames- intermediary - comp_3453- official - c- named - width- intermediary - comp_3454- official - d- named - height- intermediary - comp_3455- official - e- named - defaultFrameTime- intermediary - comp_3456- official - f- named - interpolate- intermediary - comp_3457- official - g
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<AnimationResourceMetadata> private final intThe field for thedefaultFrameTimerecord component.private final Optional<List<AnimationFrameResourceMetadata>> The field for theframesrecord component.The field for theheightrecord component.private final booleanThe field for theinterpolaterecord component.static final ResourceMetadataSerializer<AnimationResourceMetadata> The field for thewidthrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionAnimationResourceMetadata(Optional<List<AnimationFrameResourceMetadata>> optional, Optional<Integer> optional2, Optional<Integer> optional3, int defaultFrameTime, boolean interpolate) 
- 
Method SummaryModifier and TypeMethodDescriptionintReturns the value of thedefaultFrameTimerecord component.final booleanIndicates whether some other object is "equal to" this one.frames()Returns the value of theframesrecord component.getSize(int defaultWidth, int defaultHeight) final inthashCode()Returns a hash code value for this object.height()Returns the value of theheightrecord component.booleanReturns the value of theinterpolaterecord component.final StringtoString()Returns a string representation of this record class.width()Returns the value of thewidthrecord component.
- 
Field Details- 
framesThe field for theframesrecord component.
- 
widthThe field for thewidthrecord component.
- 
heightThe field for theheightrecord component.
- 
defaultFrameTimeprivate final int defaultFrameTimeThe field for thedefaultFrameTimerecord component.
- 
interpolateprivate final boolean interpolateThe field for theinterpolaterecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_55536- Lnet/minecraft/class_1079;field_55536:Lcom/mojang/serialization/Codec;- official - a- Lhgg;a:Lcom/mojang/serialization/Codec;
 
- 
SERIALIZER- Mappings:
- Namespace - Name - Mixin selector - named - SERIALIZER- Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;SERIALIZER:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;- intermediary - field_55537- Lnet/minecraft/class_1079;field_55537:Lnet/minecraft/class_7677;- official - b- Lhgg;b:Latp;
 
 
- 
- 
Constructor Details- 
AnimationResourceMetadatapublic AnimationResourceMetadata(Optional<List<AnimationFrameResourceMetadata>> optional, Optional<Integer> optional2, Optional<Integer> optional3, int defaultFrameTime, boolean interpolate) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;IZ)V- intermediary - <init>- Lnet/minecraft/class_1079;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;IZ)V- official - <init>- Lhgg;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;IZ)V
 
 
- 
- 
Method Details- 
getSize- Mappings:
- Namespace - Name - Mixin selector - named - getSize- Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;getSize(II)Lnet/minecraft/client/texture/SpriteDimensions;- intermediary - method_24143- Lnet/minecraft/class_1079;method_24143(II)Lnet/minecraft/class_7771;- official - a- Lhgg;a(II)Lhgh;
 
- 
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 '=='.
- 
framesReturns the value of theframesrecord component.- Returns:
- the value of the framesrecord component
 
- 
widthReturns the value of thewidthrecord component.- Returns:
- the value of the widthrecord component
 
- 
heightReturns the value of theheightrecord component.- Returns:
- the value of the heightrecord component
 
- 
defaultFrameTimepublic int defaultFrameTime()Returns the value of thedefaultFrameTimerecord component.- Returns:
- the value of the defaultFrameTimerecord component
 
- 
interpolatepublic boolean interpolate()Returns the value of theinterpolaterecord component.- Returns:
- the value of the interpolaterecord component
 
 
-