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 Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<AnimationResourceMetadata> private final int
The field for thedefaultFrameTime
record component.private final Optional
<List<AnimationFrameResourceMetadata>> The field for theframes
record component.The field for theheight
record component.private final boolean
The field for theinterpolate
record component.static final ResourceMetadataSerializer
<AnimationResourceMetadata> The field for thewidth
record component. -
Constructor Summary
ConstructorsConstructorDescriptionAnimationResourceMetadata
(Optional<List<AnimationFrameResourceMetadata>> optional, Optional<Integer> optional2, Optional<Integer> optional3, int defaultFrameTime, boolean interpolate) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of thedefaultFrameTime
record component.final boolean
Indicates whether some other object is "equal to" this one.frames()
Returns the value of theframes
record component.getSize
(int defaultWidth, int defaultHeight) final int
hashCode()
Returns a hash code value for this object.height()
Returns the value of theheight
record component.boolean
Returns the value of theinterpolate
record component.final String
toString()
Returns a string representation of this record class.width()
Returns the value of thewidth
record component.
-
Field Details
-
frames
The field for theframes
record component. -
width
The field for thewidth
record component. -
height
The field for theheight
record component. -
defaultFrameTime
private final int defaultFrameTimeThe field for thedefaultFrameTime
record component. -
interpolate
private final boolean interpolateThe field for theinterpolate
record 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
-
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)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;
-
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 theframes
record component.- Returns:
- the value of the
frames
record component
-
width
Returns the value of thewidth
record component.- Returns:
- the value of the
width
record component
-
height
Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-
defaultFrameTime
public int defaultFrameTime()Returns the value of thedefaultFrameTime
record component.- Returns:
- the value of the
defaultFrameTime
record component
-
interpolate
public boolean interpolate()Returns the value of theinterpolate
record component.- Returns:
- the value of the
interpolate
record component
-