Package net.minecraft.predicate.entity
Record Class EntityEffectPredicate.EffectData
java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.EntityEffectPredicate.EffectData
- Record Components:
amplifier
-duration
-ambient
-visible
-
- Enclosing class:
EntityEffectPredicate
public static record EntityEffectPredicate.EffectData(NumberRange.IntRange amplifier, NumberRange.IntRange duration, Optional<Boolean> ambient, Optional<Boolean> visible)
extends Record
- Mappings:
Namespace Name named net/minecraft/predicate/entity/EntityEffectPredicate$EffectData
intermediary net/minecraft/class_2102$class_2103
official df$b
named amplifier
intermediary comp_1812
official b
named duration
intermediary comp_1813
official c
named ambient
intermediary comp_1814
official d
named visible
intermediary comp_1815
official e
-
Field Summary
Modifier and TypeFieldDescriptionThe field for theambient
record component.private final NumberRange.IntRange
The field for theamplifier
record component.static final com.mojang.serialization.Codec
<EntityEffectPredicate.EffectData> private final NumberRange.IntRange
The field for theduration
record component.The field for thevisible
record component. -
Constructor Summary
ConstructorDescriptionEffectData
(NumberRange.IntRange amplifier, NumberRange.IntRange duration, Optional<Boolean> optional, Optional<Boolean> optional2) -
Method Summary
Modifier and TypeMethodDescriptionambient()
Returns the value of theambient
record component.Returns the value of theamplifier
record component.duration()
Returns the value of theduration
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
test
(@Nullable StatusEffectInstance statusEffectInstance) final String
toString()
Returns a string representation of this record class.visible()
Returns the value of thevisible
record component.
-
Field Details
-
amplifier
The field for theamplifier
record component. -
duration
The field for theduration
record component. -
ambient
The field for theambient
record component. -
visible
The field for thevisible
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/predicate/entity/EntityEffectPredicate$EffectData;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_45766
Lnet/minecraft/class_2102$class_2103;field_45766:Lcom/mojang/serialization/Codec;
official a
Ldf$b;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
EffectData
public EffectData() -
EffectData
public EffectData(NumberRange.IntRange amplifier, NumberRange.IntRange duration, Optional<Boolean> optional, Optional<Boolean> optional2) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/predicate/entity/EntityEffectPredicate$EffectData;<init>(Lnet/minecraft/predicate/NumberRange$IntRange;Lnet/minecraft/predicate/NumberRange$IntRange;Ljava/util/Optional;Ljava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_2102$class_2103;<init>(Lnet/minecraft/class_2096$class_2100;Lnet/minecraft/class_2096$class_2100;Ljava/util/Optional;Ljava/util/Optional;)V
official <init>
Ldf$b;<init>(Lde$d;Lde$d;Ljava/util/Optional;Ljava/util/Optional;)V
-
-
Method Details
-
test
- Mappings:
Namespace Name Mixin selector named test
Lnet/minecraft/predicate/entity/EntityEffectPredicate$EffectData;test(Lnet/minecraft/entity/effect/StatusEffectInstance;)Z
intermediary method_9069
Lnet/minecraft/class_2102$class_2103;method_9069(Lnet/minecraft/class_1293;)Z
official a
Ldf$b;a(Lbrp;)Z
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
amplifier
Returns the value of theamplifier
record component.- Returns:
- the value of the
amplifier
record component
-
duration
Returns the value of theduration
record component.- Returns:
- the value of the
duration
record component
-
ambient
Returns the value of theambient
record component.- Returns:
- the value of the
ambient
record component
-
visible
Returns the value of thevisible
record component.- Returns:
- the value of the
visible
record component
-