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 pEffect) Method parameters in net.minecraft.advancements.criterion with type arguments of type MobEffectInstanceModifier and TypeMethodDescriptionbooleanMobEffectsPredicate.matches(Map<Holder<MobEffect>, MobEffectInstance> pEffects) -
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 pEffect) private voidEffectsInInventory.renderText(GuiGraphics pGuiGraphics, Component pEffect, Component pName, Font pFont, int pX, int pY, int pWidth, int pHeight, int pMouseX, int pMouseY, @Nullable MobEffectInstance effectInstance) Method parameters in net.minecraft.client.gui.screens.inventory with type arguments of type MobEffectInstanceModifier and TypeMethodDescriptionprivate voidEffectsInInventory.renderEffects(GuiGraphics pGuiGraphics, Collection<MobEffectInstance> pEffects, int pX, int pY, int pMouseX, int pMouseY, int pMinWidth) -
Uses of MobEffectInstance in net.minecraft.network.protocol.game
Constructors in net.minecraft.network.protocol.game with parameters of type MobEffectInstanceModifierConstructorDescriptionClientboundUpdateMobEffectPacket(int pEntityId, MobEffectInstance pEffect, boolean pBlend) -
Uses of MobEffectInstance in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionprotected voidServerPlayer.onEffectAdded(MobEffectInstance p_143393_, @Nullable Entity p_143394_) protected voidServerPlayer.onEffectUpdated(MobEffectInstance p_143396_, boolean p_143397_, @Nullable Entity p_143398_) Method parameters in net.minecraft.server.level with type arguments of type MobEffectInstanceModifier and TypeMethodDescriptionprotected voidServerPlayer.onEffectsRemoved(Collection<MobEffectInstance> p_366811_) -
Uses of MobEffectInstance in net.minecraft.world.effect
Fields 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 pLevel, @Nullable Entity pSource, Vec3 pPos, double pRadius, MobEffectInstance pEffect, int pDuration) intMobEffectInstance.compareTo(MobEffectInstance pOther) voidMobEffectInstance.copyBlendState(MobEffectInstance pEffectInstance) MobEffect.createParticleOptions(MobEffectInstance pEffect) static ComponentMobEffectUtil.formatDuration(MobEffectInstance pEffect, float pDurationFactor, float pTicksPerSecond) private static booleanMobEffectInstance.BlendState.hasEffect(MobEffectInstance pEffect) private booleanMobEffectInstance.isShorterDurationThan(MobEffectInstance pOther) (package private) voidMobEffectInstance.setDetailsFrom(MobEffectInstance pEffectInstance) voidMobEffectInstance.BlendState.setImmediate(MobEffectInstance pEffectInstance) voidMobEffectInstance.BlendState.tick(MobEffectInstance pEffect) booleanMobEffectInstance.update(MobEffectInstance pOther) Constructors in net.minecraft.world.effect with parameters of type MobEffectInstanceModifierConstructorDescriptionMobEffectInstance(Holder<MobEffect> pEffect, int pDuration, int pAmplifier, boolean pAmbient, boolean pVisible, boolean pShowIcon, @Nullable MobEffectInstance pHiddenEffect) MobEffectInstance(MobEffectInstance pOther) Constructor parameters in net.minecraft.world.effect with type arguments of type MobEffectInstanceModifierConstructorDescriptionprotectedMobEffect(MobEffectCategory pCategory, int pColor, 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> pEffect) 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 pEffectInstance) final booleanLivingEntity.addEffect(MobEffectInstance pEffectInstance) booleanLivingEntity.addEffect(MobEffectInstance pEffectInstance, @Nullable Entity pEntity) booleanLivingEntity.canBeAffected(MobEffectInstance pEffectInstance) Deprecated.voidLivingEntity.forceAddEffect(MobEffectInstance pInstance, @Nullable Entity pEntity) protected voidLivingEntity.onEffectAdded(MobEffectInstance pEffectInstance, @Nullable Entity pEntity) protected voidLivingEntity.onEffectUpdated(MobEffectInstance pEffectInstance, boolean pForced, @Nullable Entity pEntity) voidLivingEntity.sendEffectToPassengers(MobEffectInstance pEffectInstance) Method parameters in net.minecraft.world.entity with type arguments of type MobEffectInstanceModifier and TypeMethodDescriptionstatic booleanLivingEntity.areAllEffectsAmbient(Collection<MobEffectInstance> pPotionEffects) Returnstrueif all the potion effects in the specified collection are ambient.protected voidLivingEntity.onEffectsRemoved(Collection<MobEffectInstance> pEffects) -
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 p_456183_) -
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 p_182394_, @Nullable 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 TypeMethodDescriptionbooleanWitherBoss.addEffect(MobEffectInstance p_182397_, @Nullable Entity p_182398_) booleanWitherBoss.canBeAffected(MobEffectInstance pPotionEffect) -
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 p_480498_) booleanWitherSkeleton.canBeAffected(MobEffectInstance pPotionEffect) -
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> pEffects, Consumer<Component> pTooltipAdder, float pDurationFactor, float pTicksPerSecond) voidPotionContents.forEachEffect(Consumer<MobEffectInstance> pAction, float pDurationScale) static OptionalIntPotionContents.getColorOptional(Iterable<MobEffectInstance> pEffects) 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 p_366678_) ApplyStatusEffectsConsumeEffect(MobEffectInstance p_366514_, float p_366567_) Constructor parameters in net.minecraft.world.item.consume_effects with type arguments of type MobEffectInstanceModifierConstructorDescriptionApplyStatusEffectsConsumeEffect(List<MobEffectInstance> p_366447_) ApplyStatusEffectsConsumeEffect(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 MobEffectInstanceConstructors 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)