예제 #1
0
 /** Don't forget to override this function in all children if you want more vars! */
 @Override
 public void readFromNBT(NBTTagCompound tag) {
   super.readFromNBT(tag);
   delay = tag.getInteger("delay");
   isPowered = tag.getBoolean("isPowered");
 }
예제 #2
0
 /** Don't forget to override this function in all children if you want more vars! */
 @Override
 public void writeToNBT(NBTTagCompound tag) {
   super.writeToNBT(tag);
   tag.setInteger("delay", delay);
   tag.setBoolean("isPowered", isPowered);
 }