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 Summary
ConstructorsConstructorDescriptionEffect(WorldEffectStack.Type type, RenderColor color, float amount, float secondary, float speed) Creates an instance of aEffectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatamount()Returns the value of theamountrecord component.color()Returns the value of thecolorrecord component.static WorldEffectStack.EffectdashScroll(float speed) static WorldEffectStack.Effectdissolve(float threshold, float edgeWidth, RenderColor edgeColor) final booleanIndicates whether some other object is "equal to" this one.static WorldEffectStack.Effectfade(float start, float end) static WorldEffectStack.Effectfresnel(RenderColor color, float power, float intensity) static WorldEffectStack.Effectglow(RenderColor color, float radius, float intensity) final inthashCode()Returns a hash code value for this object.static WorldEffectStack.Effectoutline(RenderColor color, float width) static WorldEffectStack.Effectpulse(float minimum, float maximum, float speed) static WorldEffectStack.Effectscanlines(RenderColor color, float density, float speed) floatReturns the value of thesecondaryrecord component.floatspeed()Returns the value of thespeedrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.static WorldEffectStack.EffectuvScroll(float uSpeed, float vSpeed)
-
Constructor Details
-
Effect
public Effect(WorldEffectStack.Type type, RenderColor color, float amount, float secondary, float speed) Creates an instance of aEffectrecord class.- Parameters:
type- the value for thetyperecord componentcolor- the value for thecolorrecord componentamount- the value for theamountrecord componentsecondary- the value for thesecondaryrecord componentspeed- the value for thespeedrecord component
-
-
Method Details
-
glow
-
fresnel
-
outline
-
scanlines
-
dissolve
public static WorldEffectStack.Effect dissolve(float threshold, float edgeWidth, RenderColor edgeColor) -
pulse
-
fade
-
uvScroll
-
dashScroll
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
amount
public float amount()Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-
secondary
public float secondary()Returns the value of thesecondaryrecord component.- Returns:
- the value of the
secondaryrecord component
-
speed
public float speed()Returns the value of thespeedrecord component.- Returns:
- the value of the
speedrecord component
-