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$EffectDataintermediary net/minecraft/class_2102$class_2103official di$bnamed amplifierintermediary comp_1812official bnamed durationintermediary comp_1813official cnamed ambientintermediary comp_1814official dnamed visibleintermediary comp_1815official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theambientrecord component.private final NumberRange.IntRangeThe field for theamplifierrecord component.static final com.mojang.serialization.Codec<EntityEffectPredicate.EffectData> private final NumberRange.IntRangeThe field for thedurationrecord component.The field for thevisiblerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionEffectData(NumberRange.IntRange amplifier, NumberRange.IntRange duration, Optional<Boolean> optional, Optional<Boolean> optional2) -
Method Summary
Modifier and TypeMethodDescriptionambient()Returns the value of theambientrecord component.Returns the value of theamplifierrecord component.duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleantest(@Nullable StatusEffectInstance statusEffectInstance) final StringtoString()Returns a string representation of this record class.visible()Returns the value of thevisiblerecord component.
-
Field Details
-
amplifier
The field for theamplifierrecord component. -
duration
The field for thedurationrecord component. -
ambient
The field for theambientrecord component. -
visible
The field for thevisiblerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/predicate/entity/EntityEffectPredicate$EffectData;CODEC:Lcom/mojang/serialization/Codec;intermediary field_45766Lnet/minecraft/class_2102$class_2103;field_45766:Lcom/mojang/serialization/Codec;official aLdi$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;)Vintermediary <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;)Vofficial <init>Ldi$b;<init>(Ldh$d;Ldh$d;Ljava/util/Optional;Ljava/util/Optional;)V
-
-
Method Details
-
test
- Mappings:
Namespace Name Mixin selector named testLnet/minecraft/predicate/entity/EntityEffectPredicate$EffectData;test(Lnet/minecraft/entity/effect/StatusEffectInstance;)Zintermediary method_9069Lnet/minecraft/class_2102$class_2103;method_9069(Lnet/minecraft/class_1293;)Zofficial aLdi$b;a(Lbrz;)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 theamplifierrecord component.- Returns:
- the value of the
amplifierrecord component
-
duration
Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
ambient
Returns the value of theambientrecord component.- Returns:
- the value of the
ambientrecord component
-
visible
Returns the value of thevisiblerecord component.- Returns:
- the value of the
visiblerecord component
-