Enum Class ShadeMode

java.lang.Object
java.lang.Enum<ShadeMode>
net.fabricmc.fabric.api.renderer.v1.material.ShadeMode
All Implemented Interfaces:
Serializable, Comparable<ShadeMode>, Constable

public enum ShadeMode extends Enum<ShadeMode>
A hint to the renderer about how the quad is intended to be shaded, for example through ambient occlusion and diffuse shading. The renderer is free to ignore this hint.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Conveys the intent that shading should be generally consistent, lack edge cases, and produce visually pleasing results, even for quads that are not used by vanilla or are not possible to create through resource packs in vanilla.
    Conveys the intent that shading should mimic vanilla results, potentially to preserve certain visuals produced by resource packs that modify models.
  • Method Summary

    Modifier and Type
    Method
    Description
    static ShadeMode
    Returns the enum constant of this class with the specified name.
    static ShadeMode[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ENHANCED

      public static final ShadeMode ENHANCED
      Conveys the intent that shading should be generally consistent, lack edge cases, and produce visually pleasing results, even for quads that are not used by vanilla or are not possible to create through resource packs in vanilla.
    • VANILLA

      public static final ShadeMode VANILLA
      Conveys the intent that shading should mimic vanilla results, potentially to preserve certain visuals produced by resource packs that modify models.
  • Method Details

    • values

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