Record Class GuiAssets.NineSliceSprite
java.lang.Object
java.lang.Record
guideme.render.GuiAssets.NineSliceSprite
- Record Components:
uv- First 4 U values delimiting the horizontal slices, then 4 V values delimiting the vertical slices. These values refer to the atlas.
- Enclosing class:
GuiAssets
public static record GuiAssets.NineSliceSprite(net.minecraft.resources.Identifier atlasLocation, guideme.render.SpritePadding padding, float[] uv)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionNineSliceSprite(net.minecraft.resources.Identifier atlasLocation, guideme.render.SpritePadding padding, float[] uv) Creates an instance of aNineSliceSpriterecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.IdentifierReturns the value of theatlasLocationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.guideme.render.SpritePaddingpadding()Returns the value of thepaddingrecord component.final StringtoString()Returns a string representation of this record class.float[]uv()Returns the value of theuvrecord component.
-
Constructor Details
-
NineSliceSprite
public NineSliceSprite(net.minecraft.resources.Identifier atlasLocation, guideme.render.SpritePadding padding, float[] uv) Creates an instance of aNineSliceSpriterecord class.- Parameters:
atlasLocation- the value for theatlasLocationrecord componentpadding- the value for thepaddingrecord componentuv- the value for theuvrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
atlasLocation
public net.minecraft.resources.Identifier atlasLocation()Returns the value of theatlasLocationrecord component.- Returns:
- the value of the
atlasLocationrecord component
-
padding
public guideme.render.SpritePadding padding()Returns the value of thepaddingrecord component.- Returns:
- the value of the
paddingrecord component
-
uv
-