Record Class DepthFunctionPostStage
java.lang.Object
java.lang.Record
foundry.veil.api.client.render.post.stage.DepthFunctionPostStage
- Record Components:
func- The new depth function to use
- All Implemented Interfaces:
PostPipeline,MutableUniformAccess,UniformAccess,AutoCloseable,org.lwjgl.system.NativeResource
public record DepthFunctionPostStage(DepthFunctionPostStage.DepthFunc func)
extends Record
implements PostPipeline
Sets the depth function.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface foundry.veil.api.client.render.post.PostPipeline
PostPipeline.Context -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<DepthFunctionPostStage> -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aDepthFunctionPostStagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(PostPipeline.Context context) Applies this post effect.final booleanIndicates whether some other object is "equal to" this one.func()Returns the value of thefuncrecord component.getType()final inthashCode()Returns a hash code value for this object.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 foundry.veil.api.client.render.shader.program.MutableUniformAccess
applyRenderSystem, setVector, setVector, setVector, setVector, setVectorI, setVectorI, setVectorIMethods inherited from interface org.lwjgl.system.NativeResource
closeMethods inherited from interface foundry.veil.api.client.render.post.PostPipeline
free, getFloat, getFloats, getInt, getInts, getMatrix, getMatrix, getMatrix, getMatrix, getMatrix, getStorageBlock, getUniform, getUniformBlock, getVector, getVector, getVector, getVector, getVector, getVector, hasStorageBlock, hasUniform, hasUniformBlock, setFloat, setFloats, setInt, setInts, setMatrix, setMatrix, setMatrix, setMatrix, setMatrix, setStorageBlock, setUniformBlock, setVector, setVector, setVector, setVectorI, setVectorI, setVectorI, setVectors, setVectors, setVectors, setVectors, setVectors, setVectors
-
Field Details
-
CODEC
-
-
Constructor Details
-
DepthFunctionPostStage
Creates an instance of aDepthFunctionPostStagerecord class.- Parameters:
func- the value for thefuncrecord component
-
-
Method Details
-
apply
Description copied from interface:PostPipelineApplies this post effect.PostProcessingManager.runPipeline(PostPipeline)should be called to run this pipeline.- Specified by:
applyin interfacePostPipeline- Parameters:
context- The context to use when running this pipeline.
-
getType
- Specified by:
getTypein interfacePostPipeline- Returns:
- The type of post effect this is
-
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). -
func
Returns the value of thefuncrecord component.- Returns:
- the value of the
funcrecord component
-