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/AnimationResourceMetadataintermediary net/minecraft/class_1079official hmdnamed framesintermediary comp_3453official cnamed widthintermediary comp_3454official dnamed heightintermediary comp_3455official enamed defaultFrameTimeintermediary comp_3456official fnamed interpolateintermediary comp_3457official g
-
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionAnimationResourceMetadata(Optional<List<AnimationFrameResourceMetadata>> optional, Optional<Integer> optional2, Optional<Integer> optional3, int defaultFrameTime, boolean interpolate) -
Method Summary
Modifier 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
-
frames
The field for theframesrecord component. -
width
The field for thewidthrecord component. -
height
The field for theheightrecord component. -
defaultFrameTime
private final int defaultFrameTimeThe field for thedefaultFrameTimerecord component. -
interpolate
private final boolean interpolateThe field for theinterpolaterecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/resource/metadata/AnimationResourceMetadata;CODEC:Lcom/mojang/serialization/Codec;intermediary field_55536Lnet/minecraft/class_1079;field_55536:Lcom/mojang/serialization/Codec;official aLhmd;a:Lcom/mojang/serialization/Codec;
-
SERIALIZER
- Mappings:
Namespace Name Mixin selector named SERIALIZERLnet/minecraft/client/resource/metadata/AnimationResourceMetadata;SERIALIZER:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;intermediary field_55537Lnet/minecraft/class_1079;field_55537:Lnet/minecraft/class_7677;official bLhmd;b:Laun;
-
-
Constructor Details
-
AnimationResourceMetadata
public 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)Vintermediary <init>Lnet/minecraft/class_1079;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;IZ)Vofficial <init>Lhmd;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;IZ)V
-
-
Method Details
-
getSize
- Mappings:
Namespace Name Mixin selector named getSizeLnet/minecraft/client/resource/metadata/AnimationResourceMetadata;getSize(II)Lnet/minecraft/client/texture/SpriteDimensions;intermediary method_24143Lnet/minecraft/class_1079;method_24143(II)Lnet/minecraft/class_7771;official aLhmd;a(II)Lhme;
-
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 '=='. -
frames
Returns the value of theframesrecord component.- Returns:
- the value of the
framesrecord component
-
width
Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
defaultFrameTime
public int defaultFrameTime()Returns the value of thedefaultFrameTimerecord component.- Returns:
- the value of the
defaultFrameTimerecord component
-
interpolate
public boolean interpolate()Returns the value of theinterpolaterecord component.- Returns:
- the value of the
interpolaterecord component
-