Record Class WorldEffectStack.Effect

java.lang.Object
java.lang.Record
com.render.api.world.WorldEffectStack.Effect
Enclosing class:
WorldEffectStack

public static record WorldEffectStack.Effect(WorldEffectStack.Type type, RenderColor color, float amount, float secondary, float speed) extends Record
  • Constructor Details

    • Effect

      public Effect(WorldEffectStack.Type type, RenderColor color, float amount, float secondary, float speed)
      Creates an instance of a Effect record class.
      Parameters:
      type - the value for the type record component
      color - the value for the color record component
      amount - the value for the amount record component
      secondary - the value for the secondary record component
      speed - the value for the speed record component
  • Method Details

    • glow

      public static WorldEffectStack.Effect glow(RenderColor color, float radius, float intensity)
    • fresnel

      public static WorldEffectStack.Effect fresnel(RenderColor color, float power, float intensity)
    • outline

      public static WorldEffectStack.Effect outline(RenderColor color, float width)
    • scanlines

      public static WorldEffectStack.Effect scanlines(RenderColor color, float density, float speed)
    • dissolve

      public static WorldEffectStack.Effect dissolve(float threshold, float edgeWidth, RenderColor edgeColor)
    • pulse

      public static WorldEffectStack.Effect pulse(float minimum, float maximum, float speed)
    • fade

      public static WorldEffectStack.Effect fade(float start, float end)
    • uvScroll

      public static WorldEffectStack.Effect uvScroll(float uSpeed, float vSpeed)
    • dashScroll

      public static WorldEffectStack.Effect dashScroll(float speed)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • type

      public WorldEffectStack.Type type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • color

      public RenderColor color()
      Returns the value of the color record component.
      Returns:
      the value of the color record component
    • amount

      public float amount()
      Returns the value of the amount record component.
      Returns:
      the value of the amount record component
    • secondary

      public float secondary()
      Returns the value of the secondary record component.
      Returns:
      the value of the secondary record component
    • speed

      public float speed()
      Returns the value of the speed record component.
      Returns:
      the value of the speed record component