Enum Class ForgeRenderTypes

java.lang.Object
java.lang.Enum<ForgeRenderTypes>
net.minecraftforge.client.ForgeRenderTypes
All Implemented Interfaces:
Serializable, Comparable<ForgeRenderTypes>, Constable

public enum ForgeRenderTypes extends Enum<ForgeRenderTypes>
  • Enum Constant Details

    • ITEM_LAYERED_SOLID

      public static final ForgeRenderTypes ITEM_LAYERED_SOLID
    • ITEM_LAYERED_CUTOUT

      public static final ForgeRenderTypes ITEM_LAYERED_CUTOUT
    • ITEM_LAYERED_CUTOUT_MIPPED

      public static final ForgeRenderTypes ITEM_LAYERED_CUTOUT_MIPPED
    • ITEM_LAYERED_TRANSLUCENT

      public static final ForgeRenderTypes ITEM_LAYERED_TRANSLUCENT
    • ITEM_UNSORTED_TRANSLUCENT

      public static final ForgeRenderTypes ITEM_UNSORTED_TRANSLUCENT
    • ITEM_UNLIT_TRANSLUCENT

      public static final ForgeRenderTypes ITEM_UNLIT_TRANSLUCENT
    • ITEM_UNSORTED_UNLIT_TRANSLUCENT

      public static final ForgeRenderTypes ITEM_UNSORTED_UNLIT_TRANSLUCENT
  • Field Details

    • enableTextTextureLinearFiltering

      public static boolean enableTextTextureLinearFiltering
    • renderTypeSupplier

      private final NonNullSupplier<RenderType> renderTypeSupplier
  • Constructor Details

  • Method Details

    • values

      public static ForgeRenderTypes[] 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 ForgeRenderTypes 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
    • getItemLayeredSolid

      public static RenderType getItemLayeredSolid(ResourceLocation textureLocation)
      Returns:
      A RenderType fit for multi-layer solid item rendering.
    • getItemLayeredCutout

      public static RenderType getItemLayeredCutout(ResourceLocation textureLocation)
      Returns:
      A RenderType fit for multi-layer cutout item item rendering.
    • getItemLayeredCutoutMipped

      public static RenderType getItemLayeredCutoutMipped(ResourceLocation textureLocation)
      Returns:
      A RenderType fit for multi-layer cutout-mipped item rendering.
    • getItemLayeredTranslucent

      public static RenderType getItemLayeredTranslucent(ResourceLocation textureLocation)
      Returns:
      A RenderType fit for multi-layer translucent item rendering.
    • getUnsortedTranslucent

      public static RenderType getUnsortedTranslucent(ResourceLocation textureLocation)
      Returns:
      A RenderType fit for translucent item/entity rendering, but with depth sorting disabled.
    • getUnlitTranslucent

      public static RenderType getUnlitTranslucent(ResourceLocation textureLocation)
      Returns:
      A RenderType fit for translucent item/entity rendering, but with diffuse lighting disabled so that fullbright quads look correct.
    • getUnlitTranslucent

      public static RenderType getUnlitTranslucent(ResourceLocation textureLocation, boolean sortingEnabled)
      Parameters:
      sortingEnabled - If false, depth sorting will not be performed.
      Returns:
      A RenderType fit for translucent item/entity rendering, but with diffuse lighting disabled so that fullbright quads look correct.
    • getEntityCutoutMipped

      public static RenderType getEntityCutoutMipped(ResourceLocation textureLocation)
      Returns:
      Same as RenderType#getEntityCutout(ResourceLocation), but with mipmapping enabled.
    • getText

      public static RenderType getText(ResourceLocation locationIn)
      Returns:
      Replacement of RenderType#getText(ResourceLocation), but with optional linear texture filtering.
    • getTextSeeThrough

      public static RenderType getTextSeeThrough(ResourceLocation locationIn)
      Returns:
      Replacement of RenderType#getTextSeeThrough(ResourceLocation), but with optional linear texture filtering.
    • get

      public RenderType get()