@Override public void readFromNBT(NBTTagCompound nbt) { isAIActive.setValue(nbt.getBoolean("isHuntingActive")); isTaming = nbt.getBoolean("isTaming"); standPoint = Point3D.readFromNBT("standPoint", nbt); ticksActive = nbt.getInteger("ticksActive"); }
@Override public void writeToNBT(NBTTagCompound nbt) { nbt.setBoolean("isHuntingActive", isAIActive.getBoolean()); nbt.setBoolean("isTaming", isTaming); standPoint.writeToNBT("standPoint", nbt); nbt.setInteger("ticksActive", ticksActive); }