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.RenderType quadsCull, net.minecraft.client.renderer.rendertype.RenderType quadsNoCull, net.minecraft.client.renderer.rendertype.RenderType lines)
extends Record
implements BufferSupplier
-
Field Summary
Fields inherited from interface BufferSupplier
DEBUG, DEBUG_NO_DEPTH, DEBUG_SEE_THROUGH -
Constructor Summary
ConstructorsConstructorDescriptionFixedBufferSupplier(net.minecraft.client.renderer.rendertype.RenderType quadsCull, net.minecraft.client.renderer.rendertype.RenderType quadsNoCull, net.minecraft.client.renderer.rendertype.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.rendertype.RenderTypelines()Returns the value of thelinesrecord component.lines(net.minecraft.client.renderer.MultiBufferSource buffers) net.minecraft.client.renderer.rendertype.RenderTypeReturns the value of thequadsCullrecord component.quadsCull(net.minecraft.client.renderer.MultiBufferSource buffers) net.minecraft.client.renderer.rendertype.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 interface BufferSupplier
process, quads
-
Constructor Details
-
FixedBufferSupplier
public FixedBufferSupplier(net.minecraft.client.renderer.rendertype.RenderType quadsCull, net.minecraft.client.renderer.rendertype.RenderType quadsNoCull, net.minecraft.client.renderer.rendertype.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
-
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). -
quadsCull
public net.minecraft.client.renderer.rendertype.RenderType quadsCull()Returns the value of thequadsCullrecord component.- Returns:
- the value of the
quadsCullrecord component
-
quadsNoCull
public net.minecraft.client.renderer.rendertype.RenderType quadsNoCull()Returns the value of thequadsNoCullrecord component.- Returns:
- the value of the
quadsNoCullrecord component
-
lines
public net.minecraft.client.renderer.rendertype.RenderType lines()Returns the value of thelinesrecord component.- Returns:
- the value of the
linesrecord component
-