Uses of Class
net.minecraft.world.effect.MobEffectInstance
Packages that use MobEffectInstance
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of MobEffectInstance in net.minecraft.advancements.critereon
Methods in net.minecraft.advancements.critereon with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionbooleanMobEffectsPredicate.MobEffectInstancePredicate.matches(MobEffectInstance effect) Method parameters in net.minecraft.advancements.critereon with type arguments of type MobEffectInstanceModifier and TypeMethodDescriptionbooleanMobEffectsPredicate.matches(Map<Holder<MobEffect>, MobEffectInstance> effects) -
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 ComponentEffectRenderingInventoryScreen.getEffectName(MobEffectInstance effect) Method parameters in net.minecraft.client.gui.screens.inventory with type arguments of type MobEffectInstanceModifier and TypeMethodDescriptionprivate voidEffectRenderingInventoryScreen.renderBackgrounds(GuiGraphics guiGraphics, int renderX, int yOffset, Iterable<MobEffectInstance> effects, boolean isSmall) private voidEffectRenderingInventoryScreen.renderIcons(GuiGraphics guiGraphics, int renderX, int yOffset, Iterable<MobEffectInstance> effects, boolean isSmall) private voidEffectRenderingInventoryScreen.renderLabels(GuiGraphics guiGraphics, int renderX, int yOffset, Iterable<MobEffectInstance> effects) -
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 TypeMethodDescriptionfloatFogRenderer.DarknessFogFunction.getModifiedVoidDarkness(LivingEntity p_234189_, MobEffectInstance p_234190_, float p_234191_, float p_234192_) default floatFogRenderer.MobEffectFogFunction.getModifiedVoidDarkness(LivingEntity entity, MobEffectInstance effectInstance, float p_234210_, float partialTick) voidFogRenderer.BlindnessFogFunction.setupFog(FogRenderer.FogData p_234181_, LivingEntity p_234182_, MobEffectInstance p_234183_, float p_234184_, float p_234185_) voidFogRenderer.DarknessFogFunction.setupFog(FogRenderer.FogData p_234194_, LivingEntity p_234195_, MobEffectInstance p_234196_, float p_234197_, float p_234198_) voidFogRenderer.MobEffectFogFunction.setupFog(FogRenderer.FogData fogData, LivingEntity entity, MobEffectInstance effectInstance, float farPlaneDistance, 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 entityId, MobEffectInstance effect, boolean blend) -
Uses of MobEffectInstance in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionprotected voidServerPlayer.onEffectAdded(MobEffectInstance effectInstance, Entity entity) protected voidServerPlayer.onEffectRemoved(MobEffectInstance effect) protected voidServerPlayer.onEffectUpdated(MobEffectInstance effectInstance, boolean forced, Entity entity) -
Uses of MobEffectInstance in net.minecraft.world.effect
Fields in net.minecraft.world.effect declared as MobEffectInstanceModifier and TypeFieldDescriptionprivate MobEffectInstanceMobEffectInstance.hiddenEffectA hidden effect which is not shown to the player.Fields in net.minecraft.world.effect with type parameters of type MobEffectInstanceModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MobEffectInstance> MobEffectInstance.CODECprivate final Function<MobEffectInstance, ParticleOptions> MobEffect.particleFactorystatic final StreamCodec<RegistryFriendlyByteBuf, MobEffectInstance> MobEffectInstance.STREAM_CODECMethods in net.minecraft.world.effect that return MobEffectInstanceModifier and TypeMethodDescriptionstatic MobEffectInstanceMobEffectInstance.load(CompoundTag nbt) Read a custom potion effect from a potion item's NBT data.Methods in net.minecraft.world.effect with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionstatic List<ServerPlayer> MobEffectUtil.addEffectToPlayersAround(ServerLevel level, Entity source, Vec3 pos, double radius, MobEffectInstance effect, int duration) intMobEffectInstance.compareTo(MobEffectInstance other) private static floatMobEffectInstance.BlendState.computeTarget(MobEffectInstance effect) voidMobEffectInstance.copyBlendState(MobEffectInstance effectInstance) MobEffect.createParticleOptions(MobEffectInstance effect) static ComponentMobEffectUtil.formatDuration(MobEffectInstance effect, float durationFactor, float ticksPerSecond) private static intMobEffectInstance.BlendState.getBlendDuration(MobEffectInstance effect) private booleanMobEffectInstance.isShorterDurationThan(MobEffectInstance other) (package private) voidMobEffectInstance.setDetailsFrom(MobEffectInstance effectInstance) voidMobEffectInstance.BlendState.setImmediate(MobEffectInstance effectInstance) voidMobEffectInstance.BlendState.tick(MobEffectInstance effect) booleanMobEffectInstance.update(MobEffectInstance other) Constructors in net.minecraft.world.effect with parameters of type MobEffectInstanceModifierConstructorDescriptionMobEffectInstance(Holder<MobEffect> effect, int duration, int amplifier, boolean ambient, boolean visible, boolean showIcon, MobEffectInstance hiddenEffect) -
Uses of MobEffectInstance in net.minecraft.world.entity
Fields in net.minecraft.world.entity with type parameters of type MobEffectInstanceModifier and TypeFieldDescriptionprivate final Map<Holder<MobEffect>, MobEffectInstance> LivingEntity.activeEffectsMethods 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 TypeMethodDescriptionvoidAreaEffectCloud.addEffect(MobEffectInstance effectInstance) final booleanLivingEntity.addEffect(MobEffectInstance effectInstance) booleanLivingEntity.addEffect(MobEffectInstance effectInstance, Entity entity) booleanLivingEntity.canBeAffected(MobEffectInstance effectInstance) Deprecated.voidLivingEntity.forceAddEffect(MobEffectInstance instance, Entity entity) protected voidLivingEntity.onEffectAdded(MobEffectInstance effectInstance, Entity entity) protected voidLivingEntity.onEffectRemoved(MobEffectInstance effectInstance) protected voidLivingEntity.onEffectUpdated(MobEffectInstance effectInstance, boolean forced, Entity entity) voidLivingEntity.sendEffectToPassengers(MobEffectInstance effectInstance) Method parameters in net.minecraft.world.entity with type arguments of type MobEffectInstanceModifier and TypeMethodDescriptionstatic booleanLivingEntity.areAllEffectsAmbient(Collection<MobEffectInstance> potionEffects) Returnstrueif all the potion effects in the specified collection are ambient. -
Uses of MobEffectInstance in net.minecraft.world.entity.boss.enderdragon
Methods in net.minecraft.world.entity.boss.enderdragon with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionbooleanEnderDragon.addEffect(MobEffectInstance effectInstance, Entity entity) -
Uses of MobEffectInstance in net.minecraft.world.entity.boss.wither
Methods in net.minecraft.world.entity.boss.wither with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionbooleanWitherBoss.addEffect(MobEffectInstance effectInstance, Entity entity) booleanWitherBoss.canBeAffected(MobEffectInstance potioneffect) -
Uses of MobEffectInstance in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionbooleanSpider.canBeAffected(MobEffectInstance potioneffect) booleanWitherSkeleton.canBeAffected(MobEffectInstance potioneffect) -
Uses of MobEffectInstance in net.minecraft.world.entity.projectile
Methods 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 voidThrownPotion.applySplash(Iterable<MobEffectInstance> effects, Entity p_entity) -
Uses of MobEffectInstance in net.minecraft.world.food
Fields in net.minecraft.world.food with type parameters of type MobEffectInstanceModifier and TypeFieldDescriptionprivate final Supplier<MobEffectInstance> FoodProperties.PossibleEffect.effectSupplierThe field for theeffectSupplierrecord component.Methods in net.minecraft.world.food that return MobEffectInstanceMethods in net.minecraft.world.food that return types with arguments of type MobEffectInstanceModifier and TypeMethodDescriptionFoodProperties.PossibleEffect.effectSupplier()Returns the value of theeffectSupplierrecord component.Methods in net.minecraft.world.food with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionFoodProperties.Builder.effect(MobEffectInstance effect, float probability) Deprecated.Method parameters in net.minecraft.world.food with type arguments of type MobEffectInstanceModifier and TypeMethodDescriptionFoodProperties.Builder.effect(Supplier<MobEffectInstance> effectIn, float probability) Constructors in net.minecraft.world.food with parameters of type MobEffectInstanceModifierConstructorDescriptionprivatePossibleEffect(MobEffectInstance effect, float probability) Constructor parameters in net.minecraft.world.food with type arguments of type MobEffectInstanceModifierConstructorDescriptionPossibleEffect(Supplier<MobEffectInstance> effectSupplier, float probability) Creates an instance of aPossibleEffectrecord class. -
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 List<MobEffectInstance> PotionContents.customEffectsThe field for thecustomEffectsrecord component.private final List<MobEffectInstance> Potion.effectsMethods in net.minecraft.world.item.alchemy that return types with arguments of type MobEffectInstanceModifier and TypeMethodDescriptionPotionContents.customEffects()Returns the value of thecustomEffectsrecord component.PotionContents.getAllEffects()Potion.getEffects()Methods in net.minecraft.world.item.alchemy with parameters of type MobEffectInstanceMethod parameters in net.minecraft.world.item.alchemy with type arguments of type MobEffectInstanceModifier and TypeMethodDescriptionstatic voidPotionContents.addPotionTooltip(Iterable<MobEffectInstance> effects, Consumer<Component> tooltipAdder, float durationFactor, float ticksPerSecond) voidPotionContents.forEachEffect(Consumer<MobEffectInstance> action) static intPotionContents.getColor(Iterable<MobEffectInstance> effects) static OptionalIntPotionContents.getColorOptional(Iterable<MobEffectInstance> effects) Constructors in net.minecraft.world.item.alchemy with parameters of type MobEffectInstanceModifierConstructorDescriptionPotion(String name, MobEffectInstance... effects) Potion(MobEffectInstance... effects) Constructor parameters in net.minecraft.world.item.alchemy with type arguments of type MobEffectInstanceModifierConstructorDescriptionPotionContents(Optional<Holder<Potion>> potion, Optional<Integer> customColor, List<MobEffectInstance> customEffects) Creates an instance of aPotionContentsrecord class. -
Uses of MobEffectInstance in net.minecraft.world.item.component
Methods in net.minecraft.world.item.component that return MobEffectInstance -
Uses of MobEffectInstance in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionClientHooks.getEffectTooltip(EffectRenderingInventoryScreen<?> screen, MobEffectInstance effectInst, List<Component> tooltip) Fires theGatherEffectScreenTooltipsEventand returns the resulting tooltip lines.static booleanClientHooks.shouldRenderEffect(MobEffectInstance effectInstance) -
Uses of MobEffectInstance in net.neoforged.neoforge.client.event
Fields in net.neoforged.neoforge.client.event declared as MobEffectInstanceModifier and TypeFieldDescriptionprotected final MobEffectInstanceGatherEffectScreenTooltipsEvent.effectInstMethods in net.neoforged.neoforge.client.event that return MobEffectInstanceConstructors in net.neoforged.neoforge.client.event with parameters of type MobEffectInstanceModifierConstructorDescriptionGatherEffectScreenTooltipsEvent(EffectRenderingInventoryScreen<?> screen, MobEffectInstance effectInst, List<Component> tooltip) -
Uses of MobEffectInstance in net.neoforged.neoforge.client.extensions.common
Methods in net.neoforged.neoforge.client.extensions.common with parameters of type MobEffectInstanceModifier and TypeMethodDescriptiondefault booleanIClientMobEffectExtensions.isVisibleInGui(MobEffectInstance instance) Queries whether the given effect should be shown in the HUD.default booleanIClientMobEffectExtensions.isVisibleInInventory(MobEffectInstance instance) Queries whether the given effect should be shown in the player's inventory.static IClientMobEffectExtensionsIClientMobEffectExtensions.of(MobEffectInstance instance) default booleanIClientMobEffectExtensions.renderGuiIcon(MobEffectInstance instance, Gui gui, GuiGraphics guiGraphics, int x, int y, float z, float alpha) Renders the icon of the specified effect on the player's HUD.default booleanIClientMobEffectExtensions.renderInventoryIcon(MobEffectInstance instance, EffectRenderingInventoryScreen<?> screen, GuiGraphics guiGraphics, int x, int y, int blitOffset) Renders the icon of the specified effect in the player's inventory.default booleanIClientMobEffectExtensions.renderInventoryText(MobEffectInstance instance, EffectRenderingInventoryScreen<?> screen, GuiGraphics guiGraphics, int x, int y, int blitOffset) Renders the text of the specified effect in the player's inventory. -
Uses of MobEffectInstance in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionstatic booleanCommonHooks.canMobEffectBeApplied(LivingEntity entity, MobEffectInstance effect) Checks if a mob effect can be applied to an entity by firingMobEffectEvent.Applicable. -
Uses of MobEffectInstance in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions with parameters of type MobEffectInstanceModifier and TypeMethodDescriptiondefault voidIMobEffectExtension.fillEffectCures(Set<EffectCure> cures, MobEffectInstance effectInstance) Fill the given set with theEffectCures this effect should be curable with by defaultdefault intIMobEffectExtension.getSortOrder(MobEffectInstance effectInstance) Used for determiningMobEffectsort order in GUIs. -
Uses of MobEffectInstance in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionstatic booleanEventHooks.onEffectRemoved(LivingEntity entity, MobEffectInstance effectInstance, @Nullable EffectCure cure) -
Uses of MobEffectInstance in net.neoforged.neoforge.event.entity.living
Fields in net.neoforged.neoforge.event.entity.living declared as MobEffectInstanceModifier and TypeFieldDescriptionprivate final MobEffectInstanceEffectParticleModificationEvent.effectprotected final @Nullable MobEffectInstanceMobEffectEvent.effectInstanceprivate final MobEffectInstanceMobEffectEvent.Added.oldEffectInstanceMethods in net.neoforged.neoforge.event.entity.living that return MobEffectInstanceModifier and TypeMethodDescriptionEffectParticleModificationEvent.getEffect()MobEffectEvent.Added.getEffectInstance()MobEffectEvent.Applicable.getEffectInstance()@Nullable MobEffectInstanceMobEffectEvent.getEffectInstance()@Nullable MobEffectInstanceMobEffectEvent.Remove.getEffectInstance()@Nullable MobEffectInstanceMobEffectEvent.Added.getOldEffectInstance()Constructors in net.neoforged.neoforge.event.entity.living with parameters of type MobEffectInstanceModifierConstructorDescriptionAdded(LivingEntity living, MobEffectInstance oldEffectInstance, MobEffectInstance newEffectInstance, Entity source) Applicable(LivingEntity living, MobEffectInstance effectInstance) EffectParticleModificationEvent(LivingEntity entity, MobEffectInstance effect) Expired(LivingEntity living, MobEffectInstance effectInstance) protectedMobEffectEvent(LivingEntity living, MobEffectInstance effectInstance) Remove(LivingEntity living, MobEffectInstance effectInstance, @Nullable EffectCure cure)