Package dev.latvian.mods.klib.render
Record Class FixedBufferSupplier
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.render.FixedBufferSupplier
- All Implemented Interfaces:
BufferSupplier
public record FixedBufferSupplier(net.minecraft.client.renderer.RenderType quadsCull, net.minecraft.client.renderer.RenderType quadsNoCull, net.minecraft.client.renderer.RenderType lines)
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
ConstructorsConstructorDescriptionFixedBufferSupplier(net.minecraft.client.renderer.RenderType quadsCull, net.minecraft.client.renderer.RenderType quadsNoCull, net.minecraft.client.renderer.RenderType lines) Creates an instance of aFixedBufferSupplierrecord 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.net.minecraft.client.renderer.RenderTypelines()Returns the value of thelinesrecord component.lines(net.minecraft.client.renderer.MultiBufferSource buffers) net.minecraft.client.renderer.RenderTypeReturns the value of thequadsCullrecord component.quadsCull(net.minecraft.client.renderer.MultiBufferSource buffers) net.minecraft.client.renderer.RenderTypeReturns the value of thequadsNoCullrecord component.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
-
FixedBufferSupplier
public FixedBufferSupplier(net.minecraft.client.renderer.RenderType quadsCull, net.minecraft.client.renderer.RenderType quadsNoCull, net.minecraft.client.renderer.RenderType lines) Creates an instance of aFixedBufferSupplierrecord class.- Parameters:
quadsCull- the value for thequadsCullrecord componentquadsNoCull- the value for thequadsNoCullrecord componentlines- the value for thelinesrecord 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). -
quadsCull
public net.minecraft.client.renderer.RenderType quadsCull()Returns the value of thequadsCullrecord component.- Returns:
- the value of the
quadsCullrecord component
-
quadsNoCull
public net.minecraft.client.renderer.RenderType quadsNoCull()Returns the value of thequadsNoCullrecord component.- Returns:
- the value of the
quadsNoCullrecord component
-
lines
public net.minecraft.client.renderer.RenderType lines()Returns the value of thelinesrecord component.- Returns:
- the value of the
linesrecord component
-