Record Class WorldMesh.Submesh
java.lang.Object
java.lang.Record
com.render.api.world.WorldMesh.Submesh
- Enclosing class:
WorldMesh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefirstIndexrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theindexCountrecord component.intReturns the value of thematerialSlotrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Submesh
Creates an instance of aSubmeshrecord class.- Parameters:
name- the value for thenamerecord componentfirstIndex- the value for thefirstIndexrecord componentindexCount- the value for theindexCountrecord componentmaterialSlot- the value for thematerialSlotrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
firstIndex
public int firstIndex()Returns the value of thefirstIndexrecord component.- Returns:
- the value of the
firstIndexrecord component
-
indexCount
public int indexCount()Returns the value of theindexCountrecord component.- Returns:
- the value of the
indexCountrecord component
-
materialSlot
public int materialSlot()Returns the value of thematerialSlotrecord component.- Returns:
- the value of the
materialSlotrecord component
-