Record Class StagedVertexBuffer.GpuBufferPool.PendingRecycle
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.StagedVertexBuffer.GpuBufferPool.PendingRecycle
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
StagedVertexBuffer.GpuBufferPool
private static record StagedVertexBuffer.GpuBufferPool.PendingRecycle(List<GpuBuffer> buffers, GpuFence fence)
extends Record
implements AutoCloseable
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePendingRecycle(List<GpuBuffer> buffers, GpuFence fence) Creates an instance of aPendingRecyclerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuffers()Returns the value of thebuffersrecord component.voidclose()final booleanIndicates whether some other object is "equal to" this one.fence()Returns the value of thefencerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
buffers
-
fence
The field for thefencerecord component.
-
-
Constructor Details
-
PendingRecycle
-
-
Method Details
-
tryRecycle
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
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 withObjects::equals(Object,Object). -
buffers
-
fence
Returns the value of thefencerecord component.- Returns:
- the value of the
fencerecord component
-