Enum Class SkyBlend

java.lang.Object
java.lang.Enum<SkyBlend>
net.ixdarklord.coolcatcanvas.api.client.sky.SkyBlend
All Implemented Interfaces:
Serializable, Comparable<SkyBlend>, Constable, net.minecraft.util.StringRepresentable

public enum SkyBlend extends Enum<SkyBlend> implements net.minecraft.util.StringRepresentable
How a sky layer combines with what's drawn under it. Every mode fades with the layer's opacity, and leaves the target's alpha alone except ALPHA.
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>

    Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable

    net.minecraft.util.StringRepresentable.EnumCodec<E>, net.minecraft.util.StringRepresentable.StringRepresentableCodec<S>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Added to it: glows, stars, auroras.
    Painted over, by its alpha.
    Multiplied with it: darkens and tints.
    The inverse of multiply: brightens without going past white.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<SkyBlend>
     

    Fields inherited from interface net.minecraft.util.StringRepresentable

    PRE_BUILT_MAP_THRESHOLD
  • Method Summary

    Modifier and Type
    Method
    Description
    com.mojang.renderpearl.api.pipeline.BlendFunction
     
     
    static SkyBlend
    Returns the enum constant of this class with the specified name.
    static SkyBlend[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

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

    • ALPHA

      public static final SkyBlend ALPHA
      Painted over, by its alpha.
    • ADDITIVE

      public static final SkyBlend ADDITIVE
      Added to it: glows, stars, auroras. Black adds nothing.
    • MULTIPLY

      public static final SkyBlend MULTIPLY
      Multiplied with it: darkens and tints. White changes nothing.
    • SCREEN

      public static final SkyBlend SCREEN
      The inverse of multiply: brightens without going past white. Black changes nothing.
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<SkyBlend> CODEC
  • Method Details

    • values

      public static SkyBlend[] 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 SkyBlend 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
    • function

      public com.mojang.renderpearl.api.pipeline.BlendFunction function()
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface net.minecraft.util.StringRepresentable