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 TypeMethodDescriptionbooleanMobEffectsPredicate.MobEffectInstancePredicate.matches(MobEffectInstance p_56578_) Method parameters in net.minecraft.advancements.critereon with type arguments of type MobEffectInstanceModifier and TypeMethodDescriptionbooleanMobEffectsPredicate.matches(Map<Holder<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 ComponentEffectRenderingInventoryScreen.getEffectName(MobEffectInstance p_194001_) Method parameters in net.minecraft.client.gui.screens.inventory with type arguments of type MobEffectInstanceModifier and TypeMethodDescriptionprivate voidEffectRenderingInventoryScreen.renderBackgrounds(GuiGraphics p_281540_, int p_282479_, int p_283680_, Iterable<MobEffectInstance> p_282013_, boolean p_283630_) private voidEffectRenderingInventoryScreen.renderIcons(GuiGraphics p_282745_, int p_282521_, int p_282291_, Iterable<MobEffectInstance> p_282642_, boolean p_281536_) private voidEffectRenderingInventoryScreen.renderLabels(GuiGraphics p_281462_, int p_283484_, int p_282057_, Iterable<MobEffectInstance> p_281986_) -
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 p_234208_, MobEffectInstance p_234209_, float p_234210_, float p_234211_) 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 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_, boolean p_316376_) -
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_, Entity p_143394_) protected voidServerPlayer.onEffectRemoved(MobEffectInstance p_9184_) protected voidServerPlayer.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 MobEffectInstanceFields 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 p_19561_) 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_) intMobEffectInstance.compareTo(MobEffectInstance p_19566_) private static floatMobEffectInstance.BlendState.computeTarget(MobEffectInstance p_316339_) voidMobEffectInstance.copyBlendState(MobEffectInstance p_316485_) MobEffect.createParticleOptions(MobEffectInstance p_333815_) static ComponentMobEffectUtil.formatDuration(MobEffectInstance p_268116_, float p_268280_, float p_314720_) private static intMobEffectInstance.BlendState.getBlendDuration(MobEffectInstance p_316448_) private booleanMobEffectInstance.isShorterDurationThan(MobEffectInstance p_268133_) (package private) voidMobEffectInstance.setDetailsFrom(MobEffectInstance p_19549_) voidMobEffectInstance.BlendState.setImmediate(MobEffectInstance p_316328_) voidMobEffectInstance.BlendState.tick(MobEffectInstance p_316550_) booleanMobEffectInstance.update(MobEffectInstance p_19559_) Constructors in net.minecraft.world.effect with parameters of type MobEffectInstanceModifierConstructorDescriptionMobEffectInstance(Holder<MobEffect> p_316176_, int p_19529_, int p_19530_, boolean p_19531_, boolean p_19532_, boolean p_19533_, MobEffectInstance p_316863_) MobEffectInstance(MobEffectInstance p_19543_) -
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 p_19717_) final booleanLivingEntity.addEffect(MobEffectInstance p_21165_) booleanLivingEntity.addEffect(MobEffectInstance p_147208_, Entity p_147209_) booleanLivingEntity.canBeAffected(MobEffectInstance p_21197_) Deprecated.voidLivingEntity.forceAddEffect(MobEffectInstance p_147216_, Entity p_147217_) protected voidLivingEntity.onEffectAdded(MobEffectInstance p_147190_, Entity p_147191_) protected voidLivingEntity.onEffectRemoved(MobEffectInstance p_21126_) protected voidLivingEntity.onEffectUpdated(MobEffectInstance p_147192_, boolean p_147193_, Entity p_147194_) voidLivingEntity.sendEffectToPassengers(MobEffectInstance p_289695_) Method parameters in net.minecraft.world.entity with type arguments of type MobEffectInstanceModifier and TypeMethodDescriptionstatic booleanLivingEntity.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 TypeMethodDescriptionbooleanEnderDragon.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 TypeMethodDescriptionbooleanWitherBoss.addEffect(MobEffectInstance p_182397_, Entity p_182398_) booleanWitherBoss.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 TypeMethodDescriptionbooleanSpider.canBeAffected(MobEffectInstance p_33809_) booleanWitherSkeleton.canBeAffected(MobEffectInstance p_34192_) -
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> p_330815_, 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 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 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) 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> p_331825_, Consumer<Component> p_331296_, float p_332038_, float p_332014_) voidPotionContents.forEachEffect(Consumer<MobEffectInstance> p_331190_) static intPotionContents.getColor(Iterable<MobEffectInstance> p_331934_) static OptionalIntPotionContents.getColorOptional(Iterable<MobEffectInstance> p_332699_) Constructors in net.minecraft.world.item.alchemy with parameters of type MobEffectInstanceModifierConstructorDescriptionPotion(String p_43484_, MobEffectInstance... p_43485_) Potion(MobEffectInstance... p_43487_) 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.minecraft.world.level.block.entity.trialspawner
Methods in net.minecraft.world.level.block.entity.trialspawner with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionprivate voidTrialSpawnerData.transformBadOmenIntoTrialOmen(Player p_338616_, MobEffectInstance p_338599_) -
Uses of MobEffectInstance in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client with parameters of type MobEffectInstanceModifier and TypeMethodDescriptionstatic booleanClientHooks.shouldRenderEffect(MobEffectInstance effectInstance) -
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)