2014-01-17 19:12:49 +00:00
|
|
|
package WayofTime.alchemicalWizardry.common;
|
|
|
|
|
|
|
|
import net.minecraft.nbt.NBTTagCompound;
|
|
|
|
|
2014-01-17 21:43:13 +00:00
|
|
|
public class LifeEssenceNetwork extends net.minecraft.world.WorldSavedData
|
|
|
|
{
|
2014-01-17 19:12:49 +00:00
|
|
|
public int currentEssence;
|
2014-01-17 21:05:38 +00:00
|
|
|
|
2014-01-17 19:12:49 +00:00
|
|
|
public LifeEssenceNetwork(String par1Str)
|
|
|
|
{
|
|
|
|
super(par1Str);
|
|
|
|
currentEssence = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void readFromNBT(NBTTagCompound nbttagcompound)
|
|
|
|
{
|
|
|
|
currentEssence = nbttagcompound.getInteger("currentEssence");
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void writeToNBT(NBTTagCompound nbttagcompound)
|
|
|
|
{
|
|
|
|
nbttagcompound.setInteger("currentEssence", currentEssence);
|
|
|
|
}
|
|
|
|
}
|