Record Class TextureSection
java.lang.Object
java.lang.Record
net.lugo.overlaylib.util.TextureSection
public record TextureSection(TextureSection.TextureSectionData textureSectionData, int xIndex, int yIndex)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTextureSection(TextureSection.TextureSectionData textureSectionData, int xIndex, int yIndex) Creates an instance of aTextureSectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thetextureSectionDatarecord component.final StringtoString()Returns a string representation of this record class.floatuEnd()floatuStart()floatvEnd()floatvStart()intxIndex()Returns the value of thexIndexrecord component.intyIndex()Returns the value of theyIndexrecord component.
-
Field Details
-
SINGULAR
-
-
Constructor Details
-
TextureSection
Creates an instance of aTextureSectionrecord class.- Parameters:
textureSectionData- the value for thetextureSectionDatarecord componentxIndex- the value for thexIndexrecord componentyIndex- the value for theyIndexrecord component
-
-
Method Details
-
uStart
public float uStart() -
vStart
public float vStart() -
uEnd
public float uEnd() -
vEnd
public float vEnd() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
textureSectionData
Returns the value of thetextureSectionDatarecord component.- Returns:
- the value of the
textureSectionDatarecord component
-
xIndex
public int xIndex()Returns the value of thexIndexrecord component.- Returns:
- the value of the
xIndexrecord component
-
yIndex
public int yIndex()Returns the value of theyIndexrecord component.- Returns:
- the value of the
yIndexrecord component
-