Uses of Class
net.minecraft.world.effect.MobEffect
Package
Description
-
Uses of MobEffect in net.minecraft.advancements.critereon
Modifier 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.Modifier and TypeMethodDescriptionMobEffectsPredicate.effectMap()
Returns the value of theeffectMap
record component.Modifier and TypeMethodDescriptionMobEffectsPredicate.Builder.and
(Holder<MobEffect> p_316450_, MobEffectsPredicate.MobEffectInstancePredicate p_298742_) boolean
MobEffectsPredicate.matches
(Map<Holder<MobEffect>, MobEffectInstance> p_56562_) ModifierConstructorDescriptionMobEffectsPredicate
(Map<Holder<MobEffect>, MobEffectsPredicate.MobEffectInstancePredicate> effectMap) Creates an instance of aMobEffectsPredicate
record class. -
Uses of MobEffect in net.minecraft.client.gui.screens.inventory
Modifier and TypeFieldDescriptionBeaconScreen.BeaconPowerButton.effect
BeaconScreen.primary
BeaconScreen.secondary
Modifier and TypeMethodDescriptionprotected MutableComponent
BeaconScreen.BeaconPowerButton.createEffectDescription
(Holder<MobEffect> p_316880_) protected MutableComponent
BeaconScreen.BeaconUpgradePowerButton.createEffectDescription
(Holder<MobEffect> p_316391_) protected void
ModifierConstructorDescriptionBeaconPowerButton
(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
-
Uses of MobEffect in net.minecraft.client.renderer
Modifier and TypeMethodDescriptionFogRenderer.BlindnessFogFunction.getMobEffect()
FogRenderer.DarknessFogFunction.getMobEffect()
FogRenderer.MobEffectFogFunction.getMobEffect()
-
Uses of MobEffect in net.minecraft.client.resources
Modifier and TypeMethodDescription -
Uses of MobEffect in net.minecraft.commands.arguments
Modifier 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
Modifier and TypeFieldDescriptionBuiltInRegistries.MOB_EFFECT
static final ResourceKey
<Registry<MobEffect>> Registries.MOB_EFFECT
-
Uses of MobEffect in net.minecraft.gametest.framework
Modifier and TypeMethodDescriptionvoid
GameTestHelper.assertLivingEntityHasMobEffect
(LivingEntity p_296040_, Holder<MobEffect> p_316528_, int p_294266_) -
Uses of MobEffect in net.minecraft.network.protocol.game
Modifier 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.Modifier 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.ModifierConstructorDescriptionClientboundRemoveMobEffectPacket
(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
Modifier 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
Modifier 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
Modifier 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
Modifier 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_) Modifier and TypeMethodDescriptionModifier and TypeMethodDescriptionboolean
ModifierConstructorDescriptionMobEffectInstance
(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
Modifier and TypeFieldDescriptionprivate final Map
<Holder<MobEffect>, MobEffectInstance> LivingEntity.activeEffects
Modifier and TypeMethodDescriptionboolean
boolean
LivingEntity.removeEffect
(Holder<MobEffect> p_316570_) LivingEntity.removeEffectNoUpdate
(Holder<MobEffect> p_316233_) -
Uses of MobEffect in net.minecraft.world.entity.monster
-
Uses of MobEffect in net.minecraft.world.entity.npc
ModifierConstructorDescriptionSuspiciousStewForEmerald
(Holder<MobEffect> p_316230_, int p_186314_, int p_186315_) -
Uses of MobEffect in net.minecraft.world.inventory
Modifier and TypeMethodDescriptionBeaconMenu.decodeEffect
(int p_298318_) BeaconMenu.getPrimaryEffect()
BeaconMenu.getSecondaryEffect()
Modifier 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
Modifier and TypeFieldDescriptionSuspiciousStewEffects.Entry.effect
The field for theeffect
record component.Modifier and TypeMethodDescriptionSuspiciousStewEffects.Entry.effect()
Returns the value of theeffect
record component. -
Uses of MobEffect in net.minecraft.world.level.block
Modifier and TypeMethodDescriptionprotected static SuspiciousStewEffects
FlowerBlock.makeEffectList
(Holder<MobEffect> p_316817_, float p_332817_) ModifierConstructorDescriptionFlowerBlock
(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
Modifier and TypeFieldDescriptionBeaconBlockEntity.BEACON_EFFECTS
BeaconBlockEntity.primaryPower
BeaconBlockEntity.secondaryPower
BeaconBlockEntity.VALID_EFFECTS
Modifier and TypeMethodDescriptionBeaconBlockEntity.filterEffect
(Holder<MobEffect> p_316372_) BeaconBlockEntity.loadEffect
(CompoundTag p_298570_, String p_299310_) Modifier 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
Modifier and TypeFieldDescriptionSetStewEffectFunction.EffectEntry.effect
The field for theeffect
record component.Modifier and TypeMethodDescriptionSetStewEffectFunction.EffectEntry.effect()
Returns the value of theeffect
record component.Modifier and TypeMethodDescriptionSetStewEffectFunction.Builder.withEffect
(Holder<MobEffect> p_316210_, NumberProvider p_165474_) ModifierConstructorDescription(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
-
Uses of MobEffect in net.neoforged.neoforge.common
Modifier and TypeMethodDescriptionstatic @Nullable MobEffect
CommonHooks.loadMobEffect
(CompoundTag nbt, String key, @Nullable MobEffect fallback) Modifier 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
-
Uses of MobEffect in net.neoforged.neoforge.common.extensions
-
Uses of MobEffect in net.neoforged.neoforge.event
Modifier and TypeMethodDescriptionstatic boolean
EventHooks.onEffectRemoved
(LivingEntity entity, Holder<MobEffect> effect, @Nullable EffectCure cure) -
Uses of MobEffect in net.neoforged.neoforge.event.entity.living
ModifierConstructorDescriptionRemove
(LivingEntity living, Holder<MobEffect> effect, @Nullable EffectCure cure) -
Uses of MobEffect in net.neoforged.neoforge.oldtest
Modifier 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
Modifier 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)