Uses of Class
net.minecraft.entity.effect.StatusEffectInstance
Package
Description
-
Uses of StatusEffectInstance in net.minecraft.client.gui.screen.ingame
Modifier and TypeMethodDescriptionprivate Text
AbstractInventoryScreen.getStatusEffectDescription
(StatusEffectInstance statusEffect) Modifier and TypeMethodDescriptionprivate void
AbstractInventoryScreen.drawStatusEffectBackgrounds
(MatrixStack matrices, int x, int height, Iterable<StatusEffectInstance> statusEffects, boolean wide) private void
AbstractInventoryScreen.drawStatusEffectDescriptions
(MatrixStack matrices, int x, int height, Iterable<StatusEffectInstance> statusEffects) private void
AbstractInventoryScreen.drawStatusEffectSprites
(MatrixStack matrices, int x, int height, Iterable<StatusEffectInstance> statusEffects, boolean wide) -
Uses of StatusEffectInstance in net.minecraft.client.network
Modifier and TypeMethodDescriptionClientPlayerEntity.removeStatusEffectInternal
(@Nullable StatusEffect type) 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.entity
Modifier and TypeFieldDescriptionprivate final Map<StatusEffect,
StatusEffectInstance> LivingEntity.activeStatusEffects
private final List<StatusEffectInstance>
AreaEffectCloudEntity.effects
Modifier and TypeMethodDescriptionLivingEntity.getStatusEffect
(StatusEffect effect) LivingEntity.removeStatusEffectInternal
(@Nullable StatusEffect type) 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.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 TypeMethodDescriptionprivate static StatusEffectInstance
StatusEffectInstance.fromNbt
(StatusEffect type, NbtCompound nbt) static @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) (package private) void
StatusEffectInstance.copyFrom
(StatusEffectInstance that) static String
StatusEffectUtil.durationToString
(StatusEffectInstance effect, float multiplier) void
StatusEffectInstance.FactorCalculationData.update
(StatusEffectInstance instance) boolean
StatusEffectInstance.upgrade
(StatusEffectInstance that) ModifierConstructorDescriptionStatusEffectInstance
(StatusEffectInstance instance) StatusEffectInstance
(StatusEffect type, int duration, int amplifier, boolean ambient, boolean showParticles, boolean showIcon, @Nullable StatusEffectInstance hiddenEffect, Optional<StatusEffectInstance.FactorCalculationData> factorCalculationData) -
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
(List<StatusEffectInstance> statusEffects, @Nullable Entity entity) -
Uses of StatusEffectInstance in net.minecraft.item
Modifier and TypeFieldDescriptionprivate final List<com.mojang.datafixers.util.Pair<StatusEffectInstance,
Float>> FoodComponent.Builder.statusEffects
private final List<com.mojang.datafixers.util.Pair<StatusEffectInstance,
Float>> FoodComponent.statusEffects
Modifier and TypeMethodDescriptionList<com.mojang.datafixers.util.Pair<StatusEffectInstance,
Float>> FoodComponent.getStatusEffects()
Gets a list of all status effect instances that may be applied when a food item is consumed.Modifier and TypeMethodDescriptionFoodComponent.Builder.statusEffect
(StatusEffectInstance effect, float chance) Specifies a status effect to apply to an entity when a food item is consumed.ModifierConstructorDescription(package private)
FoodComponent
(int hunger, float saturationModifier, boolean meat, boolean alwaysEdible, boolean snack, List<com.mojang.datafixers.util.Pair<StatusEffectInstance, Float>> statusEffects) -
Uses of StatusEffectInstance in net.minecraft.network.packet.s2c.play
ModifierConstructorDescriptionEntityStatusEffectS2CPacket
(int entityId, StatusEffectInstance effect) -
Uses of StatusEffectInstance in net.minecraft.potion
Modifier and TypeFieldDescriptionprivate final ImmutableList<StatusEffectInstance>
Potion.effects
Modifier and TypeMethodDescriptionstatic List<StatusEffectInstance>
PotionUtil.getCustomPotionEffects
(@Nullable NbtCompound nbt) static List<StatusEffectInstance>
PotionUtil.getCustomPotionEffects
(ItemStack stack) Potion.getEffects()
static List<StatusEffectInstance>
PotionUtil.getPotionEffects
(@Nullable NbtCompound nbt) static List<StatusEffectInstance>
PotionUtil.getPotionEffects
(ItemStack stack) static List<StatusEffectInstance>
PotionUtil.getPotionEffects
(Potion potion, Collection<StatusEffectInstance> custom) Modifier and TypeMethodDescriptionstatic int
PotionUtil.getColor
(Collection<StatusEffectInstance> effects) static void
PotionUtil.getCustomPotionEffects
(@Nullable NbtCompound nbt, List<StatusEffectInstance> list) static List<StatusEffectInstance>
PotionUtil.getPotionEffects
(Potion potion, Collection<StatusEffectInstance> custom) static ItemStack
PotionUtil.setCustomPotionEffects
(ItemStack stack, Collection<StatusEffectInstance> effects) 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<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)