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> pEffect, MobEffectsPredicate.MobEffectInstancePredicate pPredicate) boolean
MobEffectsPredicate.matches
(Map<Holder<MobEffect>, MobEffectInstance> pEffects) 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> pEffect) protected MutableComponent
BeaconScreen.BeaconUpgradePowerButton.createEffectDescription
(Holder<MobEffect> pEffect) protected void
Constructor parameters in net.minecraft.client.gui.screens.inventory with type arguments of type MobEffectModifierConstructorDescriptionBeaconPowerButton
(int pX, int pY, Holder<MobEffect> pEffect, boolean pIsPrimary, int pTier) BeaconUpgradePowerButton
(int pX, int pY, Holder<MobEffect> pEffect) -
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 pEntity, Holder<MobEffect> pEffect, int pAmplifier) -
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 pSource, Collection<? extends Entity> pTargets, Holder<MobEffect> pEffect) private static int
EffectCommands.giveEffect
(CommandSourceStack pSource, Collection<? extends Entity> pTargets, Holder<MobEffect> pEffect, Integer pSeconds, int pAmplifier, boolean pShowParticles) -
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
MobEffect.CODEC
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
static final StreamCodec
<RegistryFriendlyByteBuf, Holder<MobEffect>> MobEffect.STREAM_CODEC
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> pAttribute, ResourceLocation pId, double pAmount, AttributeModifier.Operation pOperation) MobEffect.addAttributeModifier
(Holder<Attribute> attribute, ResourceLocation id, AttributeModifier.Operation operation, it.unimi.dsi.fastutil.ints.Int2DoubleFunction curve) Neo: attribute template with custom level curve, for mob effects providing non-linear attribute modifiers.MobEffect.requiredFeatures
(FeatureFlag... pRequiredFeatures) MobEffect.setBlendDuration
(int pBlendDuration) MobEffect.withSoundOnAdded
(SoundEvent pSound) 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> pEffect) MobEffectInstance
(Holder<MobEffect> pEffect, int pDuration) MobEffectInstance
(Holder<MobEffect> pEffect, int pDuration, int pAmplifier) MobEffectInstance
(Holder<MobEffect> pEffect, int pDuration, int pAmplifier, boolean pAmbient, boolean pVisible) MobEffectInstance
(Holder<MobEffect> pEffect, int pDuration, int pAmplifier, boolean pAmbient, boolean pVisible, boolean pShowIcon) MobEffectInstance
(Holder<MobEffect> pEffect, int pDuration, int pAmplifier, boolean pAmbient, boolean pVisible, boolean pShowIcon, MobEffectInstance pHiddenEffect) private
MobEffectInstance
(Holder<MobEffect> pEffect, 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> pEffect) LivingEntity.removeEffectNoUpdate
(Holder<MobEffect> pEffect) -
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> pEffect, int pDuration, int pXp) -
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 pEffectId) BeaconMenu.getPrimaryEffect()
BeaconMenu.getSecondaryEffect()
Method parameters in net.minecraft.world.inventory with type arguments of type MobEffectModifier and TypeMethodDescriptionstatic int
BeaconMenu.encodeEffect
(Holder<MobEffect> pEffect) void
BeaconMenu.updateEffects
(Optional<Holder<MobEffect>> pPrimaryEffect, Optional<Holder<MobEffect>> pSecondaryEffect) -
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.item.enchantment.effects
Fields in net.minecraft.world.item.enchantment.effects with type parameters of type MobEffectModifier and TypeFieldDescriptionApplyMobEffect.toApply
The field for thetoApply
record component.Methods in net.minecraft.world.item.enchantment.effects that return types with arguments of type MobEffectModifier and TypeMethodDescriptionApplyMobEffect.toApply()
Returns the value of thetoApply
record component.Constructor parameters in net.minecraft.world.item.enchantment.effects with type arguments of type MobEffectModifierConstructorDescriptionApplyMobEffect
(HolderSet<MobEffect> toApply, LevelBasedValue minDuration, LevelBasedValue maxDuration, LevelBasedValue minAmplifier, LevelBasedValue maxAmplifier) Creates an instance of aApplyMobEffect
record class. -
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> pEffect, float pSeconds) Constructor parameters in net.minecraft.world.level.block with type arguments of type MobEffectModifierConstructorDescriptionFlowerBlock
(Holder<MobEffect> pEffect, float pSeconds, BlockBehaviour.Properties pProperties) WitherRoseBlock
(Holder<MobEffect> pEffect, float pSeconds, BlockBehaviour.Properties pProperties) -
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
A list of effects that beacons can apply.BeaconBlockEntity.primaryPower
The primary effect given by this beacon.BeaconBlockEntity.secondaryPower
The secondary effect given by this beacon.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 pTag, String pKey) Method parameters in net.minecraft.world.level.block.entity with type arguments of type MobEffectModifier and TypeMethodDescriptionprivate static void
BeaconBlockEntity.applyEffects
(Level pLevel, BlockPos pPos, int pBeaconLevel, Holder<MobEffect> pPrimaryEffect, Holder<MobEffect> pSecondaryEffect) BeaconBlockEntity.filterEffect
(Holder<MobEffect> p_316372_) private static void
BeaconBlockEntity.storeEffect
(CompoundTag pTag, String pKey, Holder<MobEffect> pEffect) -
Uses of MobEffect in net.minecraft.world.level.block.entity.trialspawner
Methods in net.minecraft.world.level.block.entity.trialspawner that return types with arguments of type MobEffectModifier and TypeMethodDescriptionTrialSpawnerData.findPlayerWithOminousEffect
(ServerLevel pLevel, List<UUID> pPlayers) -
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> pEffect, NumberProvider pAmplifier) 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
Fields in net.neoforged.neoforge.client.extensions.common with type parameters of type MobEffectModifier and TypeFieldDescription(package private) static final Map
<MobEffect, IClientMobEffectExtensions> ClientExtensionsManager.MOB_EFFECT_EXTENSIONS
Methods in net.neoforged.neoforge.client.extensions.common with parameters of type MobEffectModifier and TypeMethodDescriptionboolean
RegisterClientExtensionsEvent.isMobEffectRegistered
(MobEffect mobEffect) Returns whether aIClientMobEffectExtensions
has been registered for the givenMobEffect
.static IClientMobEffectExtensions
void
RegisterClientExtensionsEvent.registerMobEffect
(IClientMobEffectExtensions extensions, MobEffect... mobEffects) Register the givenIClientMobEffectExtensions
for the givenMobEffect
s -
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)