Record Class ColorTargetState
java.lang.Object
java.lang.Record
com.mojang.blaze3d.pipeline.ColorTargetState
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<BlendFunction> The field for theblendFunctionrecord component.static final ColorTargetStatestatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprivate final intThe field for thewriteMaskrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionColorTargetState(BlendFunction blendFunction) ColorTargetState(Optional<BlendFunction> blendFunction, int writeMask) Creates an instance of aColorTargetStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblendFunctionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.booleanbooleanbooleanintReturns the value of thewriteMaskrecord component.booleanwriteRed()
-
Field Details
-
blendFunction
The field for theblendFunctionrecord component. -
writeMask
private final int writeMaskThe field for thewriteMaskrecord component. -
WRITE_RED
public static final int WRITE_RED- See Also:
-
WRITE_GREEN
public static final int WRITE_GREEN- See Also:
-
WRITE_BLUE
public static final int WRITE_BLUE- See Also:
-
WRITE_ALPHA
public static final int WRITE_ALPHA- See Also:
-
WRITE_COLOR
public static final int WRITE_COLOR- See Also:
-
WRITE_ALL
public static final int WRITE_ALL- See Also:
-
WRITE_NONE
public static final int WRITE_NONE- See Also:
-
DEFAULT
-
-
Constructor Details
-
ColorTargetState
-
ColorTargetState
Creates an instance of aColorTargetStaterecord class.- Parameters:
blendFunction- the value for theblendFunctionrecord componentwriteMask- the value for thewriteMaskrecord component
-
-
Method Details
-
writeRed
public boolean writeRed() -
writeGreen
public boolean writeGreen() -
writeBlue
public boolean writeBlue() -
writeAlpha
public boolean writeAlpha() -
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. -
blendFunction
Returns the value of theblendFunctionrecord component.- Returns:
- the value of the
blendFunctionrecord component
-
writeMask
public int writeMask()Returns the value of thewriteMaskrecord component.- Returns:
- the value of the
writeMaskrecord component
-