Package guideme.render
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.ResourceLocation atlasLocation, guideme.render.SpritePadding padding, float[] uv)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionNineSliceSprite(net.minecraft.resources.ResourceLocation atlasLocation, guideme.render.SpritePadding padding, float[] uv) Creates an instance of aNineSliceSpriterecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocationReturns 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.ResourceLocation 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
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). -
atlasLocation
public net.minecraft.resources.ResourceLocation 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
public float[] uv()Returns the value of theuvrecord component.- Returns:
- the value of the
uvrecord component
-