Uses of Class
net.minecraft.entity.effect.StatusEffectInstance
Package
Description
-
Uses of StatusEffectInstance in net.minecraft.block.spawner
Modifier and TypeMethodDescriptionprivate void
TrialSpawnerData.applyTrialOmen
(PlayerEntity player, StatusEffectInstance effectInstance) -
Uses of StatusEffectInstance in net.minecraft.client.gui.screen.ingame
Modifier and TypeMethodDescriptionprivate Text
AbstractInventoryScreen.getStatusEffectDescription
(StatusEffectInstance statusEffect) Modifier and TypeMethodDescriptionprivate void
AbstractInventoryScreen.drawStatusEffectBackgrounds
(DrawContext context, int x, int height, Iterable<StatusEffectInstance> statusEffects, boolean wide) private void
AbstractInventoryScreen.drawStatusEffectDescriptions
(DrawContext context, int x, int height, Iterable<StatusEffectInstance> statusEffects) private void
AbstractInventoryScreen.drawStatusEffectSprites
(DrawContext context, int x, int height, Iterable<StatusEffectInstance> statusEffects, boolean wide) -
Uses of StatusEffectInstance in net.minecraft.client.network
Modifier and TypeMethodDescriptionClientPlayerEntity.removeStatusEffectInternal
(RegistryEntry<StatusEffect> effect) Removes a status effect from this entity without calling any listener. -
Uses of StatusEffectInstance in net.minecraft.client.render
Modifier and TypeMethodDescriptionfloat
BackgroundRenderer.DarknessFogModifier.applyColorModifier
(LivingEntity entity, StatusEffectInstance effect, float float2, float tickDelta) default float
BackgroundRenderer.StatusEffectFogModifier.applyColorModifier
(LivingEntity entity, StatusEffectInstance effect, float float2, float tickDelta) void
BackgroundRenderer.BlindnessFogModifier.applyStartEndModifier
(BackgroundRenderer.FogData fogData, LivingEntity entity, StatusEffectInstance effect, float viewDistance, float tickDelta) void
BackgroundRenderer.DarknessFogModifier.applyStartEndModifier
(BackgroundRenderer.FogData fogData, LivingEntity entity, StatusEffectInstance effect, float viewDistance, float tickDelta) void
BackgroundRenderer.StatusEffectFogModifier.applyStartEndModifier
(BackgroundRenderer.FogData fogData, LivingEntity entity, StatusEffectInstance effect, float viewDistance, float tickDelta) -
Uses of StatusEffectInstance in net.minecraft.component.type
Modifier and TypeFieldDescriptionprivate final StatusEffectInstance
FoodComponent.StatusEffectEntry.effect
The field for theeffect
record component.Modifier and TypeFieldDescriptionprivate final List
<StatusEffectInstance> PotionContentsComponent.customEffects
The field for thecustomEffects
record component.Modifier and TypeMethodDescriptionSuspiciousStewEffectsComponent.StewEffect.createStatusEffectInstance()
FoodComponent.StatusEffectEntry.effect()
Returns the value of theeffect
record component.Modifier and TypeMethodDescriptionPotionContentsComponent.customEffects()
Returns the value of thecustomEffects
record component.PotionContentsComponent.getEffects()
Modifier and TypeMethodDescriptionFoodComponent.Builder.statusEffect
(StatusEffectInstance effect, float chance) Specifies a status effect to apply to an entity when a food item is consumed.PotionContentsComponent.with
(StatusEffectInstance customEffect) Modifier and TypeMethodDescriptionstatic void
PotionContentsComponent.buildTooltip
(Iterable<StatusEffectInstance> effects, Consumer<Text> textConsumer, float durationMultiplier, float tickRate) void
PotionContentsComponent.forEachEffect
(Consumer<StatusEffectInstance> effectConsumer) static int
PotionContentsComponent.getColor
(Iterable<StatusEffectInstance> effects) static OptionalInt
PotionContentsComponent.mixColors
(Iterable<StatusEffectInstance> effects) ModifierConstructorDescriptionStatusEffectEntry
(StatusEffectInstance statusEffectInstance, float float2) ModifierConstructorDescriptionPotionContentsComponent
(Optional<RegistryEntry<Potion>> optional, Optional<Integer> optional2, List<StatusEffectInstance> list) -
Uses of StatusEffectInstance in net.minecraft.entity
Modifier and TypeFieldDescriptionprivate final Map
<RegistryEntry<StatusEffect>, StatusEffectInstance> LivingEntity.activeStatusEffects
Modifier and TypeMethodDescriptionLivingEntity.getStatusEffect
(RegistryEntry<StatusEffect> effect) LivingEntity.removeStatusEffectInternal
(RegistryEntry<StatusEffect> effect) Removes a status effect from this entity without calling any listener.Modifier and TypeMethodDescriptionLivingEntity.getActiveStatusEffects()
LivingEntity.getStatusEffects()
Modifier and TypeMethodDescriptionvoid
AreaEffectCloudEntity.addEffect
(StatusEffectInstance effect) final boolean
LivingEntity.addStatusEffect
(StatusEffectInstance effect) Adds a status effect to this entity without specifying a source entity.boolean
LivingEntity.addStatusEffect
(StatusEffectInstance effect, @Nullable Entity source) Adds a status effect to this entity.boolean
LivingEntity.canHaveStatusEffect
(StatusEffectInstance effect) protected void
LivingEntity.onStatusEffectApplied
(StatusEffectInstance effect, @Nullable Entity source) protected void
LivingEntity.onStatusEffectRemoved
(StatusEffectInstance effect) protected void
LivingEntity.onStatusEffectUpgraded
(StatusEffectInstance effect, boolean reapplyEffect, @Nullable Entity source) void
LivingEntity.sendEffectToControllingPlayer
(StatusEffectInstance effect) void
LivingEntity.setStatusEffect
(StatusEffectInstance effect, @Nullable Entity source) Sets a status effect in this entity.Modifier and TypeMethodDescriptionstatic boolean
LivingEntity.containsOnlyAmbientEffects
(Collection<StatusEffectInstance> effects) -
Uses of StatusEffectInstance in net.minecraft.entity.boss
Modifier and TypeMethodDescriptionboolean
WitherEntity.addStatusEffect
(StatusEffectInstance effect, @Nullable Entity source) Adds a status effect to this entity.boolean
WitherEntity.canHaveStatusEffect
(StatusEffectInstance effect) -
Uses of StatusEffectInstance in net.minecraft.entity.boss.dragon
Modifier and TypeMethodDescriptionboolean
EnderDragonEntity.addStatusEffect
(StatusEffectInstance effect, @Nullable Entity source) Adds a status effect to this entity. -
Uses of StatusEffectInstance in net.minecraft.entity.effect
Modifier and TypeFieldDescriptionprivate @Nullable StatusEffectInstance
StatusEffectInstance.hiddenEffect
The effect hidden when upgrading effects.Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<StatusEffectInstance> StatusEffectInstance.CODEC
static final PacketCodec
<RegistryByteBuf, StatusEffectInstance> StatusEffectInstance.PACKET_CODEC
private final Function
<StatusEffectInstance, ParticleEffect> StatusEffect.particleFactory
Modifier and TypeMethodDescriptionstatic @Nullable StatusEffectInstance
StatusEffectInstance.fromNbt
(NbtCompound nbt) Modifier and TypeMethodDescriptionstatic List
<ServerPlayerEntity> StatusEffectUtil.addEffectToPlayersWithinDistance
(ServerWorld world, @Nullable Entity entity, Vec3d origin, double range, StatusEffectInstance statusEffectInstance, int duration) int
StatusEffectInstance.compareTo
(StatusEffectInstance statusEffectInstance) void
StatusEffectInstance.copyFadingFrom
(StatusEffectInstance effect) (package private) void
StatusEffectInstance.copyFrom
(StatusEffectInstance that) StatusEffect.createParticle
(StatusEffectInstance effect) static Text
StatusEffectUtil.getDurationText
(StatusEffectInstance effect, float multiplier, float tickRate) private static int
StatusEffectInstance.Fading.getFadeTicks
(StatusEffectInstance effect) private static float
StatusEffectInstance.Fading.getTarget
(StatusEffectInstance effect) private boolean
StatusEffectInstance.lastsShorterThan
(StatusEffectInstance effect) void
StatusEffectInstance.Fading.skipFading
(StatusEffectInstance effect) Skips fade-in or fade-out currently in progress, instantly setting it to the final state (factor1.0f
or0.0f
, depending on the effect's duration).void
StatusEffectInstance.Fading.update
(StatusEffectInstance effect) boolean
StatusEffectInstance.upgrade
(StatusEffectInstance that) ModifierConstructorDescriptionStatusEffectInstance
(StatusEffectInstance instance) StatusEffectInstance
(RegistryEntry<StatusEffect> effect, int duration, int amplifier, boolean ambient, boolean showParticles, boolean showIcon, @Nullable StatusEffectInstance hiddenEffect) -
Uses of StatusEffectInstance in net.minecraft.entity.mob
Modifier and TypeMethodDescriptionboolean
SpiderEntity.canHaveStatusEffect
(StatusEffectInstance effect) boolean
WitherSkeletonEntity.canHaveStatusEffect
(StatusEffectInstance effect) -
Uses of StatusEffectInstance in net.minecraft.entity.projectile
-
Uses of StatusEffectInstance in net.minecraft.entity.projectile.thrown
Modifier and TypeMethodDescriptionprivate void
PotionEntity.applySplashPotion
(Iterable<StatusEffectInstance> effects, @Nullable Entity entity) -
Uses of StatusEffectInstance in net.minecraft.network.packet.s2c.play
ModifierConstructorDescriptionEntityStatusEffectS2CPacket
(int entityId, StatusEffectInstance effect, boolean keepFading) -
Uses of StatusEffectInstance in net.minecraft.potion
ModifierConstructorDescriptionPotion
(@Nullable String baseName, StatusEffectInstance[] effects) Potion
(StatusEffectInstance[] effects) -
Uses of StatusEffectInstance in net.minecraft.predicate.entity
Modifier and TypeMethodDescriptionboolean
EntityEffectPredicate.EffectData.test
(@Nullable StatusEffectInstance statusEffectInstance) Modifier and TypeMethodDescriptionboolean
EntityEffectPredicate.test
(Map<RegistryEntry<StatusEffect>, StatusEffectInstance> effects) -
Uses of StatusEffectInstance in net.minecraft.server.network
Modifier and TypeMethodDescriptionprotected void
ServerPlayerEntity.onStatusEffectApplied
(StatusEffectInstance effect, @Nullable Entity source) protected void
ServerPlayerEntity.onStatusEffectRemoved
(StatusEffectInstance effect) protected void
ServerPlayerEntity.onStatusEffectUpgraded
(StatusEffectInstance effect, boolean reapplyEffect, @Nullable Entity source)