Пример #1
0
 public void set(Object instance, Object value) {
   try {
     field.set(this, value);
   } catch (IllegalAccessException e) {
     NPCFactory.getLogger().log(Level.SEVERE, "Failed to access field", e);
   }
 }
Пример #2
0
 public Object get(Object instance) {
   try {
     return field.get(instance);
   } catch (IllegalAccessException e) {
     NPCFactory.getLogger().log(Level.SEVERE, "Failed to access field", e);
     return null;
   }
 }