Enum Class RenderLayer

java.lang.Object
java.lang.Enum<RenderLayer>
com.jozufozu.flywheel.backend.RenderLayer
All Implemented Interfaces:
Serializable, Comparable<RenderLayer>, Constable

public enum RenderLayer extends Enum<RenderLayer>
The 3 discrete stages the world is rendered in.
  • Enum Constant Details

    • SOLID

      public static final RenderLayer SOLID
      Solid layer:
      All polygons will entirely occlude everything behind them.

      e.g. stone, dirt, solid blocks
    • CUTOUT

      public static final RenderLayer CUTOUT
      Cutout layer:
      Fragments will either occlude or not occlude depending on the texture/material.

      e.g. leaves, cobwebs, tall grass, saplings, glass
    • TRANSPARENT

      public static final RenderLayer 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

      public static RenderLayer[] 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

      public static RenderLayer valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getPrimaryLayer

      @Nullable public static RenderLayer getPrimaryLayer(net.minecraft.client.renderer.RenderType type)
    • getLayer

      @Nullable public static RenderLayer getLayer(net.minecraft.client.renderer.RenderType type)