public class MCPotionEfect
extends java.lang.Object
implements crafttweaker.api.potions.IPotionEffect
Constructor and Description |
---|
MCPotionEfect(net.minecraft.potion.PotionEffect potionEffect) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(crafttweaker.api.potions.IPotion other) |
boolean |
doesShowParticles() |
int |
getAmplifier() |
java.util.List<crafttweaker.api.item.IItemStack> |
getCurativeItems() |
int |
getDuration() |
java.lang.String |
getEffectName() |
java.lang.Object |
getInternal() |
crafttweaker.api.potions.IPotion |
getPotion() |
boolean |
isAmbient() |
boolean |
isCurativeItem(crafttweaker.api.item.IItemStack item) |
boolean |
isPotionDurationMax() |
void |
performEffect(crafttweaker.api.entity.IEntity entity) |
void |
setIsPotionDurationMax(boolean potionDurationMax) |
public MCPotionEfect(net.minecraft.potion.PotionEffect potionEffect)
public int compareTo(crafttweaker.api.potions.IPotion other)
compareTo
in interface crafttweaker.api.potions.IPotionEffect
public int getDuration()
getDuration
in interface crafttweaker.api.potions.IPotionEffect
public crafttweaker.api.potions.IPotion getPotion()
getPotion
in interface crafttweaker.api.potions.IPotionEffect
public boolean doesShowParticles()
doesShowParticles
in interface crafttweaker.api.potions.IPotionEffect
public int getAmplifier()
getAmplifier
in interface crafttweaker.api.potions.IPotionEffect
public java.util.List<crafttweaker.api.item.IItemStack> getCurativeItems()
getCurativeItems
in interface crafttweaker.api.potions.IPotionEffect
public java.lang.String getEffectName()
getEffectName
in interface crafttweaker.api.potions.IPotionEffect
public boolean isAmbient()
isAmbient
in interface crafttweaker.api.potions.IPotionEffect
public boolean isPotionDurationMax()
isPotionDurationMax
in interface crafttweaker.api.potions.IPotionEffect
public boolean isCurativeItem(crafttweaker.api.item.IItemStack item)
isCurativeItem
in interface crafttweaker.api.potions.IPotionEffect
public void setIsPotionDurationMax(boolean potionDurationMax)
setIsPotionDurationMax
in interface crafttweaker.api.potions.IPotionEffect
public void performEffect(crafttweaker.api.entity.IEntity entity)
performEffect
in interface crafttweaker.api.potions.IPotionEffect
public java.lang.Object getInternal()
getInternal
in interface crafttweaker.api.potions.IPotionEffect