Uses of Class
net.minecraft.world.effect.MobEffectInstance
Packages that use MobEffectInstance
Package
Description
-
Uses of MobEffectInstance in net.minecraft.advancements.critereon
Methods in net.minecraft.advancements.critereon with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionboolean
MobEffectsPredicate.MobEffectInstancePredicate.matches
(MobEffectInstance p_56578_) Method parameters in net.minecraft.advancements.critereon with type arguments of type MobEffectInstanceModifier and TypeMethodDescriptionboolean
MobEffectsPredicate.matches
(Map<MobEffect, MobEffectInstance> p_56562_) -
Uses of MobEffectInstance in net.minecraft.client.gui.screens.inventory
Methods in net.minecraft.client.gui.screens.inventory with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionprivate Component
EffectRenderingInventoryScreen.getEffectName
(MobEffectInstance p_194001_) Method parameters in net.minecraft.client.gui.screens.inventory with type arguments of type MobEffectInstanceModifier and TypeMethodDescriptionprivate void
EffectRenderingInventoryScreen.renderBackgrounds
(PoseStack p_194003_, int p_194004_, int p_194005_, Iterable<MobEffectInstance> p_194006_, boolean p_194007_) private void
EffectRenderingInventoryScreen.renderIcons
(PoseStack p_194009_, int p_194010_, int p_194011_, Iterable<MobEffectInstance> p_194012_, boolean p_194013_) private void
EffectRenderingInventoryScreen.renderLabels
(PoseStack p_98723_, int p_98724_, int p_98725_, Iterable<MobEffectInstance> p_98726_) -
Uses of MobEffectInstance in net.minecraft.client.player
Methods in net.minecraft.client.player that return MobEffectInstance -
Uses of MobEffectInstance in net.minecraft.client.renderer
Methods in net.minecraft.client.renderer with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionfloat
FogRenderer.DarknessFogFunction.getModifiedVoidDarkness
(LivingEntity p_234189_, MobEffectInstance p_234190_, float p_234191_, float p_234192_) default float
FogRenderer.MobEffectFogFunction.getModifiedVoidDarkness
(LivingEntity p_234208_, MobEffectInstance p_234209_, float p_234210_, float p_234211_) void
FogRenderer.BlindnessFogFunction.setupFog
(FogRenderer.FogData p_234181_, LivingEntity p_234182_, MobEffectInstance p_234183_, float p_234184_, float p_234185_) void
FogRenderer.DarknessFogFunction.setupFog
(FogRenderer.FogData p_234194_, LivingEntity p_234195_, MobEffectInstance p_234196_, float p_234197_, float p_234198_) void
FogRenderer.MobEffectFogFunction.setupFog
(FogRenderer.FogData p_234212_, LivingEntity p_234213_, MobEffectInstance p_234214_, float p_234215_, float p_234216_) -
Uses of MobEffectInstance in net.minecraft.network.protocol.game
Constructors in net.minecraft.network.protocol.game with parameters of type MobEffectInstanceModifierConstructorDescriptionClientboundUpdateMobEffectPacket
(int p_133611_, MobEffectInstance p_133612_) -
Uses of MobEffectInstance in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionprotected void
ServerPlayer.onEffectAdded
(MobEffectInstance p_143393_, Entity p_143394_) protected void
ServerPlayer.onEffectRemoved
(MobEffectInstance p_9184_) protected void
ServerPlayer.onEffectUpdated
(MobEffectInstance p_143396_, boolean p_143397_, Entity p_143398_) -
Uses of MobEffectInstance in net.minecraft.world.effect
Fields in net.minecraft.world.effect declared as MobEffectInstanceMethods in net.minecraft.world.effect that return MobEffectInstanceModifier and TypeMethodDescriptionstatic MobEffectInstance
MobEffectInstance.load
(CompoundTag p_19561_) private static MobEffectInstance
MobEffectInstance.loadSpecifiedEffect
(MobEffect p_19546_, CompoundTag p_19547_) private static MobEffectInstance
MobEffectInstance.readCurativeItems
(MobEffectInstance effect, CompoundTag nbt) Methods in net.minecraft.world.effect with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionstatic List<ServerPlayer>
MobEffectUtil.addEffectToPlayersAround
(ServerLevel p_216947_, Entity p_216948_, Vec3 p_216949_, double p_216950_, MobEffectInstance p_216951_, int p_216952_) int
MobEffectInstance.compareTo
(MobEffectInstance p_19566_) static String
MobEffectUtil.formatDuration
(MobEffectInstance p_19582_, float p_19583_) private static MobEffectInstance
MobEffectInstance.readCurativeItems
(MobEffectInstance effect, CompoundTag nbt) (package private) void
MobEffectInstance.setDetailsFrom
(MobEffectInstance p_19549_) void
MobEffectInstance.FactorData.update
(MobEffectInstance p_216931_) boolean
MobEffectInstance.update
(MobEffectInstance p_19559_) Constructors in net.minecraft.world.effect with parameters of type MobEffectInstanceModifierConstructorDescriptionMobEffectInstance
(MobEffectInstance p_19543_) MobEffectInstance
(MobEffect p_216887_, int p_216888_, int p_216889_, boolean p_216890_, boolean p_216891_, boolean p_216892_, MobEffectInstance p_216893_, Optional<MobEffectInstance.FactorData> p_216894_) -
Uses of MobEffectInstance in net.minecraft.world.entity
Fields in net.minecraft.world.entity with type parameters of type MobEffectInstanceModifier and TypeFieldDescriptionprivate final Map<MobEffect,
MobEffectInstance> LivingEntity.activeEffects
private final List<MobEffectInstance>
AreaEffectCloud.effects
Methods in net.minecraft.world.entity that return MobEffectInstanceMethods in net.minecraft.world.entity that return types with arguments of type MobEffectInstanceModifier and TypeMethodDescriptionLivingEntity.getActiveEffects()
LivingEntity.getActiveEffectsMap()
Methods in net.minecraft.world.entity with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionvoid
AreaEffectCloud.addEffect
(MobEffectInstance p_19717_) final boolean
LivingEntity.addEffect
(MobEffectInstance p_21165_) boolean
LivingEntity.addEffect
(MobEffectInstance p_147208_, Entity p_147209_) boolean
LivingEntity.canBeAffected
(MobEffectInstance p_21197_) void
LivingEntity.forceAddEffect
(MobEffectInstance p_147216_, Entity p_147217_) protected void
LivingEntity.onEffectAdded
(MobEffectInstance p_147190_, Entity p_147191_) protected void
LivingEntity.onEffectRemoved
(MobEffectInstance p_21126_) protected void
LivingEntity.onEffectUpdated
(MobEffectInstance p_147192_, boolean p_147193_, Entity p_147194_) Method parameters in net.minecraft.world.entity with type arguments of type MobEffectInstanceModifier and TypeMethodDescriptionstatic boolean
LivingEntity.areAllEffectsAmbient
(Collection<MobEffectInstance> p_21180_) -
Uses of MobEffectInstance in net.minecraft.world.entity.boss.enderdragon
Methods in net.minecraft.world.entity.boss.enderdragon with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionboolean
EnderDragon.addEffect
(MobEffectInstance p_182394_, Entity p_182395_) -
Uses of MobEffectInstance in net.minecraft.world.entity.boss.wither
Methods in net.minecraft.world.entity.boss.wither with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionboolean
WitherBoss.addEffect
(MobEffectInstance p_182397_, Entity p_182398_) boolean
WitherBoss.canBeAffected
(MobEffectInstance p_31495_) -
Uses of MobEffectInstance in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionboolean
Spider.canBeAffected
(MobEffectInstance p_33809_) boolean
WitherSkeleton.canBeAffected
(MobEffectInstance p_34192_) -
Uses of MobEffectInstance in net.minecraft.world.entity.projectile
Fields in net.minecraft.world.entity.projectile with type parameters of type MobEffectInstanceMethods in net.minecraft.world.entity.projectile with parameters of type MobEffectInstanceMethod parameters in net.minecraft.world.entity.projectile with type arguments of type MobEffectInstanceModifier and TypeMethodDescriptionprivate void
ThrownPotion.applySplash
(List<MobEffectInstance> p_37548_, Entity p_37549_) -
Uses of MobEffectInstance in net.minecraft.world.food
Fields in net.minecraft.world.food with type parameters of type MobEffectInstanceModifier and TypeFieldDescriptionprivate final List<com.mojang.datafixers.util.Pair<Supplier<MobEffectInstance>,
Float>> FoodProperties.Builder.effects
private final List<com.mojang.datafixers.util.Pair<Supplier<MobEffectInstance>,
Float>> FoodProperties.effects
Methods in net.minecraft.world.food that return types with arguments of type MobEffectInstanceModifier and TypeMethodDescriptionList<com.mojang.datafixers.util.Pair<MobEffectInstance,
Float>> FoodProperties.getEffects()
Methods in net.minecraft.world.food with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionFoodProperties.Builder.effect
(MobEffectInstance p_38763_, float p_38764_) Deprecated.Method parameters in net.minecraft.world.food with type arguments of type MobEffectInstanceModifier and TypeMethodDescriptionFoodProperties.Builder.effect
(Supplier<MobEffectInstance> effectIn, float probability) Constructor parameters in net.minecraft.world.food with type arguments of type MobEffectInstanceModifierConstructorDescription(package private)
FoodProperties
(int p_38730_, float p_38731_, boolean p_38732_, boolean p_38733_, boolean p_38734_, List<com.mojang.datafixers.util.Pair<MobEffectInstance, Float>> p_38735_) Deprecated. -
Uses of MobEffectInstance in net.minecraft.world.item.alchemy
Fields in net.minecraft.world.item.alchemy with type parameters of type MobEffectInstanceModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableList<MobEffectInstance>
Potion.effects
Methods in net.minecraft.world.item.alchemy that return types with arguments of type MobEffectInstanceModifier and TypeMethodDescriptionstatic List<MobEffectInstance>
PotionUtils.getAllEffects
(CompoundTag p_43567_) static List<MobEffectInstance>
PotionUtils.getAllEffects
(Potion p_43562_, Collection<MobEffectInstance> p_43563_) static List<MobEffectInstance>
PotionUtils.getCustomEffects
(CompoundTag p_43574_) static List<MobEffectInstance>
PotionUtils.getCustomEffects
(ItemStack p_43572_) Potion.getEffects()
static List<MobEffectInstance>
PotionUtils.getMobEffects
(ItemStack p_43548_) Method parameters in net.minecraft.world.item.alchemy with type arguments of type MobEffectInstanceModifier and TypeMethodDescriptionstatic List<MobEffectInstance>
PotionUtils.getAllEffects
(Potion p_43562_, Collection<MobEffectInstance> p_43563_) static int
PotionUtils.getColor
(Collection<MobEffectInstance> p_43565_) static void
PotionUtils.getCustomEffects
(CompoundTag p_43569_, List<MobEffectInstance> p_43570_) static ItemStack
PotionUtils.setCustomEffects
(ItemStack p_43553_, Collection<MobEffectInstance> p_43554_) Constructors in net.minecraft.world.item.alchemy with parameters of type MobEffectInstanceModifierConstructorDescriptionPotion
(String p_43484_, MobEffectInstance... p_43485_) Potion
(MobEffectInstance... p_43487_) -
Uses of MobEffectInstance in net.minecraftforge.client
Methods in net.minecraftforge.client with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionstatic boolean
ForgeHooksClient.shouldRenderEffect
(MobEffectInstance effectInstance) -
Uses of MobEffectInstance in net.minecraftforge.client.extensions.common
Methods in net.minecraftforge.client.extensions.common with parameters of type MobEffectInstanceModifier and TypeMethodDescriptiondefault boolean
IClientMobEffectExtensions.isVisibleInGui
(MobEffectInstance instance) Queries whether the given effect should be shown in the HUD.default boolean
IClientMobEffectExtensions.isVisibleInInventory
(MobEffectInstance instance) Queries whether the given effect should be shown in the player's inventory.static IClientMobEffectExtensions
IClientMobEffectExtensions.of
(MobEffectInstance instance) default boolean
IClientMobEffectExtensions.renderGuiIcon
(MobEffectInstance instance, Gui gui, PoseStack poseStack, int x, int y, float z, float alpha) Renders the icon of the specified effect on the player's HUD.default boolean
IClientMobEffectExtensions.renderInventoryIcon
(MobEffectInstance instance, EffectRenderingInventoryScreen<?> screen, PoseStack poseStack, int x, int y, int blitOffset) Renders the icon of the specified effect in the player's inventory.default boolean
IClientMobEffectExtensions.renderInventoryText
(MobEffectInstance instance, EffectRenderingInventoryScreen<?> screen, PoseStack poseStack, int x, int y, int blitOffset) Renders the text of the specified effect in the player's inventory. -
Uses of MobEffectInstance in net.minecraftforge.common.extensions
Methods in net.minecraftforge.common.extensions with parameters of type MobEffectInstanceModifier and TypeMethodDescriptiondefault int
IForgeMobEffect.getSortOrder
(MobEffectInstance effectInstance) Used for determiningPotionEffect
sort order in GUIs. -
Uses of MobEffectInstance in net.minecraftforge.event.entity.living
Fields in net.minecraftforge.event.entity.living declared as MobEffectInstanceModifier and TypeFieldDescriptionprotected final @Nullable MobEffectInstance
MobEffectEvent.effectInstance
private final MobEffectInstance
MobEffectEvent.Added.oldEffectInstance
Fields in net.minecraftforge.event.entity.living with type parameters of type MobEffectInstanceModifier and TypeFieldDescriptionprivate final Collection<MobEffectInstance>
PotionColorCalculationEvent.effectList
Methods in net.minecraftforge.event.entity.living that return MobEffectInstanceModifier and TypeMethodDescription@NotNull MobEffectInstance
MobEffectEvent.Added.getEffectInstance()
@NotNull MobEffectInstance
MobEffectEvent.Applicable.getEffectInstance()
@Nullable MobEffectInstance
MobEffectEvent.getEffectInstance()
@Nullable MobEffectInstance
MobEffectEvent.Remove.getEffectInstance()
@Nullable MobEffectInstance
MobEffectEvent.Added.getOldEffectInstance()
Methods in net.minecraftforge.event.entity.living that return types with arguments of type MobEffectInstanceModifier and TypeMethodDescriptionPotionColorCalculationEvent.getEffects()
Note that returned list is unmodifiable.Constructors in net.minecraftforge.event.entity.living with parameters of type MobEffectInstanceModifierConstructorDescriptionAdded
(LivingEntity living, MobEffectInstance oldEffectInstance, MobEffectInstance newEffectInstance, Entity source) Applicable
(LivingEntity living, @NotNull MobEffectInstance effectInstance) Expired
(LivingEntity living, MobEffectInstance effectInstance) MobEffectEvent
(LivingEntity living, MobEffectInstance effectInstance) Remove
(LivingEntity living, MobEffectInstance effectInstance) Constructor parameters in net.minecraftforge.event.entity.living with type arguments of type MobEffectInstanceModifierConstructorDescriptionPotionColorCalculationEvent
(LivingEntity entity, int color, boolean hideParticle, Collection<MobEffectInstance> effectList)