Uses of Class
net.minecraft.world.effect.MobEffectInstance
Package
Description
-
Uses of MobEffectInstance in net.minecraft.advancements.critereon
Modifier and TypeMethodDescriptionboolean
MobEffectsPredicate.MobEffectInstancePredicate.matches
(MobEffectInstance p_56578_) Modifier and TypeMethodDescriptionboolean
MobEffectsPredicate.matches
(Map<Holder<MobEffect>, MobEffectInstance> p_56562_) -
Uses of MobEffectInstance in net.minecraft.client.gui.screens.inventory
Modifier and TypeMethodDescriptionprivate Component
EffectRenderingInventoryScreen.getEffectName
(MobEffectInstance p_194001_) Modifier and TypeMethodDescriptionprivate void
EffectRenderingInventoryScreen.renderBackgrounds
(GuiGraphics p_281540_, int p_282479_, int p_283680_, Iterable<MobEffectInstance> p_282013_, boolean p_283630_) private void
EffectRenderingInventoryScreen.renderIcons
(GuiGraphics p_282745_, int p_282521_, int p_282291_, Iterable<MobEffectInstance> p_282642_, boolean p_281536_) private void
EffectRenderingInventoryScreen.renderLabels
(GuiGraphics p_281462_, int p_283484_, int p_282057_, Iterable<MobEffectInstance> p_281986_) -
Uses of MobEffectInstance in net.minecraft.client.player
-
Uses of MobEffectInstance in net.minecraft.client.renderer
Modifier 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
ModifierConstructorDescriptionClientboundUpdateMobEffectPacket
(int p_133611_, MobEffectInstance p_133612_, boolean p_316376_) -
Uses of MobEffectInstance in net.minecraft.server.level
Modifier 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
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<MobEffectInstance> MobEffectInstance.CODEC
private final Function
<MobEffectInstance, ParticleOptions> MobEffect.particleFactory
static final StreamCodec
<RegistryFriendlyByteBuf, MobEffectInstance> MobEffectInstance.STREAM_CODEC
Modifier and TypeMethodDescriptionstatic MobEffectInstance
MobEffectInstance.load
(CompoundTag p_19561_) Modifier 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_) private static float
MobEffectInstance.BlendState.computeTarget
(MobEffectInstance p_316339_) void
MobEffectInstance.copyBlendState
(MobEffectInstance p_316485_) MobEffect.createParticleOptions
(MobEffectInstance p_333815_) static Component
MobEffectUtil.formatDuration
(MobEffectInstance p_268116_, float p_268280_, float p_314720_) private static int
MobEffectInstance.BlendState.getBlendDuration
(MobEffectInstance p_316448_) private boolean
MobEffectInstance.isShorterDurationThan
(MobEffectInstance p_268133_) (package private) void
MobEffectInstance.setDetailsFrom
(MobEffectInstance p_19549_) void
MobEffectInstance.BlendState.setImmediate
(MobEffectInstance p_316328_) void
MobEffectInstance.BlendState.tick
(MobEffectInstance p_316550_) boolean
MobEffectInstance.update
(MobEffectInstance p_19559_) ModifierConstructorDescriptionMobEffectInstance
(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
Modifier and TypeFieldDescriptionprivate final Map
<Holder<MobEffect>, MobEffectInstance> LivingEntity.activeEffects
Modifier and TypeMethodDescriptionLivingEntity.getActiveEffects()
LivingEntity.getActiveEffectsMap()
Modifier 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_) Deprecated.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_) void
LivingEntity.sendEffectToPassengers
(MobEffectInstance p_289695_) Modifier and TypeMethodDescriptionstatic boolean
LivingEntity.areAllEffectsAmbient
(Collection<MobEffectInstance> p_21180_) -
Uses of MobEffectInstance in net.minecraft.world.entity.boss.enderdragon
Modifier and TypeMethodDescriptionboolean
EnderDragon.addEffect
(MobEffectInstance p_182394_, Entity p_182395_) -
Uses of MobEffectInstance in net.minecraft.world.entity.boss.wither
Modifier 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
Modifier and TypeMethodDescriptionboolean
Spider.canBeAffected
(MobEffectInstance p_33809_) boolean
WitherSkeleton.canBeAffected
(MobEffectInstance p_34192_) -
Uses of MobEffectInstance in net.minecraft.world.entity.projectile
Modifier and TypeMethodDescriptionprivate void
ThrownPotion.applySplash
(Iterable<MobEffectInstance> p_330815_, Entity p_37549_) -
Uses of MobEffectInstance in net.minecraft.world.food
Modifier and TypeFieldDescriptionprivate final Supplier
<MobEffectInstance> FoodProperties.PossibleEffect.effectSupplier
The field for theeffectSupplier
record component.Modifier and TypeMethodDescriptionFoodProperties.PossibleEffect.effectSupplier()
Returns the value of theeffectSupplier
record component.Modifier and TypeMethodDescriptionFoodProperties.Builder.effect
(MobEffectInstance p_38763_, float p_38764_) Deprecated.Modifier and TypeMethodDescriptionFoodProperties.Builder.effect
(Supplier<MobEffectInstance> effectIn, float probability) ModifierConstructorDescriptionprivate
PossibleEffect
(MobEffectInstance effect, float probability) ModifierConstructorDescriptionPossibleEffect
(Supplier<MobEffectInstance> effectSupplier, float probability) Creates an instance of aPossibleEffect
record class. -
Uses of MobEffectInstance in net.minecraft.world.item.alchemy
Modifier and TypeFieldDescriptionprivate final List
<MobEffectInstance> PotionContents.customEffects
The field for thecustomEffects
record component.private final List
<MobEffectInstance> Potion.effects
Modifier and TypeMethodDescriptionPotionContents.customEffects()
Returns the value of thecustomEffects
record component.PotionContents.getAllEffects()
Potion.getEffects()
Modifier and TypeMethodDescriptionstatic void
PotionContents.addPotionTooltip
(Iterable<MobEffectInstance> p_331825_, Consumer<Component> p_331296_, float p_332038_, float p_332014_) void
PotionContents.forEachEffect
(Consumer<MobEffectInstance> p_331190_) static int
PotionContents.getColor
(Iterable<MobEffectInstance> p_331934_) static OptionalInt
PotionContents.getColorOptional
(Iterable<MobEffectInstance> p_332699_) ModifierConstructorDescriptionPotion
(String p_43484_, MobEffectInstance... p_43485_) Potion
(MobEffectInstance... p_43487_) ModifierConstructorDescriptionPotionContents
(Optional<Holder<Potion>> potion, Optional<Integer> customColor, List<MobEffectInstance> customEffects) Creates an instance of aPotionContents
record class. -
Uses of MobEffectInstance in net.minecraft.world.item.component
-
Uses of MobEffectInstance in net.neoforged.neoforge.client
Modifier and TypeMethodDescriptionstatic boolean
ClientHooks.shouldRenderEffect
(MobEffectInstance effectInstance) -
Uses of MobEffectInstance in net.neoforged.neoforge.client.extensions.common
Modifier 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, GuiGraphics guiGraphics, 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, GuiGraphics guiGraphics, 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, 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
Modifier and TypeMethodDescriptionstatic boolean
CommonHooks.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
Modifier and TypeMethodDescriptiondefault void
IMobEffectExtension.fillEffectCures
(Set<EffectCure> cures, MobEffectInstance effectInstance) Fill the given set with theEffectCure
s this effect should be curable with by defaultdefault int
IMobEffectExtension.getSortOrder
(MobEffectInstance effectInstance) Used for determiningMobEffect
sort order in GUIs. -
Uses of MobEffectInstance in net.neoforged.neoforge.event
Modifier and TypeMethodDescriptionstatic boolean
EventHooks.onEffectRemoved
(LivingEntity entity, MobEffectInstance effectInstance, @Nullable EffectCure cure) -
Uses of MobEffectInstance in net.neoforged.neoforge.event.entity.living
Modifier and TypeFieldDescriptionprivate final MobEffectInstance
EffectParticleModificationEvent.effect
protected final @Nullable MobEffectInstance
MobEffectEvent.effectInstance
private final MobEffectInstance
MobEffectEvent.Added.oldEffectInstance
Modifier and TypeMethodDescriptionEffectParticleModificationEvent.getEffect()
MobEffectEvent.Added.getEffectInstance()
MobEffectEvent.Applicable.getEffectInstance()
@Nullable MobEffectInstance
MobEffectEvent.getEffectInstance()
@Nullable MobEffectInstance
MobEffectEvent.Remove.getEffectInstance()
@Nullable MobEffectInstance
MobEffectEvent.Added.getOldEffectInstance()
ModifierConstructorDescriptionAdded
(LivingEntity living, MobEffectInstance oldEffectInstance, MobEffectInstance newEffectInstance, Entity source) Applicable
(LivingEntity living, MobEffectInstance effectInstance) EffectParticleModificationEvent
(LivingEntity entity, MobEffectInstance effect) Expired
(LivingEntity living, MobEffectInstance effectInstance) protected
MobEffectEvent
(LivingEntity living, MobEffectInstance effectInstance) Remove
(LivingEntity living, MobEffectInstance effectInstance, @Nullable EffectCure cure)