Record Class GuiMetadataSection
java.lang.Object
java.lang.Record
net.minecraft.client.resources.metadata.gui.GuiMetadataSection
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<GuiMetadataSection> static final GuiMetadataSection
private final GuiSpriteScaling
The field for thescaling
record component.static final MetadataSectionType
<GuiMetadataSection> -
Constructor Summary
ConstructorDescriptionGuiMetadataSection
(GuiSpriteScaling scaling) Creates an instance of aGuiMetadataSection
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.scaling()
Returns the value of thescaling
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
scaling
The field for thescaling
record component. -
DEFAULT
-
CODEC
-
TYPE
-
-
Constructor Details
-
GuiMetadataSection
Creates an instance of aGuiMetadataSection
record class.- Parameters:
scaling
- the value for thescaling
record 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 thescaling
record component.- Returns:
- the value of the
scaling
record component
-