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