Record Class GuiResourceMetadata
java.lang.Object
java.lang.Record
net.minecraft.client.resource.metadata.GuiResourceMetadata
- Record Components:
scaling-
- Mappings:
Namespace Name named net/minecraft/client/resource/metadata/GuiResourceMetadataintermediary net/minecraft/class_8689official gscnamed scalingintermediary comp_1636official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<GuiResourceMetadata> static final GuiResourceMetadataprivate final ScalingThe field for thescalingrecord component.static final ResourceMetadataSerializer<GuiResourceMetadata> -
Constructor Summary
ConstructorsConstructorDescriptionGuiResourceMetadata(Scaling scaling) Creates an instance of aGuiResourceMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.scaling()Returns the value of thescalingrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
scaling
The field for thescalingrecord component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/client/resource/metadata/GuiResourceMetadata;DEFAULT:Lnet/minecraft/client/resource/metadata/GuiResourceMetadata;intermediary field_45645Lnet/minecraft/class_8689;field_45645:Lnet/minecraft/class_8689;official aLgsc;a:Lgsc;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/resource/metadata/GuiResourceMetadata;CODEC:Lcom/mojang/serialization/Codec;intermediary field_45646Lnet/minecraft/class_8689;field_45646:Lcom/mojang/serialization/Codec;official bLgsc;b:Lcom/mojang/serialization/Codec;
-
SERIALIZER
- Mappings:
Namespace Name Mixin selector named SERIALIZERLnet/minecraft/client/resource/metadata/GuiResourceMetadata;SERIALIZER:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;intermediary field_45647Lnet/minecraft/class_8689;field_45647:Lnet/minecraft/class_7677;official cLgsc;c:Late;
-
-
Constructor Details
-
GuiResourceMetadata
Creates an instance of aGuiResourceMetadatarecord class.- Parameters:
scaling- the value for thescalingrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
scaling
Returns the value of thescalingrecord component.- Returns:
- the value of the
scalingrecord component
-