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 Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<AnimationFrameResourceMetadata> static final com.mojang.serialization.Codec
<AnimationFrameResourceMetadata> private final int
The field for theindex
record component.The field for thetime
record component. -
Constructor Summary
ConstructorsConstructorDescriptionAnimationFrameResourceMetadata
(int index) AnimationFrameResourceMetadata
(int index, Optional<Integer> optional) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.int
getTime
(int defaultTime) final int
hashCode()
Returns a hash code value for this object.int
index()
Returns the value of theindex
record component.time()
Returns the value of thetime
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
index
private final int indexThe field for theindex
record component. -
time
The field for thetime
record 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
-
AnimationFrameResourceMetadata
public 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
-
getTime
public 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
-
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 theindex
record component.- Returns:
- the value of the
index
record component
-
time
Returns the value of thetime
record component.- Returns:
- the value of the
time
record component
-