Package net.minecraft.entity.effect
Record Class StatusEffectInstance.Parameters
java.lang.Object
java.lang.Record
net.minecraft.entity.effect.StatusEffectInstance.Parameters
- Record Components:
amplifier-duration-ambient-showParticles-showIcon--
- 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$Parametersintermediary net/minecraft/class_1293$class_9195official brz$bnamed amplifierintermediary comp_2292official cnamed durationintermediary comp_2293official dnamed ambientintermediary comp_2294official enamed showParticlesintermediary comp_2295official fnamed showIconintermediary comp_2296official gnamed hiddenEffectintermediary comp_2297official h
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theambientrecord component.private final intThe field for theamplifierrecord component.static final com.mojang.serialization.MapCodec<StatusEffectInstance.Parameters> private final intThe field for thedurationrecord component.private final Optional<StatusEffectInstance.Parameters> The field for thehiddenEffectrecord component.static final PacketCodec<ByteBuf, StatusEffectInstance.Parameters> private final booleanThe field for theshowIconrecord component.private final booleanThe field for theshowParticlesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionParameters(int int2, int int3, boolean bool, boolean bool2, boolean bool3, Optional<StatusEffectInstance.Parameters> optional) -
Method Summary
Modifier and TypeMethodDescriptionbooleanambient()Returns the value of theambientrecord component.intReturns the value of theamplifierrecord component.private static StatusEffectInstance.Parameterscreate(int amplifier, int duration, boolean ambient, boolean showParticles, Optional<Boolean> showIcon, Optional<StatusEffectInstance.Parameters> hiddenEffect) intduration()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.Returns the value of thehiddenEffectrecord component.booleanshowIcon()Returns the value of theshowIconrecord component.booleanReturns the value of theshowParticlesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
amplifier
private final int amplifierThe field for theamplifierrecord component. -
duration
private final int durationThe field for thedurationrecord component. -
ambient
private final boolean ambientThe field for theambientrecord component. -
showParticles
private final boolean showParticlesThe field for theshowParticlesrecord component. -
showIcon
private final boolean showIconThe field for theshowIconrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/entity/effect/StatusEffectInstance$Parameters;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_48822Lnet/minecraft/class_1293$class_9195;field_48822:Lcom/mojang/serialization/MapCodec;official aLbrz$b;a:Lcom/mojang/serialization/MapCodec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/entity/effect/StatusEffectInstance$Parameters;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_49208Lnet/minecraft/class_1293$class_9195;field_49208:Lnet/minecraft/class_9139;official bLbrz$b;b:Lyx;
-
-
Constructor Details
-
Parameters
Parameters(int int2, int int3, boolean bool, boolean bool2, boolean bool3, Optional<StatusEffectInstance.Parameters> optional)
-
-
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 createLnet/minecraft/entity/effect/StatusEffectInstance$Parameters;create(IIZZLjava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/entity/effect/StatusEffectInstance$Parameters;intermediary method_56669Lnet/minecraft/class_1293$class_9195;method_56669(IIZZLjava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/class_1293$class_9195;official aLbrz$b;a(IIZZLjava/util/Optional;Ljava/util/Optional;)Lbrz$b;
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
amplifier
public int amplifier()Returns the value of theamplifierrecord component.- Returns:
- the value of the
amplifierrecord component
-
duration
public int duration()Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
ambient
public boolean ambient()Returns the value of theambientrecord component.- Returns:
- the value of the
ambientrecord component
-
showParticles
public boolean showParticles()Returns the value of theshowParticlesrecord component.- Returns:
- the value of the
showParticlesrecord component
-
showIcon
public boolean showIcon()Returns the value of theshowIconrecord component.- Returns:
- the value of the
showIconrecord component
-