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.criterion
Methods in net.minecraft.advancements.criterion with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionbooleanMobEffectsPredicate.MobEffectInstancePredicate.matches(@Nullable MobEffectInstance instance) Method parameters in net.minecraft.advancements.criterion 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 ComponentEffectsInInventory.getEffectName(MobEffectInstance effect) private voidEffectsInInventory.renderText(GuiGraphics graphics, Component effectText, Component duration, Font font, int x0, int y0, int textureWidth, int yStep, int mouseX, int mouseY, @Nullable MobEffectInstance effectInstance) Method parameters in net.minecraft.client.gui.screens.inventory with type arguments of type MobEffectInstanceModifier and TypeMethodDescriptionprivate voidEffectsInInventory.renderEffects(GuiGraphics graphics, Collection<MobEffectInstance> activeEffects, int x0, int yStep, int mouseX, int mouseY, int maxWidth) -
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 effect, @Nullable Entity source) protected voidServerPlayer.onEffectUpdated(MobEffectInstance effect, boolean doRefreshAttributes, @Nullable Entity source) Method parameters in net.minecraft.server.level with type arguments of type MobEffectInstanceModifier and TypeMethodDescriptionprotected voidServerPlayer.onEffectsRemoved(Collection<MobEffectInstance> effects) -
Uses of MobEffectInstance in net.minecraft.world.effect
Classes in net.minecraft.world.effect that implement interfaces with type arguments of type MobEffectInstanceFields in net.minecraft.world.effect declared as MobEffectInstanceModifier and TypeFieldDescriptionprivate @Nullable 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 MobEffectInstanceMethods in net.minecraft.world.effect with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionstatic List<ServerPlayer> MobEffectUtil.addEffectToPlayersAround(ServerLevel level, @Nullable Entity source, Vec3 position, double radius, MobEffectInstance effectInstance, int displayEffectLimit) intMobEffectInstance.compareTo(MobEffectInstance o) voidMobEffectInstance.copyBlendState(MobEffectInstance instance) MobEffect.createParticleOptions(MobEffectInstance mobEffectInstance) static ComponentMobEffectUtil.formatDuration(MobEffectInstance instance, float scale, float tickrate) private static booleanMobEffectInstance.BlendState.hasEffect(MobEffectInstance instance) private booleanMobEffectInstance.isShorterDurationThan(MobEffectInstance other) (package private) voidMobEffectInstance.setDetailsFrom(MobEffectInstance copy) voidMobEffectInstance.BlendState.setImmediate(MobEffectInstance instance) voidMobEffectInstance.BlendState.tick(MobEffectInstance instance) booleanMobEffectInstance.update(MobEffectInstance takeOver) Constructors in net.minecraft.world.effect with parameters of type MobEffectInstanceModifierConstructorDescriptionMobEffectInstance(Holder<MobEffect> effect, int duration, int amplifier, boolean ambient, boolean visible, boolean showIcon, @Nullable MobEffectInstance hiddenEffect) Constructor parameters in net.minecraft.world.effect with type arguments of type MobEffectInstanceModifierConstructorDescriptionprotectedMobEffect(MobEffectCategory category, int color, Function<MobEffectInstance, ParticleOptions> particleFactory) Neo: Constructor that can take in the particle factory as a function of theMobEffectInstance. -
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 MobEffectInstanceModifier and TypeMethodDescription@Nullable MobEffectInstancefinal @Nullable MobEffectInstanceLivingEntity.removeEffectNoUpdate(Holder<MobEffect> effect) Methods 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 effect) final booleanLivingEntity.addEffect(MobEffectInstance newEffect) booleanLivingEntity.addEffect(MobEffectInstance newEffect, @Nullable Entity source) booleanLivingEntity.canBeAffected(MobEffectInstance newEffect) Deprecated.voidLivingEntity.forceAddEffect(MobEffectInstance newEffect, @Nullable Entity source) protected voidLivingEntity.onEffectAdded(MobEffectInstance effect, @Nullable Entity source) protected voidLivingEntity.onEffectUpdated(MobEffectInstance effect, boolean doRefreshAttributes, @Nullable Entity source) voidLivingEntity.sendEffectToPassengers(MobEffectInstance effect) Method parameters in net.minecraft.world.entity with type arguments of type MobEffectInstanceModifier and TypeMethodDescriptionstatic booleanLivingEntity.areAllEffectsAmbient(Collection<MobEffectInstance> effects) Returnstrueif all the potion effects in the specified collection are ambient.protected voidLivingEntity.onEffectsRemoved(Collection<MobEffectInstance> effects) -
Uses of MobEffectInstance in net.minecraft.world.entity.animal.nautilus
Methods in net.minecraft.world.entity.animal.nautilus with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionbooleanAbstractNautilus.canBeAffected(MobEffectInstance newEffect) -
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 newEffect, @Nullable Entity source) -
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 newEffect, @Nullable Entity source) booleanWitherBoss.canBeAffected(MobEffectInstance newEffect) -
Uses of MobEffectInstance in net.minecraft.world.entity.monster.skeleton
Methods in net.minecraft.world.entity.monster.skeleton with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionbooleanParched.canBeAffected(MobEffectInstance newEffect) booleanWitherSkeleton.canBeAffected(MobEffectInstance newEffect) -
Uses of MobEffectInstance in net.minecraft.world.entity.monster.spider
Methods in net.minecraft.world.entity.monster.spider with parameters of type MobEffectInstance -
Uses of MobEffectInstance in net.minecraft.world.entity.projectile.arrow
Methods in net.minecraft.world.entity.projectile.arrow with parameters of type MobEffectInstance -
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> lines, float durationScale, float tickrate) voidPotionContents.forEachEffect(Consumer<MobEffectInstance> consumer, float durationScale) static OptionalIntPotionContents.getColorOptional(Iterable<MobEffectInstance> effects) Constructors in net.minecraft.world.item.alchemy with parameters of type MobEffectInstanceConstructor parameters in net.minecraft.world.item.alchemy with type arguments of type MobEffectInstanceModifierConstructorDescriptionPotionContents(Optional<Holder<Potion>> potion, Optional<Integer> customColor, List<MobEffectInstance> customEffects, Optional<String> customName) 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.minecraft.world.item.consume_effects
Fields in net.minecraft.world.item.consume_effects with type parameters of type MobEffectInstanceModifier and TypeFieldDescriptionprivate final List<MobEffectInstance> ApplyStatusEffectsConsumeEffect.effectsThe field for theeffectsrecord component.Methods in net.minecraft.world.item.consume_effects that return types with arguments of type MobEffectInstanceModifier and TypeMethodDescriptionApplyStatusEffectsConsumeEffect.effects()Returns the value of theeffectsrecord component.Constructors in net.minecraft.world.item.consume_effects with parameters of type MobEffectInstanceModifierConstructorDescriptionApplyStatusEffectsConsumeEffect(MobEffectInstance effect, float probability) Constructor parameters in net.minecraft.world.item.consume_effects with type arguments of type MobEffectInstanceModifierConstructorDescriptionApplyStatusEffectsConsumeEffect(List<MobEffectInstance> effects, float probability) Creates an instance of aApplyStatusEffectsConsumeEffectrecord class. -
Uses of MobEffectInstance in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block that return MobEffectInstanceModifier and TypeMethodDescriptionEyeblossomBlock.getBeeInteractionEffect()@Nullable MobEffectInstanceFlowerBlock.getBeeInteractionEffect()WitherRoseBlock.getBeeInteractionEffect() -
Uses of MobEffectInstance in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionClientHooks.getEffectTooltip(AbstractContainerScreen<?> 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 MobEffectInstanceModifier and TypeMethodDescriptionGatherEffectScreenTooltipsEvent.getEffectInstance()Returns The effect whose tooltip is being drawn.Constructors in net.neoforged.neoforge.client.event with parameters of type MobEffectInstanceModifierConstructorDescriptionGatherEffectScreenTooltipsEvent(AbstractContainerScreen<?> 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, AbstractContainerScreen<?> 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, AbstractContainerScreen<?> 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, @Nullable Entity source) 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 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) -
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, @Nullable Entity source) EffectParticleModificationEvent(LivingEntity entity, MobEffectInstance effect) Expired(LivingEntity living, MobEffectInstance effectInstance) protectedMobEffectEvent(LivingEntity living, MobEffectInstance effectInstance) Remove(LivingEntity living, MobEffectInstance effectInstance)