Modifier and Type | Method and Description |
---|---|
boolean |
MobEffectsPredicate.InstancePredicate.test(EffectInstance effect) |
Modifier and Type | Method and Description |
---|---|
boolean |
MobEffectsPredicate.test(java.util.Map<Effect,EffectInstance> potions) |
Modifier and Type | Method and Description |
---|---|
EffectInstance |
ClientPlayerEntity.removeActivePotionEffect(Effect potioneffectin) |
Modifier and Type | Method and Description |
---|---|
private void |
DisplayEffectsScreen.drawActivePotionEffectsBackgrounds(int x,
int height,
java.lang.Iterable<EffectInstance> effectsIn) |
private void |
DisplayEffectsScreen.drawActivePotionEffectsIcons(int x,
int height,
java.lang.Iterable<EffectInstance> effectsIn) |
private void |
DisplayEffectsScreen.drawActivePotionEffectsNames(int x,
int height,
java.lang.Iterable<EffectInstance> effectsIn) |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<Effect,EffectInstance> |
LivingEntity.activePotionsMap |
private java.util.List<EffectInstance> |
AreaEffectCloudEntity.effects |
Modifier and Type | Method and Description |
---|---|
EffectInstance |
LivingEntity.getActivePotionEffect(Effect potionIn) |
EffectInstance |
LivingEntity.removeActivePotionEffect(Effect potioneffectin) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<EffectInstance> |
LivingEntity.getActivePotionEffects() |
java.util.Map<Effect,EffectInstance> |
LivingEntity.getActivePotionMap() |
Modifier and Type | Method and Description |
---|---|
void |
AreaEffectCloudEntity.addEffect(EffectInstance effect) |
boolean |
LivingEntity.addPotionEffect(EffectInstance effectInstanceIn) |
boolean |
LivingEntity.isPotionApplicable(EffectInstance potioneffectIn) |
protected void |
LivingEntity.onChangedPotionEffect(EffectInstance id,
boolean reapply) |
protected void |
LivingEntity.onFinishedPotionEffect(EffectInstance effect) |
protected void |
LivingEntity.onNewPotionEffect(EffectInstance id) |
Modifier and Type | Method and Description |
---|---|
static boolean |
LivingEntity.areAllPotionsAmbient(java.util.Collection<EffectInstance> potionEffects) |
Modifier and Type | Method and Description |
---|---|
boolean |
WitherEntity.addPotionEffect(EffectInstance effectInstanceIn) |
boolean |
WitherEntity.isPotionApplicable(EffectInstance potioneffectIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
EnderDragonEntity.addPotionEffect(EffectInstance effectInstanceIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
WitherSkeletonEntity.isPotionApplicable(EffectInstance potioneffectIn) |
boolean |
SpiderEntity.isPotionApplicable(EffectInstance potioneffectIn) |
Modifier and Type | Method and Description |
---|---|
protected void |
ServerPlayerEntity.onChangedPotionEffect(EffectInstance id,
boolean reapply) |
protected void |
ServerPlayerEntity.onFinishedPotionEffect(EffectInstance effect) |
protected void |
ServerPlayerEntity.onNewPotionEffect(EffectInstance id) |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<EffectInstance> |
ArrowEntity.customPotionEffects |
Modifier and Type | Method and Description |
---|---|
void |
ArrowEntity.addEffect(EffectInstance effect) |
Modifier and Type | Method and Description |
---|---|
private void |
PotionEntity.func_213888_a(java.util.List<EffectInstance> p_213888_1_,
Entity p_213888_2_) |
Modifier and Type | Field and Description |
---|---|
private java.util.List<org.apache.commons.lang3.tuple.Pair<java.util.function.Supplier<EffectInstance>,java.lang.Float>> |
Food.effects |
private java.util.List<org.apache.commons.lang3.tuple.Pair<java.util.function.Supplier<EffectInstance>,java.lang.Float>> |
Food.Builder.effects |
Modifier and Type | Method and Description |
---|---|
java.util.List<org.apache.commons.lang3.tuple.Pair<EffectInstance,java.lang.Float>> |
Food.getEffects() |
Modifier and Type | Method and Description |
---|---|
Food.Builder |
Food.Builder.effect(EffectInstance effectIn,
float probability)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Food.Builder |
Food.Builder.effect(java.util.function.Supplier<EffectInstance> effectIn,
float probability) |
Constructor and Description |
---|
Food(int healing,
float saturationIn,
boolean isMeat,
boolean alwaysEdible,
boolean fastEdible,
java.util.List<org.apache.commons.lang3.tuple.Pair<EffectInstance,java.lang.Float>> effectsIn)
Deprecated.
|
Constructor and Description |
---|
SPlayEntityEffectPacket(int entityIdIn,
EffectInstance effect) |
Modifier and Type | Field and Description |
---|---|
private EffectInstance |
EffectInstance.field_230115_j_ |
Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ImmutableList<EffectInstance> |
Potion.effects |
Modifier and Type | Method and Description |
---|---|
private static EffectInstance |
EffectInstance.func_230116_a_(Effect p_230116_0_,
CompoundNBT p_230116_1_) |
static EffectInstance |
EffectInstance.read(CompoundNBT nbt) |
private static EffectInstance |
EffectInstance.readCurativeItems(EffectInstance effect,
CompoundNBT nbt) |
Modifier and Type | Method and Description |
---|---|
java.util.List<EffectInstance> |
Potion.getEffects() |
static java.util.List<EffectInstance> |
PotionUtils.getEffectsFromStack(ItemStack stack) |
static java.util.List<EffectInstance> |
PotionUtils.getEffectsFromTag(CompoundNBT tag) |
static java.util.List<EffectInstance> |
PotionUtils.getFullEffectsFromItem(ItemStack itemIn) |
static java.util.List<EffectInstance> |
PotionUtils.getFullEffectsFromTag(CompoundNBT tag) |
static java.util.List<EffectInstance> |
PotionUtils.mergeEffects(Potion potionIn,
java.util.Collection<EffectInstance> effects) |
Modifier and Type | Method and Description |
---|---|
boolean |
EffectInstance.combine(EffectInstance other) |
int |
EffectInstance.compareTo(EffectInstance p_compareTo_1_) |
(package private) void |
EffectInstance.func_230117_a_(EffectInstance p_230117_1_) |
static java.lang.String |
EffectUtils.getPotionDurationString(EffectInstance effect,
float durationFactor) |
private static EffectInstance |
EffectInstance.readCurativeItems(EffectInstance effect,
CompoundNBT nbt) |
Modifier and Type | Method and Description |
---|---|
static void |
PotionUtils.addCustomPotionEffectToList(CompoundNBT tag,
java.util.List<EffectInstance> effectList) |
static ItemStack |
PotionUtils.appendEffects(ItemStack itemIn,
java.util.Collection<EffectInstance> effects) |
static int |
PotionUtils.getPotionColorFromEffectList(java.util.Collection<EffectInstance> effects) |
static java.util.List<EffectInstance> |
PotionUtils.mergeEffects(Potion potionIn,
java.util.Collection<EffectInstance> effects) |
Constructor and Description |
---|
EffectInstance(EffectInstance other) |
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(EffectInstance... effectsIn) |
Potion(java.lang.String baseNameIn,
EffectInstance... effectsIn) |
Modifier and Type | Method and Description |
---|---|
default EffectInstance |
IForgeEffectInstance.getEffectInstance() |
Modifier and Type | Method and Description |
---|---|
default int |
IForgeEffect.getGuiSortColor(EffectInstance potionEffect)
Used for determining
PotionEffect sort order in GUIs. |
default void |
IForgeEffect.renderHUDEffect(EffectInstance effect,
AbstractGui gui,
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,
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 inventory
|
default boolean |
IForgeEffect.shouldRenderHUD(EffectInstance effect)
If the Potion effect should be displayed in the player's ingame HUD
|
default boolean |
IForgeEffect.shouldRenderInvText(EffectInstance effect)
If the standard PotionEffect text (name and duration) should be drawn when this potion is active.
|
Modifier and Type | Field and Description |
---|---|
protected EffectInstance |
PotionEvent.effect |
private EffectInstance |
PotionEvent.PotionAddedEvent.oldEffect |
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<EffectInstance> |
PotionColorCalculationEvent.effectList |
Modifier and Type | Method and Description |
---|---|
EffectInstance |
PotionEvent.PotionAddedEvent.getOldPotionEffect() |
EffectInstance |
PotionEvent.getPotionEffect()
Retuns the PotionEffect.
|
EffectInstance |
PotionEvent.PotionRemoveEvent.getPotionEffect() |
EffectInstance |
PotionEvent.PotionApplicableEvent.getPotionEffect() |
EffectInstance |
PotionEvent.PotionAddedEvent.getPotionEffect() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<EffectInstance> |
PotionColorCalculationEvent.getEffects()
Note that returned list is unmodifiable.
|
Constructor and Description |
---|
PotionAddedEvent(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 and Description |
---|
PotionColorCalculationEvent(LivingEntity entity,
int color,
boolean hideParticle,
java.util.Collection<EffectInstance> effectList) |