Record Class Texture
java.lang.Object
java.lang.Record
top.untold.frostlumen.core.texture.Texture
public record Texture(boolean isNiceSlice, NiceSliceType sliceType, boolean stretchInner, int textureId, int width, int height, int channel, String filePath, int left, int right, int top, int bottom)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTexture(boolean isNiceSlice, NiceSliceType sliceType, boolean stretchInner, int textureId, int width, int height, int channel, String filePath, int left, int right, int top, int bottom) Creates an instance of aTexturerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbottom()Returns the value of thebottomrecord component.intchannel()Returns the value of thechannelrecord component.final booleanIndicates whether some other object is "equal to" this one.filePath()Returns the value of thefilePathrecord component.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.booleanReturns the value of theisNiceSlicerecord component.intleft()Returns the value of theleftrecord component.intright()Returns the value of therightrecord component.Returns the value of thesliceTyperecord component.booleanReturns the value of thestretchInnerrecord component.intReturns the value of thetextureIdrecord component.inttop()Returns the value of thetoprecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
Texture
public Texture(boolean isNiceSlice, NiceSliceType sliceType, boolean stretchInner, int textureId, int width, int height, int channel, String filePath, int left, int right, int top, int bottom) Creates an instance of aTexturerecord class.- Parameters:
isNiceSlice- the value for theisNiceSlicerecord componentsliceType- the value for thesliceTyperecord componentstretchInner- the value for thestretchInnerrecord componenttextureId- the value for thetextureIdrecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentchannel- the value for thechannelrecord componentfilePath- the value for thefilePathrecord componentleft- the value for theleftrecord componentright- the value for therightrecord componenttop- the value for thetoprecord componentbottom- the value for thebottomrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
isNiceSlice
public boolean isNiceSlice()Returns the value of theisNiceSlicerecord component.- Returns:
- the value of the
isNiceSlicerecord component
-
sliceType
Returns the value of thesliceTyperecord component.- Returns:
- the value of the
sliceTyperecord component
-
stretchInner
public boolean stretchInner()Returns the value of thestretchInnerrecord component.- Returns:
- the value of the
stretchInnerrecord component
-
textureId
public int textureId()Returns the value of thetextureIdrecord component.- Returns:
- the value of the
textureIdrecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
channel
public int channel()Returns the value of thechannelrecord component.- Returns:
- the value of the
channelrecord component
-
filePath
Returns the value of thefilePathrecord component.- Returns:
- the value of the
filePathrecord component
-
left
public int left()Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
right
public int right()Returns the value of therightrecord component.- Returns:
- the value of the
rightrecord component
-
top
public int top()Returns the value of thetoprecord component.- Returns:
- the value of the
toprecord component
-
bottom
public int bottom()Returns the value of thebottomrecord component.- Returns:
- the value of the
bottomrecord component
-