Record Class StatusEffectBruteForce.StatusEffectEntry
java.lang.Object
java.lang.Record
meteordevelopment.meteorclient.utils.entity.effects.StatusEffectBruteForce.StatusEffectEntry
- Enclosing class:
- StatusEffectBruteForce
public static record StatusEffectBruteForce.StatusEffectEntry(net.minecraft.entity.effect.StatusEffect effect, int amplifier, float r, float g, float b)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionStatusEffectEntry(net.minecraft.entity.effect.StatusEffect effect, int amplifier, float r, float g, float b) Creates an instance of aStatusEffectEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theamplifierrecord component.floatb()Returns the value of thebrecord component.net.minecraft.entity.effect.StatusEffecteffect()Returns the value of theeffectrecord component.final booleanIndicates whether some other object is "equal to" this one.floatg()Returns the value of thegrecord component.final inthashCode()Returns a hash code value for this object.of(net.minecraft.entity.effect.StatusEffect effect, int amplifier) floatr()Returns the value of therrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StatusEffectEntry
public StatusEffectEntry(net.minecraft.entity.effect.StatusEffect effect, int amplifier, float r, float g, float b) Creates an instance of aStatusEffectEntryrecord class.- Parameters:
effect- the value for theeffectrecord componentamplifier- the value for theamplifierrecord componentr- the value for therrecord componentg- the value for thegrecord componentb- the value for thebrecord component
-
-
Method Details
-
of
public static StatusEffectBruteForce.StatusEffectEntry of(net.minecraft.entity.effect.StatusEffect effect, int amplifier) -
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. -
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. -
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 '=='. -
effect
public net.minecraft.entity.effect.StatusEffect effect()Returns the value of theeffectrecord component.- Returns:
- the value of the
effectrecord component
-
amplifier
public int amplifier()Returns the value of theamplifierrecord component.- Returns:
- the value of the
amplifierrecord component
-
r
public float r()Returns the value of therrecord component.- Returns:
- the value of the
rrecord component
-
g
public float g()Returns the value of thegrecord component.- Returns:
- the value of the
grecord component
-
b
public float b()Returns the value of thebrecord component.- Returns:
- the value of the
brecord component
-