Record Class DynamicGpuData.IndexedDraw
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.DynamicGpuData.IndexedDraw
- All Implemented Interfaces:
DynamicGpuDataStorage.DynamicGpuData
- Enclosing class:
DynamicGpuData
public static record DynamicGpuData.IndexedDraw(int indexCount, int instanceCount, int firstIndex, int baseVertex, int baseInstance)
extends Record
implements DynamicGpuDataStorage.DynamicGpuData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thebaseInstancerecord component.private final intThe field for thebaseVertexrecord component.private final intThe field for thefirstIndexrecord component.private final intThe field for theindexCountrecord component.private final intThe field for theinstanceCountrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionIndexedDraw(int indexCount, int instanceCount, int firstIndex, int baseVertex, int baseInstance) Creates an instance of aIndexedDrawrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebaseInstancerecord component.intReturns the value of thebaseVertexrecord component.final 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 theinstanceCountrecord component.final StringtoString()Returns a string representation of this record class.voidwrite(ByteBuffer buffer)
-
Field Details
-
indexCount
private final int indexCountThe field for theindexCountrecord component. -
instanceCount
private final int instanceCountThe field for theinstanceCountrecord component. -
firstIndex
private final int firstIndexThe field for thefirstIndexrecord component. -
baseVertex
private final int baseVertexThe field for thebaseVertexrecord component. -
baseInstance
private final int baseInstanceThe field for thebaseInstancerecord component.
-
-
Constructor Details
-
IndexedDraw
public IndexedDraw(int indexCount, int instanceCount, int firstIndex, int baseVertex, int baseInstance) Creates an instance of aIndexedDrawrecord class.- Parameters:
indexCount- the value for theindexCountrecord componentinstanceCount- the value for theinstanceCountrecord componentfirstIndex- the value for thefirstIndexrecord componentbaseVertex- the value for thebaseVertexrecord componentbaseInstance- the value for thebaseInstancerecord component
-
-
Method Details
-
write
- Specified by:
writein interfaceDynamicGpuDataStorage.DynamicGpuData
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
indexCount
public int indexCount()Returns the value of theindexCountrecord component.- Returns:
- the value of the
indexCountrecord component
-
instanceCount
public int instanceCount()Returns the value of theinstanceCountrecord component.- Returns:
- the value of the
instanceCountrecord component
-
firstIndex
public int firstIndex()Returns the value of thefirstIndexrecord component.- Returns:
- the value of the
firstIndexrecord component
-
baseVertex
public int baseVertex()Returns the value of thebaseVertexrecord component.- Returns:
- the value of the
baseVertexrecord component
-
baseInstance
public int baseInstance()Returns the value of thebaseInstancerecord component.- Returns:
- the value of the
baseInstancerecord component
-