Record Class GuiSpriteScaling.NineSlice
java.lang.Object
java.lang.Record
net.minecraft.client.resources.metadata.gui.GuiSpriteScaling.NineSlice
- All Implemented Interfaces:
- GuiSpriteScaling
- Enclosing interface:
- GuiSpriteScaling
public static record GuiSpriteScaling.NineSlice(int width, int height, GuiSpriteScaling.NineSlice.Border border)
extends Record
implements GuiSpriteScaling
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from interface net.minecraft.client.resources.metadata.gui.GuiSpriteScalingGuiSpriteScaling.NineSlice, GuiSpriteScaling.Stretch, GuiSpriteScaling.Tile, GuiSpriteScaling.Type
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final GuiSpriteScaling.NineSlice.BorderThe field for theborderrecord component.static final com.mojang.serialization.Codec<GuiSpriteScaling.NineSlice>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 SummaryConstructorsConstructorDescriptionNineSlice(int width, int height, GuiSpriteScaling.NineSlice.Border border) Creates an instance of aNineSlicerecord class.
- 
Method SummaryModifier and TypeMethodDescriptionborder()Returns the value of theborderrecord component.final 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()private static com.mojang.serialization.DataResult<GuiSpriteScaling.NineSlice>validate(GuiSpriteScaling.NineSlice p_298579_) 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.
- 
borderThe field for theborderrecord component.
- 
CODEC
 
- 
- 
Constructor Details- 
NineSliceCreates an instance of aNineSlicerecord class.- Parameters:
- width- the value for the- widthrecord component
- height- the value for the- heightrecord component
- border- the value for the- borderrecord component
 
 
- 
- 
Method Details- 
validateprivate static com.mojang.serialization.DataResult<GuiSpriteScaling.NineSlice> validate(GuiSpriteScaling.NineSlice p_298579_) 
- 
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. Reference components are compared withObjects::equals(Object,Object); primitive components 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
 
- 
borderReturns the value of theborderrecord component.- Returns:
- the value of the borderrecord component
 
 
-