public class BasicAuraContainer extends java.lang.Object implements IAuraContainer
| Modifier and Type | Field and Description |
|---|---|
protected int |
aura |
protected int |
maxAura |
protected IAuraType |
type |
| Constructor and Description |
|---|
BasicAuraContainer(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) |
void |
readNBT(net.minecraft.nbt.NBTTagCompound compound) |
int |
storeAura(int amountToStore,
boolean simulate) |
void |
writeNBT(net.minecraft.nbt.NBTTagCompound compound) |
protected final IAuraType type
protected final int maxAura
protected int aura
public BasicAuraContainer(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 IAuraContainerpublic void writeNBT(net.minecraft.nbt.NBTTagCompound compound)
public void readNBT(net.minecraft.nbt.NBTTagCompound compound)