Enum Class Transparency
- All Implemented Interfaces:
Serializable,Comparable<Transparency>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdditive blending.Crumbling transparency.Glint transparency.Lightning transparency.No blending.If supported by the backend, this mode will use OIT that approximatesTRANSLUCENTtransparency.Translucent transparency. -
Method Summary
Modifier and TypeMethodDescriptionstatic TransparencyReturns the enum constant of this class with the specified name.static Transparency[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OPAQUE
No blending. Used for solid and cutout geometry. -
ADDITIVE
Additive blending.Each fragment blends color and alpha with the following equation:
out = src + dst -
LIGHTNING
Lightning transparency.Each fragment blends color and alpha with the following equation:
out = src * alpha_src + dst -
GLINT
Glint transparency. Used for the enchantment effect.Each fragment blends with the following equations:
color_out = color_src^2 + color_dst alpha_out = alpha_dst -
CRUMBLING
Crumbling transparency. Used for the block breaking overlay.Each fragment blends with the following equations:
color_out = 2 * color_src * color_dst alpha_out = alpha_src -
TRANSLUCENT
Translucent transparency.Each fragment blends with the following equations:
color_out = color_src * alpha_src + color_dst * (1 - alpha_src) alpha_out = alpha_src + alpha_dst * (1 - alpha_src) -
ORDER_INDEPENDENT
If supported by the backend, this mode will use OIT that approximatesTRANSLUCENTtransparency.If a backend does not support OIT, it must treat this the same as
TRANSLUCENT.It is recommended to use this option when possible, though for cases where blend modes are used as an overlay against solid geometry the order dependent modes are preferred.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-