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$Parameters
intermediary net/minecraft/class_1293$class_9195
official bsd$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 Summary
Modifier and TypeFieldDescriptionprivate final boolean
The field for theambient
record component.private final int
The field for theamplifier
record component.static final com.mojang.serialization.MapCodec
<StatusEffectInstance.Parameters> private final int
The field for theduration
record component.private final Optional
<StatusEffectInstance.Parameters> The field for thehiddenEffect
record component.static final PacketCodec
<ByteBuf, StatusEffectInstance.Parameters> private final boolean
The field for theshowIcon
record component.private final boolean
The field for theshowParticles
record component. -
Constructor Summary
ConstructorDescriptionParameters
(int int2, int int3, boolean bool, boolean bool2, boolean bool3, Optional<StatusEffectInstance.Parameters> optional) -
Method Summary
Modifier and TypeMethodDescriptionboolean
ambient()
Returns the value of theambient
record component.int
Returns the value of theamplifier
record component.private static StatusEffectInstance.Parameters
create
(int amplifier, int duration, boolean ambient, boolean showParticles, Optional<Boolean> showIcon, Optional<StatusEffectInstance.Parameters> hiddenEffect) int
duration()
Returns the value of theduration
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thehiddenEffect
record component.boolean
showIcon()
Returns the value of theshowIcon
record component.boolean
Returns the value of theshowParticles
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
amplifier
private final int amplifierThe field for theamplifier
record component. -
duration
private final int durationThe field for theduration
record component. -
ambient
private final boolean ambientThe field for theambient
record component. -
showParticles
private final boolean showParticlesThe field for theshowParticles
record component. -
showIcon
private final boolean showIconThe field for theshowIcon
record component. -
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
Lbsd$b;a:Lcom/mojang/serialization/MapCodec;
-
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
Lbsd$b;b:Lzn;
-
-
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 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
Lbsd$b;a(IIZZLjava/util/Optional;Ljava/util/Optional;)Lbsd$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 theamplifier
record component.- Returns:
- the value of the
amplifier
record component
-
duration
public int duration()Returns the value of theduration
record component.- Returns:
- the value of the
duration
record component
-
ambient
public boolean ambient()Returns the value of theambient
record component.- Returns:
- the value of the
ambient
record component
-
showParticles
public boolean showParticles()Returns the value of theshowParticles
record component.- Returns:
- the value of the
showParticles
record component
-
showIcon
public boolean showIcon()Returns the value of theshowIcon
record component.- Returns:
- the value of the
showIcon
record component
-