Record Class SectionRenderDispatcher.RenderSectionBufferSlice
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.chunk.SectionRenderDispatcher.RenderSectionBufferSlice
- Enclosing class:
SectionRenderDispatcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable GpuBufferThe field for theindexBufferrecord component.private final longThe field for theindexBufferOffsetrecord component.private final GpuBufferThe field for thevertexBufferrecord component.private final longThe field for thevertexBufferOffsetrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRenderSectionBufferSlice(GpuBuffer vertexBuffer, long vertexBufferOffset, @Nullable GpuBuffer indexBuffer, long indexBufferOffset) Creates an instance of aRenderSectionBufferSlicerecord 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.@Nullable GpuBufferReturns the value of theindexBufferrecord component.longReturns the value of theindexBufferOffsetrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevertexBufferrecord component.longReturns the value of thevertexBufferOffsetrecord component.
-
Field Details
-
vertexBuffer
The field for thevertexBufferrecord component. -
vertexBufferOffset
private final long vertexBufferOffsetThe field for thevertexBufferOffsetrecord component. -
indexBuffer
The field for theindexBufferrecord component. -
indexBufferOffset
private final long indexBufferOffsetThe field for theindexBufferOffsetrecord component.
-
-
Constructor Details
-
RenderSectionBufferSlice
public RenderSectionBufferSlice(GpuBuffer vertexBuffer, long vertexBufferOffset, @Nullable GpuBuffer indexBuffer, long indexBufferOffset) Creates an instance of aRenderSectionBufferSlicerecord class.- Parameters:
vertexBuffer- the value for thevertexBufferrecord componentvertexBufferOffset- the value for thevertexBufferOffsetrecord componentindexBuffer- the value for theindexBufferrecord componentindexBufferOffset- the value for theindexBufferOffsetrecord 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. -
vertexBuffer
Returns the value of thevertexBufferrecord component.- Returns:
- the value of the
vertexBufferrecord component
-
vertexBufferOffset
public long vertexBufferOffset()Returns the value of thevertexBufferOffsetrecord component.- Returns:
- the value of the
vertexBufferOffsetrecord component
-
indexBuffer
Returns the value of theindexBufferrecord component.- Returns:
- the value of the
indexBufferrecord component
-
indexBufferOffset
public long indexBufferOffset()Returns the value of theindexBufferOffsetrecord component.- Returns:
- the value of the
indexBufferOffsetrecord component
-