Record Class GuiMetadataSection
java.lang.Object
java.lang.Record
net.minecraft.client.resources.metadata.gui.GuiMetadataSection
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<GuiMetadataSection> static final GuiMetadataSectionprivate final GuiSpriteScalingThe field for thescalingrecord component.static final MetadataSectionType<GuiMetadataSection> -
Constructor Summary
ConstructorsConstructorDescriptionGuiMetadataSection(GuiSpriteScaling scaling) Creates an instance of aGuiMetadataSectionrecord 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
-
CODEC
-
TYPE
-
-
Constructor Details
-
GuiMetadataSection
Creates an instance of aGuiMetadataSectionrecord 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
-