Record Class InstanceFormat
java.lang.Object
java.lang.Record
team.lodestar.lodestone.modules.rendering.particle.visual.instance.InstanceFormat
public record InstanceFormat(List<InstanceElement> elements, int totalFloats, int strideBytes)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionInstanceFormat(List<InstanceElement> elements, int totalFloats, int strideBytes) Creates an instance of aInstanceFormatrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic InstanceFormat.Buildercreate()elements()Returns the value of theelementsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thestrideBytesrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalFloatsrecord component.
-
Constructor Details
-
InstanceFormat
Creates an instance of aInstanceFormatrecord class.- Parameters:
elements- the value for theelementsrecord componenttotalFloats- the value for thetotalFloatsrecord componentstrideBytes- the value for thestrideBytesrecord component
-
-
Method Details
-
create
-
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 '=='. -
elements
Returns the value of theelementsrecord component.- Returns:
- the value of the
elementsrecord component
-
totalFloats
public int totalFloats()Returns the value of thetotalFloatsrecord component.- Returns:
- the value of the
totalFloatsrecord component
-
strideBytes
public int strideBytes()Returns the value of thestrideBytesrecord component.- Returns:
- the value of the
strideBytesrecord component
-