Record Class GuiSpriteScaling.Tile
java.lang.Object
java.lang.Record
net.minecraft.client.resources.metadata.gui.GuiSpriteScaling.Tile
- All Implemented Interfaces:
- GuiSpriteScaling
- Enclosing interface:
- GuiSpriteScaling
public static record GuiSpriteScaling.Tile(int width, int height)
extends Record
implements GuiSpriteScaling
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.client.resources.metadata.gui.GuiSpriteScalingGuiSpriteScaling.NineSlice, GuiSpriteScaling.Stretch, GuiSpriteScaling.Tile, GuiSpriteScaling.Type
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<GuiSpriteScaling.Tile>private final intThe field for theheightrecord component.private final intThe field for thewidthrecord component.Fields inherited from interface net.minecraft.client.resources.metadata.gui.GuiSpriteScalingDEFAULT
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.final StringtoString()Returns a string representation of this record class.type()intwidth()Returns the value of thewidthrecord component.
- 
Field Details- 
widthprivate final int widthThe field for thewidthrecord component.
- 
heightprivate final int heightThe field for theheightrecord component.
- 
CODEC
 
- 
- 
Constructor Details- 
Tilepublic Tile(int width, int height) Creates an instance of aTilerecord class.- Parameters:
- width- the value for the- widthrecord component
- height- the value for the- heightrecord component
 
 
- 
- 
Method Details- 
type- Specified by:
- typein interface- GuiSpriteScaling
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 with '=='.
- 
widthpublic int width()Returns the value of thewidthrecord component.- Returns:
- the value of the widthrecord component
 
- 
heightpublic int height()Returns the value of theheightrecord component.- Returns:
- the value of the heightrecord component
 
 
-