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 - btr$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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionParameters(int int2, int int3, boolean bool, boolean bool2, boolean bool3, Optional<StatusEffectInstance.Parameters> optional) 
- 
Method SummaryModifier 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- 
amplifierprivate final int amplifierThe field for theamplifierrecord component.
- 
durationprivate final int durationThe field for thedurationrecord component.
- 
ambientprivate final boolean ambientThe field for theambientrecord component.
- 
showParticlesprivate final boolean showParticlesThe field for theshowParticlesrecord component.
- 
showIconprivate final boolean showIconThe field for theshowIconrecord 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- Lbtr$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- Lbtr$b;b:Lyn;
 
 
- 
- 
Constructor Details- 
ParametersParameters(int int2, int int3, boolean bool, boolean bool2, boolean bool3, Optional<StatusEffectInstance.Parameters> optional) 
 
- 
- 
Method Details- 
createprivate 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- Lbtr$b;a(IIZZLjava/util/Optional;Ljava/util/Optional;)Lbtr$b;
 
- 
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
amplifierpublic int amplifier()Returns the value of theamplifierrecord component.- Returns:
- the value of the amplifierrecord component
 
- 
durationpublic int duration()Returns the value of thedurationrecord component.- Returns:
- the value of the durationrecord component
 
- 
ambientpublic boolean ambient()Returns the value of theambientrecord component.- Returns:
- the value of the ambientrecord component
 
- 
showParticlespublic boolean showParticles()Returns the value of theshowParticlesrecord component.- Returns:
- the value of the showParticlesrecord component
 
- 
showIconpublic boolean showIcon()Returns the value of theshowIconrecord component.- Returns:
- the value of the showIconrecord component
 
 
-