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
ConstructorDescriptionNineSliceSprite
(net.minecraft.resources.ResourceLocation atlasLocation, guideme.render.SpritePadding padding, float[] uv) Creates an instance of aNineSliceSprite
record class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocation
Returns the value of theatlasLocation
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.guideme.render.SpritePadding
padding()
Returns the value of thepadding
record component.final String
toString()
Returns a string representation of this record class.float[]
uv()
Returns the value of theuv
record component.
-
Constructor Details
-
NineSliceSprite
public NineSliceSprite(net.minecraft.resources.ResourceLocation atlasLocation, guideme.render.SpritePadding padding, float[] uv) Creates an instance of aNineSliceSprite
record class.- Parameters:
atlasLocation
- the value for theatlasLocation
record componentpadding
- the value for thepadding
record componentuv
- the value for theuv
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)
. -
atlasLocation
public net.minecraft.resources.ResourceLocation atlasLocation()Returns the value of theatlasLocation
record component.- Returns:
- the value of the
atlasLocation
record component
-
padding
public guideme.render.SpritePadding padding()Returns the value of thepadding
record component.- Returns:
- the value of the
padding
record component
-
uv
public float[] uv()Returns the value of theuv
record component.- Returns:
- the value of the
uv
record component
-