Record Class WriteMaskLayer
java.lang.Object
java.lang.Record
foundry.veil.api.client.render.rendertype.layer.WriteMaskLayer
- All Implemented Interfaces:
RenderTypeLayer
public record WriteMaskLayer(boolean color, boolean depth)
extends Record
implements RenderTypeLayer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWriteMaskLayer(boolean color, boolean depth) Creates an instance of aWriteMaskLayerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddShard(VeilRenderTypeBuilder builder, Object... params) booleancolor()Returns the value of thecolorrecord component.booleandepth()Returns the value of thedepthrecord component.final booleanIndicates whether some other object is "equal to" this one.getType()final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
WriteMaskLayer
public WriteMaskLayer(boolean color, boolean depth) Creates an instance of aWriteMaskLayerrecord class.- Parameters:
color- the value for thecolorrecord componentdepth- the value for thedepthrecord component
-
-
Method Details
-
addShard
- Specified by:
addShardin interfaceRenderTypeLayer
-
getType
- Specified by:
getTypein interfaceRenderTypeLayer
-
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 with '=='. -
color
public boolean color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
depth
public boolean depth()Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-