Record Class ColorTargetState
java.lang.Object
java.lang.Record
com.mojang.blaze3d.pipeline.ColorTargetState
public record ColorTargetState(Optional<BlendFunction> blendFunction, GpuFormat format, int writeMask)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<BlendFunction> The field for theblendFunctionrecord component.static final ColorTargetStateprivate final GpuFormatThe field for theformatrecord component.static final intstatic 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, GpuFormat format, 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.format()Returns the value of theformatrecord component.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. -
format
The field for theformatrecord 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
-
MAX_COLOR_TARGETS
public static final int MAX_COLOR_TARGETS- See Also:
-
-
Constructor Details
-
ColorTargetState
-
ColorTargetState
Creates an instance of aColorTargetStaterecord class.- Parameters:
blendFunction- the value for theblendFunctionrecord componentformat- the value for theformatrecord 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
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
writeMask
public int writeMask()Returns the value of thewriteMaskrecord component.- Returns:
- the value of the
writeMaskrecord component
-