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 di$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 Details

    • amplifier

      private final NumberRange.IntRange amplifier
      The field for the amplifier record component.
    • duration

      private final NumberRange.IntRange duration
      The field for the duration record component.
    • ambient

      private final Optional<Boolean> ambient
      The field for the ambient record component.
    • visible

      private final Optional<Boolean> visible
      The field for the visible record component.
    • CODEC

      public static final com.mojang.serialization.Codec<EntityEffectPredicate.EffectData> 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 Ldi$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> Ldi$b;<init>(Ldh$d;Ldh$d;Ljava/util/Optional;Ljava/util/Optional;)V
  • Method Details

    • test

      public boolean test(@Nullable @Nullable StatusEffectInstance statusEffectInstance)
      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 Ldi$b;a(Lbry;)Z
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • amplifier

      public NumberRange.IntRange amplifier()
      Returns the value of the amplifier record component.
      Returns:
      the value of the amplifier record component
    • duration

      public NumberRange.IntRange duration()
      Returns the value of the duration record component.
      Returns:
      the value of the duration record component
    • ambient

      public Optional<Boolean> ambient()
      Returns the value of the ambient record component.
      Returns:
      the value of the ambient record component
    • visible

      public Optional<Boolean> visible()
      Returns the value of the visible record component.
      Returns:
      the value of the visible record component