Uses of Class
net.minecraft.world.effect.MobEffect
Packages that use MobEffect
Package
Description
-
Uses of MobEffect in net.minecraft.advancements.criterion
Fields in net.minecraft.advancements.criterion with type parameters of type MobEffectModifier and TypeFieldDescriptionprivate final ImmutableMap.Builder<Holder<MobEffect>, MobEffectsPredicate.MobEffectInstancePredicate> MobEffectsPredicate.Builder.effectMapprivate final Map<Holder<MobEffect>, MobEffectsPredicate.MobEffectInstancePredicate> MobEffectsPredicate.effectMapThe field for theeffectMaprecord component.Methods in net.minecraft.advancements.criterion that return types with arguments of type MobEffectModifier and TypeMethodDescriptionMobEffectsPredicate.effectMap()Returns the value of theeffectMaprecord component.Method parameters in net.minecraft.advancements.criterion with type arguments of type MobEffectModifier and TypeMethodDescriptionMobEffectsPredicate.Builder.and(Holder<MobEffect> effect, MobEffectsPredicate.MobEffectInstancePredicate predicate) booleanMobEffectsPredicate.matches(Map<Holder<MobEffect>, MobEffectInstance> effects) Constructor parameters in net.minecraft.advancements.criterion with type arguments of type MobEffectModifierConstructorDescriptionMobEffectsPredicate(Map<Holder<MobEffect>, MobEffectsPredicate.MobEffectInstancePredicate> effectMap) Creates an instance of aMobEffectsPredicaterecord class. -
Uses of MobEffect in net.minecraft.client.gui
Method parameters in net.minecraft.client.gui with type arguments of type MobEffectModifier and TypeMethodDescriptionstatic IdentifierGui.getMobEffectSprite(Holder<MobEffect> effect) -
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.effectBeaconScreen.primaryBeaconScreen.secondaryMethod parameters in net.minecraft.client.gui.screens.inventory with type arguments of type MobEffectModifier and TypeMethodDescriptionprotected MutableComponentBeaconScreen.BeaconPowerButton.createEffectDescription(Holder<MobEffect> effect) protected MutableComponentBeaconScreen.BeaconUpgradePowerButton.createEffectDescription(Holder<MobEffect> effect) protected voidConstructor parameters in net.minecraft.client.gui.screens.inventory with type arguments of type MobEffectModifierConstructorDescriptionBeaconPowerButton(int x, int y, Holder<MobEffect> effect, boolean isPrimary, int tier) BeaconUpgradePowerButton(int x, int y, Holder<MobEffect> effect) -
Uses of MobEffect in net.minecraft.client.renderer.fog.environment
Methods in net.minecraft.client.renderer.fog.environment that return types with arguments of type MobEffectModifier and TypeMethodDescriptionBlindnessFogEnvironment.getMobEffect()DarknessFogEnvironment.getMobEffect()MobEffectFogEnvironment.getMobEffect() -
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> context, String name) -
Uses of MobEffect in net.minecraft.core.registries
Fields in net.minecraft.core.registries with type parameters of type MobEffectModifier and TypeFieldDescriptionBuiltInRegistries.MOB_EFFECTstatic 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 TypeMethodDescriptionvoidGameTestHelper.assertLivingEntityHasMobEffect(LivingEntity entity, Holder<MobEffect> mobEffect, int amplifier) -
Uses of MobEffect in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game with type parameters of type MobEffectModifier and TypeFieldDescriptionClientboundRemoveMobEffectPacket.effectThe field for theeffectrecord component.ClientboundUpdateMobEffectPacket.effectServerboundSetBeaconPacket.primaryThe field for theprimaryrecord component.ServerboundSetBeaconPacket.secondaryThe field for thesecondaryrecord component.Methods in net.minecraft.network.protocol.game that return types with arguments of type MobEffectModifier and TypeMethodDescriptionClientboundRemoveMobEffectPacket.effect()Returns the value of theeffectrecord component.ClientboundUpdateMobEffectPacket.getEffect()ServerboundSetBeaconPacket.primary()Returns the value of theprimaryrecord component.ServerboundSetBeaconPacket.secondary()Returns the value of thesecondaryrecord component.Constructor parameters in net.minecraft.network.protocol.game with type arguments of type MobEffectModifierConstructorDescriptionClientboundRemoveMobEffectPacket(int entityId, Holder<MobEffect> effect) Creates an instance of aClientboundRemoveMobEffectPacketrecord class.ServerboundSetBeaconPacket(Optional<Holder<MobEffect>> primary, Optional<Holder<MobEffect>> secondary) Creates an instance of aServerboundSetBeaconPacketrecord 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 intEffectCommands.clearEffect(CommandSourceStack source, Collection<? extends Entity> entities, Holder<MobEffect> effectHolder) private static intEffectCommands.giveEffect(CommandSourceStack source, Collection<? extends Entity> entities, Holder<MobEffect> effectHolder, @Nullable Integer seconds, int amplifier, boolean particles) -
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) classclass(package private) classclass(package private) class(package private) class(package private) class(package private) class(package private) classclassFields in net.minecraft.world.effect with type parameters of type MobEffectModifier and TypeFieldDescriptionMobEffects.ABSORPTIONMobEffects.BAD_OMENMobEffects.BLINDNESSMobEffects.BREATH_OF_THE_NAUTILUSMobEffect.CODECMobEffects.CONDUIT_POWERMobEffects.DARKNESSMobEffects.DOLPHINS_GRACEMobEffectInstance.effectMobEffects.FIRE_RESISTANCEMobEffects.GLOWINGMobEffects.HASTEMobEffects.HEALTH_BOOSTMobEffects.HERO_OF_THE_VILLAGEMobEffects.HUNGERMobEffects.INFESTEDMobEffects.INSTANT_DAMAGEMobEffects.INSTANT_HEALTHMobEffects.INVISIBILITYMobEffects.JUMP_BOOSTMobEffects.LEVITATIONMobEffects.LUCKMobEffects.MINING_FATIGUEMobEffects.NAUSEAMobEffects.NIGHT_VISIONMobEffects.OOZINGMobEffects.POISONMobEffects.RAID_OMENMobEffects.REGENERATIONMobEffects.RESISTANCEMobEffects.SATURATIONMobEffects.SLOW_FALLINGMobEffects.SLOWNESSMobEffects.SPEEDstatic final StreamCodec<RegistryFriendlyByteBuf, Holder<MobEffect>> MobEffect.STREAM_CODECMobEffects.STRENGTHMobEffects.TRIAL_OMENMobEffects.UNLUCKMobEffects.WATER_BREATHINGMobEffects.WEAKNESSMobEffects.WEAVINGMobEffects.WIND_CHARGEDMobEffects.WITHERMethods in net.minecraft.world.effect that return MobEffectModifier and TypeMethodDescriptionMobEffect.addAttributeModifier(Holder<Attribute> attribute, Identifier id, double amount, AttributeModifier.Operation operation) MobEffect.addAttributeModifier(Holder<Attribute> attribute, Identifier 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... flags) MobEffect.setBlendDuration(int ticks) MobEffect.setBlendDuration(int inTicks, int outTicks, int outAdvanceTicks) MobEffect.withSoundOnAdded(SoundEvent soundEvent) 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 TypeMethodDescriptionbooleanConstructor parameters in net.minecraft.world.effect with type arguments of type MobEffectModifierConstructorDescriptionMobEffectInstance(Holder<MobEffect> effect) MobEffectInstance(Holder<MobEffect> effect, int duration) MobEffectInstance(Holder<MobEffect> effect, int duration, int amplifier) MobEffectInstance(Holder<MobEffect> effect, int duration, int amplifier, boolean ambient, boolean visible) MobEffectInstance(Holder<MobEffect> effect, int duration, int amplifier, boolean ambient, boolean visible, boolean showIcon) MobEffectInstance(Holder<MobEffect> effect, int duration, int amplifier, boolean ambient, boolean visible, boolean showIcon, @Nullable MobEffectInstance hiddenEffect) privateMobEffectInstance(Holder<MobEffect> effect, MobEffectInstance.Details details) -
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.activeEffectsMethods 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 TypeMethodDescription@Nullable MobEffectInstancefloatLivingEntity.getEffectBlendFactor(Holder<MobEffect> effect, float partialTicks) booleanbooleanLivingEntity.removeEffect(Holder<MobEffect> effect) final @Nullable MobEffectInstanceLivingEntity.removeEffectNoUpdate(Holder<MobEffect> effect) -
Uses of MobEffect in net.minecraft.world.entity.monster.spider
Fields in net.minecraft.world.entity.monster.spider with type parameters of type MobEffect -
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 id) BeaconMenu.getPrimaryEffect()BeaconMenu.getSecondaryEffect()Method parameters in net.minecraft.world.inventory with type arguments of type MobEffectModifier and TypeMethodDescriptionstatic intBeaconMenu.encodeEffect(@Nullable Holder<MobEffect> mobEffect) voidBeaconMenu.updateEffects(Optional<Holder<MobEffect>> primary, Optional<Holder<MobEffect>> secondary) -
Uses of MobEffect in net.minecraft.world.item.alchemy
Method parameters in net.minecraft.world.item.alchemy with type arguments of type MobEffectModifier and TypeMethodDescriptionstatic MutableComponentPotionContents.getPotionDescription(Holder<MobEffect> mobEffect, int amplifier) -
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.effectThe field for theeffectrecord component.Methods in net.minecraft.world.item.component that return types with arguments of type MobEffectModifier and TypeMethodDescriptionSuspiciousStewEffects.Entry.effect()Returns the value of theeffectrecord component.Constructor parameters in net.minecraft.world.item.component with type arguments of type MobEffect -
Uses of MobEffect in net.minecraft.world.item.consume_effects
Fields in net.minecraft.world.item.consume_effects with type parameters of type MobEffectModifier and TypeFieldDescriptionRemoveStatusEffectsConsumeEffect.effectsThe field for theeffectsrecord component.Methods in net.minecraft.world.item.consume_effects that return types with arguments of type MobEffectModifier and TypeMethodDescriptionRemoveStatusEffectsConsumeEffect.effects()Returns the value of theeffectsrecord component.Constructor parameters in net.minecraft.world.item.consume_effects with type arguments of type MobEffectModifierConstructorDescriptionCreates an instance of aRemoveStatusEffectsConsumeEffectrecord class. -
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.toApplyThe field for thetoApplyrecord component.Methods in net.minecraft.world.item.enchantment.effects that return types with arguments of type MobEffectModifier and TypeMethodDescriptionApplyMobEffect.toApply()Returns the value of thetoApplyrecord 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 aApplyMobEffectrecord class. -
Uses of MobEffect in net.minecraft.world.level.block
Fields in net.minecraft.world.level.block with type parameters of type MobEffectMethod parameters in net.minecraft.world.level.block with type arguments of type MobEffectModifier and TypeMethodDescriptionprotected static SuspiciousStewEffectsFlowerBlock.makeEffectList(Holder<MobEffect> suspiciousStewEffect, float effectSeconds) Constructor parameters in net.minecraft.world.level.block with type arguments of type MobEffectModifierConstructorDescriptionFlowerBlock(Holder<MobEffect> suspiciousStewEffect, float effectSeconds, BlockBehaviour.Properties properties) privateType(boolean open, Holder<MobEffect> effect, float duration, SoundEvent longSwitchSound, SoundEvent shortSwitchSound, int particleColor) WitherRoseBlock(Holder<MobEffect> mobEffect, float effectSeconds, BlockBehaviour.Properties properties) -
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_EFFECTSA list of effects that beacons can apply.BeaconBlockEntity.primaryPowerThe primary effect given by this beacon.BeaconBlockEntity.secondaryPowerThe secondary effect given by this beacon.BeaconBlockEntity.VALID_EFFECTSMethods in net.minecraft.world.level.block.entity that return types with arguments of type MobEffectModifier and TypeMethodDescriptionBeaconBlockEntity.filterEffect(@Nullable Holder<MobEffect> effect) BeaconBlockEntity.loadEffect(ValueInput input, String field) Method parameters in net.minecraft.world.level.block.entity with type arguments of type MobEffectModifier and TypeMethodDescriptionprivate static voidBeaconBlockEntity.applyEffects(Level level, BlockPos worldPosition, int levels, @Nullable Holder<MobEffect> primaryPower, @Nullable Holder<MobEffect> secondaryPower) BeaconBlockEntity.filterEffect(@Nullable Holder<MobEffect> effect) private static voidBeaconBlockEntity.storeEffect(ValueOutput output, String field, @Nullable Holder<MobEffect> effect) -
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 TypeMethodDescriptionTrialSpawnerStateData.findPlayerWithOminousEffect(ServerLevel level, List<UUID> inLineOfSightPlayers) -
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.effectThe field for theeffectrecord 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 theeffectrecord component.Method parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type MobEffectModifier and TypeMethodDescriptionSetStewEffectFunction.Builder.withEffect(Holder<MobEffect> effect, NumberProvider duration) Constructor parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type MobEffectModifierConstructorDescriptionprivateEffectEntry(Holder<MobEffect> effect, NumberProvider duration) Creates an instance of aEffectEntryrecord 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_EXTENSIONSMethods in net.neoforged.neoforge.client.extensions.common with parameters of type MobEffectModifier and TypeMethodDescriptionbooleanRegisterClientExtensionsEvent.isMobEffectRegistered(MobEffect mobEffect) Returns whether aIClientMobEffectExtensionshas been registered for the givenMobEffect.static IClientMobEffectExtensionsvoidRegisterClientExtensionsEvent.registerMobEffect(IClientMobEffectExtensions extensions, MobEffect... mobEffects) Register the givenIClientMobEffectExtensionsfor the givenMobEffects -
Uses of MobEffect in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common that return MobEffectModifier and TypeMethodDescriptionstatic @Nullable MobEffectCommonHooks.loadMobEffect(CompoundTag nbt, String key, @Nullable MobEffect fallback) Methods in net.neoforged.neoforge.common with parameters of type MobEffectModifier and TypeMethodDescriptionstatic @Nullable MobEffectCommonHooks.loadMobEffect(CompoundTag nbt, String key, @Nullable MobEffect fallback) static voidCommonHooks.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 booleanEventHooks.onEffectRemoved(LivingEntity entity, Holder<MobEffect> effect) -
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 MobEffect