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<MobEffect,MobEffectInstance> p_56562_)
-
Uses of MobEffectInstance in net.minecraft.client.gui.screens.inventory
Modifier and TypeMethodDescriptionprivate void
EffectRenderingInventoryScreen.renderBackgrounds(PoseStack p_98710_, int p_98711_, int p_98712_, Iterable<MobEffectInstance> p_98713_)
private void
EffectRenderingInventoryScreen.renderIcons(PoseStack p_98718_, int p_98719_, int p_98720_, Iterable<MobEffectInstance> p_98721_)
private void
EffectRenderingInventoryScreen.renderLabels(PoseStack p_98723_, int p_98724_, int p_98725_, Iterable<MobEffectInstance> p_98726_)
-
Uses of MobEffectInstance in net.minecraft.client.player
-
Uses of MobEffectInstance in net.minecraft.network.protocol.game
ModifierConstructorDescriptionClientboundUpdateMobEffectPacket(int p_133611_, MobEffectInstance p_133612_)
-
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 TypeMethodDescriptionstatic MobEffectInstance
MobEffectInstance.load(CompoundTag p_19561_)
private static MobEffectInstance
MobEffectInstance.loadSpecifiedEffect(MobEffect p_19546_, CompoundTag p_19547_)
private static MobEffectInstance
MobEffectInstance.readCurativeItems(MobEffectInstance effect, CompoundTag nbt)
Modifier and TypeMethodDescriptionint
MobEffectInstance.compareTo(MobEffectInstance p_19566_)
static String
MobEffectUtil.formatDuration(MobEffectInstance p_19582_, float p_19583_)
private static MobEffectInstance
MobEffectInstance.readCurativeItems(MobEffectInstance effect, CompoundTag nbt)
(package private) void
MobEffectInstance.setDetailsFrom(MobEffectInstance p_19549_)
boolean
MobEffectInstance.update(MobEffectInstance p_19559_)
ModifierConstructorDescriptionMobEffectInstance(MobEffectInstance p_19543_)
MobEffectInstance(MobEffect p_19535_, int p_19536_, int p_19537_, boolean p_19538_, boolean p_19539_, boolean p_19540_, MobEffectInstance p_19541_)
-
Uses of MobEffectInstance in net.minecraft.world.entity
Modifier and TypeFieldDescriptionprivate Map<MobEffect,MobEffectInstance>
LivingEntity.activeEffects
private List<MobEffectInstance>
AreaEffectCloud.effects
Modifier and TypeMethodDescriptionLivingEntity.getActiveEffects()
LivingEntity.getActiveEffectsMap()
Modifier and TypeMethodDescriptionvoid
AreaEffectCloud.addEffect(MobEffectInstance p_19717_)
boolean
LivingEntity.addEffect(MobEffectInstance p_21165_)
boolean
LivingEntity.addEffect(MobEffectInstance p_147208_, Entity p_147209_)
boolean
LivingEntity.canBeAffected(MobEffectInstance p_21197_)
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_)
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(List<MobEffectInstance> p_37548_, Entity p_37549_)
-
Uses of MobEffectInstance in net.minecraft.world.food
Modifier and TypeFieldDescriptionprivate List<com.mojang.datafixers.util.Pair<Supplier<MobEffectInstance>,Float>>
FoodProperties.Builder.effects
private List<com.mojang.datafixers.util.Pair<Supplier<MobEffectInstance>,Float>>
FoodProperties.effects
Modifier and TypeMethodDescriptionList<com.mojang.datafixers.util.Pair<MobEffectInstance,Float>>
FoodProperties.getEffects()
Modifier and TypeMethodDescriptionFoodProperties.Builder.effect(MobEffectInstance p_38763_, float p_38764_)
Deprecated.Modifier and TypeMethodDescriptionFoodProperties.Builder.effect(Supplier<MobEffectInstance> effectIn, float probability)
ModifierConstructorDescription(package private)
FoodProperties(int p_38730_, float p_38731_, boolean p_38732_, boolean p_38733_, boolean p_38734_, List<com.mojang.datafixers.util.Pair<MobEffectInstance,Float>> p_38735_)
Deprecated. -
Uses of MobEffectInstance in net.minecraft.world.item.alchemy
Modifier and TypeFieldDescriptionprivate com.google.common.collect.ImmutableList<MobEffectInstance>
Potion.effects
Modifier and TypeMethodDescriptionstatic List<MobEffectInstance>
PotionUtils.getAllEffects(CompoundTag p_43567_)
static List<MobEffectInstance>
PotionUtils.getAllEffects(Potion p_43562_, Collection<MobEffectInstance> p_43563_)
static List<MobEffectInstance>
PotionUtils.getCustomEffects(CompoundTag p_43574_)
static List<MobEffectInstance>
PotionUtils.getCustomEffects(ItemStack p_43572_)
Potion.getEffects()
static List<MobEffectInstance>
PotionUtils.getMobEffects(ItemStack p_43548_)
Modifier and TypeMethodDescriptionstatic List<MobEffectInstance>
PotionUtils.getAllEffects(Potion p_43562_, Collection<MobEffectInstance> p_43563_)
static int
PotionUtils.getColor(Collection<MobEffectInstance> p_43565_)
static void
PotionUtils.getCustomEffects(CompoundTag p_43569_, List<MobEffectInstance> p_43570_)
static ItemStack
PotionUtils.setCustomEffects(ItemStack p_43553_, Collection<MobEffectInstance> p_43554_)
ModifierConstructorDescriptionPotion(String p_43484_, MobEffectInstance... p_43485_)
Potion(MobEffectInstance... p_43487_)
-
Uses of MobEffectInstance in net.minecraftforge.client
Modifier and TypeMethodDescriptionstatic EffectRenderer
RenderProperties.getEffectRenderer(MobEffectInstance effectInstance)
abstract void
EffectRenderer.renderHUDEffect(MobEffectInstance effect, GuiComponent gui, PoseStack mStack, int x, int y, float z, float alpha)
Called to draw the this Potion onto the player's ingame HUD when it's active.abstract void
EffectRenderer.renderInventoryEffect(MobEffectInstance effect, EffectRenderingInventoryScreen<?> gui, PoseStack mStack, int x, int y, float z)
Called to draw the this Potion onto the player's inventory when it's active.boolean
EffectRenderer.shouldRender(MobEffectInstance effect)
If the Potion effect should be displayed in the players inventorystatic boolean
ForgeHooksClient.shouldRender(MobEffectInstance effectInstance)
boolean
EffectRenderer.shouldRenderHUD(MobEffectInstance effect)
If the Potion effect should be displayed in the player's ingame HUDboolean
EffectRenderer.shouldRenderInvText(MobEffectInstance effect)
If the standard PotionEffect text (name and duration) should be drawn when this potion is active. -
Uses of MobEffectInstance in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault int
IForgeMobEffect.getGuiSortColor(MobEffectInstance potionEffect)
Used for determiningPotionEffect
sort order in GUIs. -
Uses of MobEffectInstance in net.minecraftforge.event.entity.living
Modifier and TypeFieldDescriptionprotected MobEffectInstance
PotionEvent.effect
private MobEffectInstance
PotionEvent.PotionAddedEvent.oldEffect
Modifier and TypeFieldDescriptionprivate Collection<MobEffectInstance>
PotionColorCalculationEvent.effectList
Modifier and TypeMethodDescriptionPotionEvent.PotionAddedEvent.getOldPotionEffect()
PotionEvent.getPotionEffect()
Retuns the PotionEffect.PotionEvent.PotionAddedEvent.getPotionEffect()
PotionEvent.PotionApplicableEvent.getPotionEffect()
PotionEvent.PotionRemoveEvent.getPotionEffect()
Modifier and TypeMethodDescriptionPotionColorCalculationEvent.getEffects()
Note that returned list is unmodifiable.ModifierConstructorDescriptionPotionAddedEvent(LivingEntity living, MobEffectInstance oldEffect, MobEffectInstance newEffect)
Deprecated, for removal: This API element is subject to removal in a future version.PotionAddedEvent(LivingEntity living, MobEffectInstance oldEffect, MobEffectInstance newEffect, Entity source)
PotionApplicableEvent(LivingEntity living, MobEffectInstance effect)
PotionEvent(LivingEntity living, MobEffectInstance effect)
PotionExpiryEvent(LivingEntity living, MobEffectInstance effect)
PotionRemoveEvent(LivingEntity living, MobEffectInstance effect)
ModifierConstructorDescriptionPotionColorCalculationEvent(LivingEntity entity, int color, boolean hideParticle, Collection<MobEffectInstance> effectList)