예제 #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;
   }
 }