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 - dl$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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionEffectData(NumberRange.IntRange amplifier, NumberRange.IntRange duration, Optional<Boolean> optional, Optional<Boolean> optional2) 
- 
Method SummaryModifier 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- 
amplifierThe field for theamplifierrecord component.
- 
durationThe field for thedurationrecord component.
- 
ambientThe field for theambientrecord component.
- 
visibleThe field for thevisiblerecord 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- Ldl$b;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
EffectDatapublic EffectData()
- 
EffectDatapublic 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>- Ldl$b;<init>(Ldk$d;Ldk$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- Ldl$b;a(Lbtr;)Z
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
amplifierReturns the value of theamplifierrecord component.- Returns:
- the value of the amplifierrecord component
 
- 
durationReturns the value of thedurationrecord component.- Returns:
- the value of the durationrecord component
 
- 
ambientReturns the value of theambientrecord component.- Returns:
- the value of the ambientrecord component
 
- 
visibleReturns the value of thevisiblerecord component.- Returns:
- the value of the visiblerecord component
 
 
-