Record Class StencilPerFaceTest
java.lang.Object
java.lang.Record
net.neoforged.neoforge.client.stencil.StencilPerFaceTest
- Record Components:
fail
- The operation to apply to the stencil buffer when the fragment fails the stencil test.depthFail
- The operation to apply to the stencil buffer when the fragment fails the depth test.pass
- The operation to apply to the stencil buffer when the fragment passes both the stencil and depth test.compare
- The comparison operator to use for determining whether the fragment passes the stencil test.
public record StencilPerFaceTest(StencilOperation fail, StencilOperation depthFail, StencilOperation pass, StencilFunction compare)
extends Record
Describes the stencil test and writing state for the front or back face.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StencilFunction
The field for thecompare
record component.private final StencilOperation
The field for thedepthFail
record component.private final StencilOperation
The field for thefail
record component.private final StencilOperation
The field for thepass
record component. -
Constructor Summary
ConstructorsConstructorDescriptionStencilPerFaceTest
(StencilOperation fail, StencilOperation depthFail, StencilOperation pass, StencilFunction compare) Creates an instance of aStencilPerFaceTest
record class. -
Method Summary
Modifier and TypeMethodDescriptioncompare()
Returns the value of thecompare
record component.Returns the value of thedepthFail
record component.final boolean
Indicates whether some other object is "equal to" this one.fail()
Returns the value of thefail
record component.final int
hashCode()
Returns a hash code value for this object.pass()
Returns the value of thepass
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
StencilPerFaceTest
public StencilPerFaceTest(StencilOperation fail, StencilOperation depthFail, StencilOperation pass, StencilFunction compare) Creates an instance of aStencilPerFaceTest
record class.
-
-
Method Details
-
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)
. -
fail
Returns the value of thefail
record component.- Returns:
- the value of the
fail
record component
-
depthFail
Returns the value of thedepthFail
record component.- Returns:
- the value of the
depthFail
record component
-
pass
Returns the value of thepass
record component.- Returns:
- the value of the
pass
record component
-
compare
Returns the value of thecompare
record component.- Returns:
- the value of the
compare
record component
-