Uses of Class
net.minecraft.potion.EffectInstance
Package
Description
-
Uses of EffectInstance in net.minecraft.advancements.criterion
Modifier and TypeMethodDescriptionboolean
MobEffectsPredicate.InstancePredicate.matches
(EffectInstance p_193463_1_) Modifier and TypeMethodDescriptionboolean
MobEffectsPredicate.matches
(Map<Effect, EffectInstance> p_193470_1_) -
Uses of EffectInstance in net.minecraft.client.entity.player
-
Uses of EffectInstance in net.minecraft.client.gui
Modifier and TypeMethodDescriptionprivate void
DisplayEffectsScreen.renderBackgrounds
(MatrixStack p_238810_1_, int p_238810_2_, int p_238810_3_, Iterable<EffectInstance> p_238810_4_) private void
DisplayEffectsScreen.renderIcons
(MatrixStack p_238812_1_, int p_238812_2_, int p_238812_3_, Iterable<EffectInstance> p_238812_4_) private void
DisplayEffectsScreen.renderLabels
(MatrixStack p_238813_1_, int p_238813_2_, int p_238813_3_, Iterable<EffectInstance> p_238813_4_) -
Uses of EffectInstance in net.minecraft.entity
Modifier and TypeFieldDescriptionprivate final Map<Effect,
EffectInstance> LivingEntity.activeEffects
private final List<EffectInstance>
AreaEffectCloudEntity.effects
Modifier and TypeMethodDescriptionLivingEntity.getActiveEffects()
LivingEntity.getActiveEffectsMap()
Modifier and TypeMethodDescriptionvoid
AreaEffectCloudEntity.addEffect
(EffectInstance p_184496_1_) boolean
LivingEntity.addEffect
(EffectInstance p_195064_1_) boolean
LivingEntity.canBeAffected
(EffectInstance p_70687_1_) void
LivingEntity.forceAddEffect
(EffectInstance p_233646_1_) protected void
LivingEntity.onEffectAdded
(EffectInstance p_70670_1_) protected void
LivingEntity.onEffectRemoved
(EffectInstance p_70688_1_) protected void
LivingEntity.onEffectUpdated
(EffectInstance p_70695_1_, boolean p_70695_2_) Modifier and TypeMethodDescriptionstatic boolean
LivingEntity.areAllEffectsAmbient
(Collection<EffectInstance> p_184593_0_) -
Uses of EffectInstance in net.minecraft.entity.boss
Modifier and TypeMethodDescriptionboolean
WitherEntity.addEffect
(EffectInstance p_195064_1_) boolean
WitherEntity.canBeAffected
(EffectInstance p_70687_1_) -
Uses of EffectInstance in net.minecraft.entity.boss.dragon
Modifier and TypeMethodDescriptionboolean
EnderDragonEntity.addEffect
(EffectInstance p_195064_1_) -
Uses of EffectInstance in net.minecraft.entity.monster
Modifier and TypeMethodDescriptionboolean
SpiderEntity.canBeAffected
(EffectInstance p_70687_1_) boolean
WitherSkeletonEntity.canBeAffected
(EffectInstance p_70687_1_) -
Uses of EffectInstance in net.minecraft.entity.player
Modifier and TypeMethodDescriptionprotected void
ServerPlayerEntity.onEffectAdded
(EffectInstance p_70670_1_) protected void
ServerPlayerEntity.onEffectRemoved
(EffectInstance p_70688_1_) protected void
ServerPlayerEntity.onEffectUpdated
(EffectInstance p_70695_1_, boolean p_70695_2_) -
Uses of EffectInstance in net.minecraft.entity.projectile
Modifier and TypeMethodDescriptionprivate void
PotionEntity.applySplash
(List<EffectInstance> p_213888_1_, Entity p_213888_2_) -
Uses of EffectInstance in net.minecraft.item
Modifier and TypeFieldDescriptionprivate final List<com.mojang.datafixers.util.Pair<Supplier<EffectInstance>,
Float>> Food.Builder.effects
private final List<com.mojang.datafixers.util.Pair<Supplier<EffectInstance>,
Float>> Food.effects
Modifier and TypeMethodDescriptionList<com.mojang.datafixers.util.Pair<EffectInstance,
Float>> Food.getEffects()
Modifier and TypeMethodDescriptionFood.Builder.effect
(EffectInstance p_221452_1_, float p_221452_2_) Deprecated.Modifier and TypeMethodDescriptionFood.Builder.effect
(Supplier<EffectInstance> effectIn, float probability) ModifierConstructorDescriptionprivate
Food
(int p_i50106_1_, float p_i50106_2_, boolean p_i50106_3_, boolean p_i50106_4_, boolean p_i50106_5_, List<com.mojang.datafixers.util.Pair<EffectInstance, Float>> p_i50106_6_) Deprecated. -
Uses of EffectInstance in net.minecraft.network.play.server
ModifierConstructorDescriptionSPlayEntityEffectPacket
(int p_i46891_1_, EffectInstance p_i46891_2_) -
Uses of EffectInstance in net.minecraft.potion
Modifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableList<EffectInstance>
Potion.effects
Modifier and TypeMethodDescriptionstatic EffectInstance
EffectInstance.load
(CompoundNBT p_82722_0_) private static EffectInstance
EffectInstance.loadSpecifiedEffect
(Effect p_230116_0_, CompoundNBT p_230116_1_) private static EffectInstance
EffectInstance.readCurativeItems
(EffectInstance effect, CompoundNBT nbt) Modifier and TypeMethodDescriptionstatic List<EffectInstance>
PotionUtils.getAllEffects
(CompoundNBT p_185185_0_) static List<EffectInstance>
PotionUtils.getAllEffects
(Potion p_185186_0_, Collection<EffectInstance> p_185186_1_) static List<EffectInstance>
PotionUtils.getCustomEffects
(ItemStack p_185190_0_) static List<EffectInstance>
PotionUtils.getCustomEffects
(CompoundNBT p_185192_0_) Potion.getEffects()
static List<EffectInstance>
PotionUtils.getMobEffects
(ItemStack p_185189_0_) Modifier and TypeMethodDescriptionint
EffectInstance.compareTo
(EffectInstance p_compareTo_1_) static String
EffectUtils.formatDuration
(EffectInstance p_188410_0_, float p_188410_1_) private static EffectInstance
EffectInstance.readCurativeItems
(EffectInstance effect, CompoundNBT nbt) (package private) void
EffectInstance.setDetailsFrom
(EffectInstance p_230117_1_) boolean
EffectInstance.update
(EffectInstance p_199308_1_) Modifier and TypeMethodDescriptionstatic List<EffectInstance>
PotionUtils.getAllEffects
(Potion p_185186_0_, Collection<EffectInstance> p_185186_1_) static int
PotionUtils.getColor
(Collection<EffectInstance> p_185181_0_) static void
PotionUtils.getCustomEffects
(CompoundNBT p_185193_0_, List<EffectInstance> p_185193_1_) static ItemStack
PotionUtils.setCustomEffects
(ItemStack p_185184_0_, Collection<EffectInstance> p_185184_1_) ModifierConstructorDescriptionEffectInstance
(EffectInstance p_i1577_1_) EffectInstance
(Effect p_i230050_1_, int p_i230050_2_, int p_i230050_3_, boolean p_i230050_4_, boolean p_i230050_5_, boolean p_i230050_6_, EffectInstance p_i230050_7_) Potion
(String p_i46740_1_, EffectInstance... p_i46740_2_) Potion
(EffectInstance... p_i46739_1_) -
Uses of EffectInstance in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault EffectInstance
IForgeEffectInstance.getEffectInstance()
Modifier and TypeMethodDescriptiondefault int
IForgeEffect.getGuiSortColor
(EffectInstance potionEffect) Used for determiningPotionEffect
sort order in GUIs.default void
IForgeEffect.renderHUDEffect
(EffectInstance effect, AbstractGui gui, MatrixStack 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.default void
IForgeEffect.renderInventoryEffect
(EffectInstance effect, DisplayEffectsScreen<?> gui, MatrixStack mStack, int x, int y, float z) Called to draw the this Potion onto the player's inventory when it's active.default boolean
IForgeEffect.shouldRender
(EffectInstance effect) If the Potion effect should be displayed in the players inventorydefault boolean
IForgeEffect.shouldRenderHUD
(EffectInstance effect) If the Potion effect should be displayed in the player's ingame HUDdefault boolean
IForgeEffect.shouldRenderInvText
(EffectInstance effect) If the standard PotionEffect text (name and duration) should be drawn when this potion is active. -
Uses of EffectInstance in net.minecraftforge.event.entity.living
Modifier and TypeFieldDescriptionprotected final EffectInstance
PotionEvent.effect
private final EffectInstance
PotionEvent.PotionAddedEvent.oldEffect
Modifier and TypeFieldDescriptionprivate final Collection<EffectInstance>
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, EffectInstance oldEffect, EffectInstance newEffect) PotionApplicableEvent
(LivingEntity living, EffectInstance effect) PotionEvent
(LivingEntity living, EffectInstance effect) PotionExpiryEvent
(LivingEntity living, EffectInstance effect) PotionRemoveEvent
(LivingEntity living, EffectInstance effect) ModifierConstructorDescriptionPotionColorCalculationEvent
(LivingEntity entity, int color, boolean hideParticle, Collection<EffectInstance> effectList)