public class ItemAuraContainer extends java.lang.Object implements IAuraContainer
| Modifier and Type | Field and Description |
|---|---|
protected int |
maxAura |
protected net.minecraft.item.ItemStack |
stack |
protected IAuraType |
type |
| Constructor and Description |
|---|
ItemAuraContainer(net.minecraft.item.ItemStack stack,
IAuraType type,
int maxAura) |
| Modifier and Type | Method and Description |
|---|---|
int |
drainAura(int amountToDrain,
boolean simulate) |
int |
getAuraColor() |
int |
getMaxAura() |
int |
getStoredAura() |
boolean |
isAcceptableType(IAuraType type) |
int |
storeAura(int amountToStore,
boolean simulate) |
protected final net.minecraft.item.ItemStack stack
protected final IAuraType type
protected final int maxAura
public ItemAuraContainer(net.minecraft.item.ItemStack stack,
IAuraType type,
int maxAura)
public int storeAura(int amountToStore,
boolean simulate)
storeAura in interface IAuraContainerpublic int drainAura(int amountToDrain,
boolean simulate)
drainAura in interface IAuraContainerpublic int getStoredAura()
getStoredAura in interface IAuraContainerpublic int getMaxAura()
getMaxAura in interface IAuraContainerpublic int getAuraColor()
getAuraColor in interface IAuraContainerpublic boolean isAcceptableType(IAuraType type)
isAcceptableType in interface IAuraContainer