Record Class BedrockActorDepth
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.render.BedrockActorDepth
public record BedrockActorDepth(com.mojang.renderpearl.api.pipeline.CompareOp comparison, boolean write)
extends Record
Material depth uses native near-zero depth; Java pipelines use reversed depth.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBedrockActorDepth(com.mojang.renderpearl.api.pipeline.CompareOp comparison, boolean write) Creates an instance of aBedrockActorDepthrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.renderpearl.api.pipeline.CompareOpReturns the value of thecomparisonrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static Optional<BedrockActorDepth> booleanA split emission pass sees the buffer after its body has written depth.Optional<com.mojang.renderpearl.api.pipeline.DepthStencilState> state()suffix()final StringtoString()Returns a string representation of this record class.booleanwrite()Returns the value of thewriterecord component.
-
Field Details
-
DEFAULT
-
DISABLED
-
-
Constructor Details
-
BedrockActorDepth
public BedrockActorDepth(com.mojang.renderpearl.api.pipeline.CompareOp comparison, boolean write) Creates an instance of aBedrockActorDepthrecord class.- Parameters:
comparison- the value for thecomparisonrecord componentwrite- the value for thewriterecord component
-
-
Method Details
-
read
-
state
-
suffix
-
repeatable
public boolean repeatable()A split emission pass sees the buffer after its body has written depth. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
comparison
public com.mojang.renderpearl.api.pipeline.CompareOp comparison()Returns the value of thecomparisonrecord component.- Returns:
- the value of the
comparisonrecord component
-
write
public boolean write()Returns the value of thewriterecord component.- Returns:
- the value of the
writerecord component
-