Uses of Class
net.minecraft.potion.EffectInstance
Packages that use EffectInstance
Package
Description
-
Uses of EffectInstance in net.minecraft.advancements.criterion
Methods in net.minecraft.advancements.criterion with parameters of type EffectInstanceModifier and TypeMethodDescriptionboolean
MobEffectsPredicate.InstancePredicate.matches
(EffectInstance p_193463_1_) Method parameters in net.minecraft.advancements.criterion with type arguments of type EffectInstanceModifier and TypeMethodDescriptionboolean
MobEffectsPredicate.matches
(Map<Effect, EffectInstance> p_193470_1_) -
Uses of EffectInstance in net.minecraft.client.entity.player
Methods in net.minecraft.client.entity.player that return EffectInstance -
Uses of EffectInstance in net.minecraft.client.gui
Method parameters in net.minecraft.client.gui with type arguments of type EffectInstanceModifier 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
Fields in net.minecraft.entity with type parameters of type EffectInstanceModifier and TypeFieldDescriptionprivate final Map<Effect,
EffectInstance> LivingEntity.activeEffects
private final List<EffectInstance>
AreaEffectCloudEntity.effects
Methods in net.minecraft.entity that return EffectInstanceMethods in net.minecraft.entity that return types with arguments of type EffectInstanceModifier and TypeMethodDescriptionLivingEntity.getActiveEffects()
LivingEntity.getActiveEffectsMap()
Methods in net.minecraft.entity with parameters of type EffectInstanceModifier 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_) Method parameters in net.minecraft.entity with type arguments of type EffectInstanceModifier and TypeMethodDescriptionstatic boolean
LivingEntity.areAllEffectsAmbient
(Collection<EffectInstance> p_184593_0_) -
Uses of EffectInstance in net.minecraft.entity.boss
Methods in net.minecraft.entity.boss with parameters of type EffectInstanceModifier and TypeMethodDescriptionboolean
WitherEntity.addEffect
(EffectInstance p_195064_1_) boolean
WitherEntity.canBeAffected
(EffectInstance p_70687_1_) -
Uses of EffectInstance in net.minecraft.entity.boss.dragon
Methods in net.minecraft.entity.boss.dragon with parameters of type EffectInstanceModifier and TypeMethodDescriptionboolean
EnderDragonEntity.addEffect
(EffectInstance p_195064_1_) -
Uses of EffectInstance in net.minecraft.entity.monster
Methods in net.minecraft.entity.monster with parameters of type EffectInstanceModifier and TypeMethodDescriptionboolean
SpiderEntity.canBeAffected
(EffectInstance p_70687_1_) boolean
WitherSkeletonEntity.canBeAffected
(EffectInstance p_70687_1_) -
Uses of EffectInstance in net.minecraft.entity.player
Methods in net.minecraft.entity.player with parameters of type EffectInstanceModifier 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
Fields in net.minecraft.entity.projectile with type parameters of type EffectInstanceMethods in net.minecraft.entity.projectile with parameters of type EffectInstanceMethod parameters in net.minecraft.entity.projectile with type arguments of type EffectInstanceModifier and TypeMethodDescriptionprivate void
PotionEntity.applySplash
(List<EffectInstance> p_213888_1_, Entity p_213888_2_) -
Uses of EffectInstance in net.minecraft.item
Fields in net.minecraft.item with type parameters of type EffectInstanceModifier 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
Methods in net.minecraft.item that return types with arguments of type EffectInstanceModifier and TypeMethodDescriptionList<com.mojang.datafixers.util.Pair<EffectInstance,
Float>> Food.getEffects()
Methods in net.minecraft.item with parameters of type EffectInstanceModifier and TypeMethodDescriptionFood.Builder.effect
(EffectInstance p_221452_1_, float p_221452_2_) Deprecated.Method parameters in net.minecraft.item with type arguments of type EffectInstanceModifier and TypeMethodDescriptionFood.Builder.effect
(Supplier<EffectInstance> effectIn, float probability) Constructor parameters in net.minecraft.item with type arguments of type EffectInstanceModifierConstructorDescriptionprivate
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
Constructors in net.minecraft.network.play.server with parameters of type EffectInstanceModifierConstructorDescriptionSPlayEntityEffectPacket
(int p_i46891_1_, EffectInstance p_i46891_2_) -
Uses of EffectInstance in net.minecraft.potion
Fields in net.minecraft.potion declared as EffectInstanceFields in net.minecraft.potion with type parameters of type EffectInstanceModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableList<EffectInstance>
Potion.effects
Methods in net.minecraft.potion that return EffectInstanceModifier 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) Methods in net.minecraft.potion that return types with arguments of type EffectInstanceModifier 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_) Methods in net.minecraft.potion with parameters of type EffectInstanceModifier 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_) Method parameters in net.minecraft.potion with type arguments of type EffectInstanceModifier 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_) Constructors in net.minecraft.potion with parameters of type EffectInstanceModifierConstructorDescriptionEffectInstance
(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
Methods in net.minecraftforge.common.extensions that return EffectInstanceModifier and TypeMethodDescriptiondefault EffectInstance
IForgeEffectInstance.getEffectInstance()
Methods in net.minecraftforge.common.extensions with parameters of type EffectInstanceModifier 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
Fields in net.minecraftforge.event.entity.living declared as EffectInstanceModifier and TypeFieldDescriptionprotected final EffectInstance
PotionEvent.effect
private final EffectInstance
PotionEvent.PotionAddedEvent.oldEffect
Fields in net.minecraftforge.event.entity.living with type parameters of type EffectInstanceModifier and TypeFieldDescriptionprivate final Collection<EffectInstance>
PotionColorCalculationEvent.effectList
Methods in net.minecraftforge.event.entity.living that return EffectInstanceModifier and TypeMethodDescriptionPotionEvent.PotionAddedEvent.getOldPotionEffect()
PotionEvent.getPotionEffect()
Retuns the PotionEffect.PotionEvent.PotionAddedEvent.getPotionEffect()
PotionEvent.PotionApplicableEvent.getPotionEffect()
PotionEvent.PotionRemoveEvent.getPotionEffect()
Methods in net.minecraftforge.event.entity.living that return types with arguments of type EffectInstanceModifier and TypeMethodDescriptionPotionColorCalculationEvent.getEffects()
Note that returned list is unmodifiable.Constructors in net.minecraftforge.event.entity.living with parameters of type EffectInstanceModifierConstructorDescriptionPotionAddedEvent
(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) Constructor parameters in net.minecraftforge.event.entity.living with type arguments of type EffectInstanceModifierConstructorDescriptionPotionColorCalculationEvent
(LivingEntity entity, int color, boolean hideParticle, Collection<EffectInstance> effectList)