Package com.jozufozu.flywheel.backend
Enum Class RenderLayer
- All Implemented Interfaces:
Serializable,Comparable<RenderLayer>,Constable
The 3 discrete stages the world is rendered in.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCutout layer:
Fragments will either occlude or not occlude depending on the texture/material.Solid layer:
All polygons will entirely occlude everything behind them.Transparent layer:
Nothing is guaranteed to occlude and fragments blend their color with what's behind them. -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderLayergetLayer(net.minecraft.client.renderer.RenderType type) static RenderLayergetPrimaryLayer(net.minecraft.client.renderer.RenderType type) static RenderLayerReturns the enum constant of this class with the specified name.static RenderLayer[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SOLID
Solid layer:
All polygons will entirely occlude everything behind them.
e.g. stone, dirt, solid blocks -
CUTOUT
Cutout layer:
Fragments will either occlude or not occlude depending on the texture/material.
e.g. leaves, cobwebs, tall grass, saplings, glass -
TRANSPARENT
Transparent layer:
Nothing is guaranteed to occlude and fragments blend their color with what's behind them.
e.g. stained glass, water
-
-
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
-
getPrimaryLayer
-
getLayer
-