Record Class ProcessedBufferSupplier
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.render.ProcessedBufferSupplier
- All Implemented Interfaces:
BufferSupplier
public record ProcessedBufferSupplier(BufferSupplier delegate, UnaryOperator<VertexCallback> process)
extends Record
implements BufferSupplier
-
Field Summary
Fields inherited from interface BufferSupplier
DEBUG, DEBUG_NO_DEPTH, DEBUG_SEE_THROUGH -
Constructor Summary
ConstructorsConstructorDescriptionProcessedBufferSupplier(BufferSupplier delegate, UnaryOperator<VertexCallback> process) Creates an instance of aProcessedBufferSupplierrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondelegate()Returns the value of thedelegaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.lines(net.minecraft.client.renderer.MultiBufferSource buffers) process()Returns the value of theprocessrecord component.quadsCull(net.minecraft.client.renderer.MultiBufferSource buffers) quadsNoCull(net.minecraft.client.renderer.MultiBufferSource buffers) final StringtoString()Returns a string representation of this record class.Methods inherited from interface BufferSupplier
process, quads
-
Constructor Details
-
ProcessedBufferSupplier
Creates an instance of aProcessedBufferSupplierrecord class.- Parameters:
delegate- the value for thedelegaterecord componentprocess- the value for theprocessrecord component
-
-
Method Details
-
quadsCull
- Specified by:
quadsCullin interfaceBufferSupplier
-
quadsNoCull
- Specified by:
quadsNoCullin interfaceBufferSupplier
-
lines
- Specified by:
linesin interfaceBufferSupplier
-
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). -
delegate
Returns the value of thedelegaterecord component.- Returns:
- the value of the
delegaterecord component
-
process
Returns the value of theprocessrecord component.- Returns:
- the value of the
processrecord component
-