Record Class StatusEffectInstance.Parameters

java.lang.Object
java.lang.Record
net.minecraft.entity.effect.StatusEffectInstance.Parameters
Record Components:
amplifier -
duration -
ambient -
showParticles -
showIcon -
hiddenEffect -
Enclosing class:
StatusEffectInstance

private static record StatusEffectInstance.Parameters(int amplifier, int duration, boolean ambient, boolean showParticles, boolean showIcon, Optional<StatusEffectInstance.Parameters> hiddenEffect) extends Record
Mappings:
Namespace Name
named net/minecraft/entity/effect/StatusEffectInstance$Parameters
intermediary net/minecraft/class_1293$class_9195
official buo$b
named amplifier
intermediary comp_2292
official c
named duration
intermediary comp_2293
official d
named ambient
intermediary comp_2294
official e
named showParticles
intermediary comp_2295
official f
named showIcon
intermediary comp_2296
official g
named hiddenEffect
intermediary comp_2297
official h
  • Field Details

    • amplifier

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

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

      private final boolean ambient
      The field for the ambient record component.
    • showParticles

      private final boolean showParticles
      The field for the showParticles record component.
    • showIcon

      private final boolean showIcon
      The field for the showIcon record component.
    • hiddenEffect

      private final Optional<StatusEffectInstance.Parameters> hiddenEffect
      The field for the hiddenEffect record component.
    • CODEC

      public static final com.mojang.serialization.MapCodec<StatusEffectInstance.Parameters> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/entity/effect/StatusEffectInstance$Parameters;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_48822 Lnet/minecraft/class_1293$class_9195;field_48822:Lcom/mojang/serialization/MapCodec;
      official a Lbuo$b;a:Lcom/mojang/serialization/MapCodec;
    • PACKET_CODEC

      public static final PacketCodec<ByteBuf,StatusEffectInstance.Parameters> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/entity/effect/StatusEffectInstance$Parameters;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_49208 Lnet/minecraft/class_1293$class_9195;field_49208:Lnet/minecraft/class_9139;
      official b Lbuo$b;b:Lzt;
  • Constructor Details

  • Method Details

    • create

      private static StatusEffectInstance.Parameters create(int amplifier, int duration, boolean ambient, boolean showParticles, Optional<Boolean> showIcon, Optional<StatusEffectInstance.Parameters> hiddenEffect)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/entity/effect/StatusEffectInstance$Parameters;create(IIZZLjava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/entity/effect/StatusEffectInstance$Parameters;
      intermediary method_56669 Lnet/minecraft/class_1293$class_9195;method_56669(IIZZLjava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/class_1293$class_9195;
      official a Lbuo$b;a(IIZZLjava/util/Optional;Ljava/util/Optional;)Lbuo$b;
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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 int amplifier()
      Returns the value of the amplifier record component.
      Returns:
      the value of the amplifier record component
    • duration

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

      public boolean ambient()
      Returns the value of the ambient record component.
      Returns:
      the value of the ambient record component
    • showParticles

      public boolean showParticles()
      Returns the value of the showParticles record component.
      Returns:
      the value of the showParticles record component
    • showIcon

      public boolean showIcon()
      Returns the value of the showIcon record component.
      Returns:
      the value of the showIcon record component
    • hiddenEffect

      public Optional<StatusEffectInstance.Parameters> hiddenEffect()
      Returns the value of the hiddenEffect record component.
      Returns:
      the value of the hiddenEffect record component