public static void restoreBasicInfoNBT(INPC entity, NBTTagCompound nbttagcompound) { try { entity.setDamageable(nbttagcompound.getBoolean("damageable")); entity.setGravity(nbttagcompound.getBoolean("gravity")); entity.setFreezing(nbttagcompound.getBoolean("freezing")); } catch (Exception e) { e.printStackTrace(); } }
public static void saveBasicInfoNBT(INPC entity, NBTTagCompound nbttagcompound) { try { nbttagcompound.setBoolean("damageable", entity.isDamageable()); nbttagcompound.setBoolean("gravity", entity.isGravity()); nbttagcompound.setBoolean("freezing", entity.isFreezing()); } catch (Exception e) { e.printStackTrace(); } }