Uses of Class
net.minecraft.world.effect.MobEffect
Packages that use MobEffect
Package
Description
-
Uses of MobEffect in net.minecraft.advancements.critereon
Fields in net.minecraft.advancements.critereon with type parameters of type MobEffectModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableMap.Builder
<Holder<MobEffect>, MobEffectsPredicate.MobEffectInstancePredicate> MobEffectsPredicate.Builder.effectMap
private final Map
<Holder<MobEffect>, MobEffectsPredicate.MobEffectInstancePredicate> MobEffectsPredicate.effectMap
The field for theeffectMap
record component.Methods in net.minecraft.advancements.critereon that return types with arguments of type MobEffectModifier and TypeMethodDescriptionMobEffectsPredicate.effectMap()
Returns the value of theeffectMap
record component.Method parameters in net.minecraft.advancements.critereon with type arguments of type MobEffectModifier and TypeMethodDescriptionMobEffectsPredicate.Builder.and
(Holder<MobEffect> p_316450_, MobEffectsPredicate.MobEffectInstancePredicate p_298742_) boolean
MobEffectsPredicate.matches
(Map<Holder<MobEffect>, MobEffectInstance> p_56562_) Constructor parameters in net.minecraft.advancements.critereon with type arguments of type MobEffectModifierConstructorDescriptionMobEffectsPredicate
(Map<Holder<MobEffect>, MobEffectsPredicate.MobEffectInstancePredicate> effectMap) Creates an instance of aMobEffectsPredicate
record class. -
Uses of MobEffect in net.minecraft.client.gui.screens.inventory
Fields in net.minecraft.client.gui.screens.inventory with type parameters of type MobEffectModifier and TypeFieldDescriptionBeaconScreen.BeaconPowerButton.effect
BeaconScreen.primary
BeaconScreen.secondary
Method parameters in net.minecraft.client.gui.screens.inventory with type arguments of type MobEffectModifier and TypeMethodDescriptionprotected MutableComponent
BeaconScreen.BeaconPowerButton.createEffectDescription
(Holder<MobEffect> p_316880_) protected MutableComponent
BeaconScreen.BeaconUpgradePowerButton.createEffectDescription
(Holder<MobEffect> p_316391_) protected void
Constructor parameters in net.minecraft.client.gui.screens.inventory with type arguments of type MobEffectModifierConstructorDescriptionBeaconPowerButton
(int p_169642_, int p_169643_, Holder<MobEffect> p_316476_, boolean p_169645_, int p_169646_) BeaconUpgradePowerButton
(int p_169675_, int p_169676_, Holder<MobEffect> p_316593_) -
Uses of MobEffect in net.minecraft.client.player
Method parameters in net.minecraft.client.player with type arguments of type MobEffect -
Uses of MobEffect in net.minecraft.client.renderer
Methods in net.minecraft.client.renderer that return types with arguments of type MobEffectModifier and TypeMethodDescriptionFogRenderer.BlindnessFogFunction.getMobEffect()
FogRenderer.DarknessFogFunction.getMobEffect()
FogRenderer.MobEffectFogFunction.getMobEffect()
-
Uses of MobEffect in net.minecraft.client.resources
Method parameters in net.minecraft.client.resources with type arguments of type MobEffectModifier and TypeMethodDescription -
Uses of MobEffect in net.minecraft.commands.arguments
Methods in net.minecraft.commands.arguments that return types with arguments of type MobEffectModifier and TypeMethodDescriptionstatic Holder.Reference
<MobEffect> ResourceArgument.getMobEffect
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_250521_, String p_249927_) -
Uses of MobEffect in net.minecraft.core.registries
Fields in net.minecraft.core.registries with type parameters of type MobEffectModifier and TypeFieldDescriptionBuiltInRegistries.MOB_EFFECT
static final ResourceKey
<Registry<MobEffect>> Registries.MOB_EFFECT
-
Uses of MobEffect in net.minecraft.gametest.framework
Method parameters in net.minecraft.gametest.framework with type arguments of type MobEffectModifier and TypeMethodDescriptionvoid
GameTestHelper.assertLivingEntityHasMobEffect
(LivingEntity p_296040_, Holder<MobEffect> p_316528_, int p_294266_) -
Uses of MobEffect in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game with type parameters of type MobEffectModifier and TypeFieldDescriptionClientboundRemoveMobEffectPacket.effect
The field for theeffect
record component.ClientboundUpdateMobEffectPacket.effect
ServerboundSetBeaconPacket.primary
The field for theprimary
record component.ServerboundSetBeaconPacket.secondary
The field for thesecondary
record component.Methods in net.minecraft.network.protocol.game that return types with arguments of type MobEffectModifier and TypeMethodDescriptionClientboundRemoveMobEffectPacket.effect()
Returns the value of theeffect
record component.ClientboundUpdateMobEffectPacket.getEffect()
ServerboundSetBeaconPacket.primary()
Returns the value of theprimary
record component.ServerboundSetBeaconPacket.secondary()
Returns the value of thesecondary
record component.Constructor parameters in net.minecraft.network.protocol.game with type arguments of type MobEffectModifierConstructorDescriptionClientboundRemoveMobEffectPacket
(int entityId, Holder<MobEffect> effect) Creates an instance of aClientboundRemoveMobEffectPacket
record class.ServerboundSetBeaconPacket
(Optional<Holder<MobEffect>> primary, Optional<Holder<MobEffect>> secondary) Creates an instance of aServerboundSetBeaconPacket
record class. -
Uses of MobEffect in net.minecraft.server.commands
Method parameters in net.minecraft.server.commands with type arguments of type MobEffectModifier and TypeMethodDescriptionprivate static int
EffectCommands.clearEffect
(CommandSourceStack p_250069_, Collection<? extends Entity> p_248561_, Holder<MobEffect> p_249198_) private static int
EffectCommands.giveEffect
(CommandSourceStack p_250553_, Collection<? extends Entity> p_250411_, Holder<MobEffect> p_249495_, Integer p_249652_, int p_251498_, boolean p_249944_) -
Uses of MobEffect in net.minecraft.world.effect
Subclasses of MobEffect in net.minecraft.world.effectModifier and TypeClassDescription(package private) class
(package private) class
(package private) class
(package private) class
(package private) class
class
(package private) class
(package private) class
(package private) class
(package private) class
(package private) class
(package private) class
(package private) class
(package private) class
Fields in net.minecraft.world.effect with type parameters of type MobEffectModifier and TypeFieldDescriptionMobEffects.ABSORPTION
MobEffects.BAD_OMEN
MobEffects.BLINDNESS
MobEffects.CONDUIT_POWER
MobEffects.CONFUSION
MobEffects.DAMAGE_BOOST
MobEffects.DAMAGE_RESISTANCE
MobEffects.DARKNESS
MobEffects.DIG_SLOWDOWN
MobEffects.DIG_SPEED
MobEffects.DOLPHINS_GRACE
MobEffectInstance.effect
MobEffects.FIRE_RESISTANCE
MobEffects.GLOWING
MobEffects.HARM
MobEffects.HEAL
MobEffects.HEALTH_BOOST
MobEffects.HERO_OF_THE_VILLAGE
MobEffects.HUNGER
MobEffects.INFESTED
MobEffects.INVISIBILITY
MobEffects.JUMP
MobEffects.LEVITATION
MobEffects.LUCK
MobEffects.MOVEMENT_SLOWDOWN
MobEffects.MOVEMENT_SPEED
MobEffects.NIGHT_VISION
MobEffects.OOZING
MobEffects.POISON
MobEffects.RAID_OMEN
MobEffects.REGENERATION
MobEffects.SATURATION
MobEffects.SLOW_FALLING
MobEffects.TRIAL_OMEN
MobEffects.UNLUCK
MobEffects.WATER_BREATHING
MobEffects.WEAKNESS
MobEffects.WEAVING
MobEffects.WIND_CHARGED
MobEffects.WITHER
Methods in net.minecraft.world.effect that return MobEffectModifier and TypeMethodDescriptionMobEffect.addAttributeModifier
(Holder<Attribute> p_316656_, String p_19474_, double p_19475_, AttributeModifier.Operation p_19476_) MobEffect.requiredFeatures
(FeatureFlag... p_338702_) MobEffect.setBlendDuration
(int p_316265_) MobEffect.withSoundOnAdded
(SoundEvent p_338383_) Methods in net.minecraft.world.effect that return types with arguments of type MobEffectMethods in net.minecraft.world.effect with parameters of type MobEffectModifier and TypeMethodDescriptionMethod parameters in net.minecraft.world.effect with type arguments of type MobEffectModifier and TypeMethodDescriptionboolean
Constructor parameters in net.minecraft.world.effect with type arguments of type MobEffectModifierConstructorDescriptionMobEffectInstance
(Holder<MobEffect> p_316782_) MobEffectInstance
(Holder<MobEffect> p_316473_, int p_19523_) MobEffectInstance
(Holder<MobEffect> p_316819_, int p_216888_, int p_216889_) MobEffectInstance
(Holder<MobEffect> p_316846_, int p_19516_, int p_316691_, boolean p_316120_, boolean p_316433_) MobEffectInstance
(Holder<MobEffect> p_316870_, int p_316726_, int p_316828_, boolean p_316179_, boolean p_316397_, boolean p_316398_) MobEffectInstance
(Holder<MobEffect> p_316176_, int p_19529_, int p_19530_, boolean p_19531_, boolean p_19532_, boolean p_19533_, MobEffectInstance p_316863_) private
MobEffectInstance
(Holder<MobEffect> p_324441_, MobEffectInstance.Details p_324529_) -
Uses of MobEffect in net.minecraft.world.entity
Fields in net.minecraft.world.entity with type parameters of type MobEffectModifier and TypeFieldDescriptionprivate final Map
<Holder<MobEffect>, MobEffectInstance> LivingEntity.activeEffects
Methods in net.minecraft.world.entity that return types with arguments of type MobEffectMethod parameters in net.minecraft.world.entity with type arguments of type MobEffectModifier and TypeMethodDescriptionboolean
boolean
LivingEntity.removeEffect
(Holder<MobEffect> p_316570_) LivingEntity.removeEffectNoUpdate
(Holder<MobEffect> p_316233_) -
Uses of MobEffect in net.minecraft.world.entity.monster
Fields in net.minecraft.world.entity.monster with type parameters of type MobEffect -
Uses of MobEffect in net.minecraft.world.entity.npc
Constructor parameters in net.minecraft.world.entity.npc with type arguments of type MobEffectModifierConstructorDescriptionSuspiciousStewForEmerald
(Holder<MobEffect> p_316230_, int p_186314_, int p_186315_) -
Uses of MobEffect in net.minecraft.world.inventory
Methods in net.minecraft.world.inventory that return types with arguments of type MobEffectModifier and TypeMethodDescriptionBeaconMenu.decodeEffect
(int p_298318_) BeaconMenu.getPrimaryEffect()
BeaconMenu.getSecondaryEffect()
Method parameters in net.minecraft.world.inventory with type arguments of type MobEffectModifier and TypeMethodDescriptionstatic int
BeaconMenu.encodeEffect
(Holder<MobEffect> p_316580_) void
BeaconMenu.updateEffects
(Optional<Holder<MobEffect>> p_219973_, Optional<Holder<MobEffect>> p_219974_) -
Uses of MobEffect in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component with type parameters of type MobEffectModifier and TypeFieldDescriptionSuspiciousStewEffects.Entry.effect
The field for theeffect
record component.Methods in net.minecraft.world.item.component that return types with arguments of type MobEffectModifier and TypeMethodDescriptionSuspiciousStewEffects.Entry.effect()
Returns the value of theeffect
record component.Constructor parameters in net.minecraft.world.item.component with type arguments of type MobEffect -
Uses of MobEffect in net.minecraft.world.level.block
Method parameters in net.minecraft.world.level.block with type arguments of type MobEffectModifier and TypeMethodDescriptionprotected static SuspiciousStewEffects
FlowerBlock.makeEffectList
(Holder<MobEffect> p_316817_, float p_332817_) Constructor parameters in net.minecraft.world.level.block with type arguments of type MobEffectModifierConstructorDescriptionFlowerBlock
(Holder<MobEffect> p_316154_, float p_332744_, BlockBehaviour.Properties p_53514_) WitherRoseBlock
(Holder<MobEffect> p_316323_, float p_332767_, BlockBehaviour.Properties p_304869_) -
Uses of MobEffect in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity with type parameters of type MobEffectModifier and TypeFieldDescriptionBeaconBlockEntity.BEACON_EFFECTS
BeaconBlockEntity.primaryPower
BeaconBlockEntity.secondaryPower
BeaconBlockEntity.VALID_EFFECTS
Methods in net.minecraft.world.level.block.entity that return types with arguments of type MobEffectModifier and TypeMethodDescriptionBeaconBlockEntity.filterEffect
(Holder<MobEffect> p_316372_) BeaconBlockEntity.loadEffect
(CompoundTag p_298570_, String p_299310_) Method parameters in net.minecraft.world.level.block.entity with type arguments of type MobEffectModifier and TypeMethodDescriptionprivate static void
BeaconBlockEntity.applyEffects
(Level p_155098_, BlockPos p_155099_, int p_155100_, Holder<MobEffect> p_316599_, Holder<MobEffect> p_316343_) BeaconBlockEntity.filterEffect
(Holder<MobEffect> p_316372_) private static void
BeaconBlockEntity.storeEffect
(CompoundTag p_298214_, String p_298983_, Holder<MobEffect> p_316689_) -
Uses of MobEffect in net.minecraft.world.level.storage.loot.functions
Fields in net.minecraft.world.level.storage.loot.functions with type parameters of type MobEffectModifier and TypeFieldDescriptionSetStewEffectFunction.EffectEntry.effect
The field for theeffect
record component.Methods in net.minecraft.world.level.storage.loot.functions that return types with arguments of type MobEffectModifier and TypeMethodDescriptionSetStewEffectFunction.EffectEntry.effect()
Returns the value of theeffect
record component.Method parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type MobEffectModifier and TypeMethodDescriptionSetStewEffectFunction.Builder.withEffect
(Holder<MobEffect> p_316210_, NumberProvider p_165474_) Constructor parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type MobEffectModifierConstructorDescription(package private)
EffectEntry
(Holder<MobEffect> effect, NumberProvider duration) Creates an instance of aEffectEntry
record class. -
Uses of MobEffect in net.neoforged.neoforge.client.extensions.common
Methods in net.neoforged.neoforge.client.extensions.common with parameters of type MobEffect -
Uses of MobEffect in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common that return MobEffectModifier and TypeMethodDescriptionstatic @Nullable MobEffect
CommonHooks.loadMobEffect
(CompoundTag nbt, String key, @Nullable MobEffect fallback) Methods in net.neoforged.neoforge.common with parameters of type MobEffectModifier and TypeMethodDescriptionstatic @Nullable MobEffect
CommonHooks.loadMobEffect
(CompoundTag nbt, String key, @Nullable MobEffect fallback) static void
CommonHooks.saveMobEffect
(CompoundTag nbt, String key, MobEffect effect) -
Uses of MobEffect in net.neoforged.neoforge.common.data
Methods in net.neoforged.neoforge.common.data with parameters of type MobEffectMethod parameters in net.neoforged.neoforge.common.data with type arguments of type MobEffect -
Uses of MobEffect in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return MobEffect -
Uses of MobEffect in net.neoforged.neoforge.event
Method parameters in net.neoforged.neoforge.event with type arguments of type MobEffectModifier and TypeMethodDescriptionstatic boolean
EventHooks.onEffectRemoved
(LivingEntity entity, Holder<MobEffect> effect, @Nullable EffectCure cure) -
Uses of MobEffect in net.neoforged.neoforge.event.entity.living
Fields in net.neoforged.neoforge.event.entity.living with type parameters of type MobEffectMethods in net.neoforged.neoforge.event.entity.living that return types with arguments of type MobEffectConstructor parameters in net.neoforged.neoforge.event.entity.living with type arguments of type MobEffectModifierConstructorDescriptionRemove
(LivingEntity living, Holder<MobEffect> effect, @Nullable EffectCure cure) -
Uses of MobEffect in net.neoforged.neoforge.oldtest
Fields in net.neoforged.neoforge.oldtest with type parameters of type MobEffectModifier and TypeFieldDescriptionprivate static final DeferredHolder
<MobEffect, MobEffect> ManyMobEffectsTest.LAST_EFFECT
private static final DeferredHolder
<MobEffect, MobEffect> ManyMobEffectsTest.LAST_EFFECT
private static final DeferredRegister
<MobEffect> ManyMobEffectsTest.MOB_EFFECTS
-
Uses of MobEffect in net.neoforged.testframework.gametest
Method parameters in net.neoforged.testframework.gametest with type arguments of type MobEffectModifier and TypeMethodDescription<E extends LivingEntity>
voidExtendedGameTestHelper.assertMobEffectAbsent
(E entity, Holder<MobEffect> effect, String testName) <E extends LivingEntity>
voidExtendedGameTestHelper.assertMobEffectPresent
(E entity, Holder<MobEffect> effect, String testName)