Package dev.latvian.mods.klib.render
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 dev.latvian.mods.klib.render.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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.latvian.mods.klib.render.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
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. 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
-