Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package sometimesHardcoreSometimes;
- import net.minecraft.item.ItemStack;
- import net.minecraft.nbt.NBTTagCompound;
- import net.minecraft.nbt.NBTTagList;
- import net.minecraft.tileentity.TileEntity;
- public class TileEntitySapphireCrop extends TileEntity
- {
- int bAmt;
- public int getBerryAmount()
- {
- return bAmt;
- }
- public void setBerryAmount(int that)
- {
- this.bAmt = that;
- }
- public void readFromNBT(NBTTagCompound nbt)
- {
- super.readFromNBT(nbt);
- this.bAmt = nbt.getInteger("bAmt");
- }
- public void writeToNBT(NBTTagCompound nbt)
- {
- super.writeToNBT(nbt);
- nbt.setInteger("bAmt", bAmt);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment