예제 #1
0
 @Override
 public void restoreFromBundle(Bundle bundle) {
   super.restoreFromBundle(bundle);
   maxCharges = bundle.getInt(MAX_CHARGES);
   curCharges = bundle.getInt(CUR_CHARGES);
   curChargeKnown = bundle.getBoolean(CUR_CHARGE_KNOWN);
 }
예제 #2
0
 @Override
 public void restoreFromBundle(Bundle bundle) {
   super.restoreFromBundle(bundle);
   enchantment = (Enchantment) bundle.get(ENCHANTMENT);
 }