@Override public Entity getSpecific(Object generic) { try { Integer id = (Integer) generic; ProtocolManager manager = managerRef.get(); // Use the entity ID to get a reference to the entity if (id != null && manager != null) { return manager.getEntityFromID(world, id); } else { return null; } } catch (FieldAccessException e) { throw new RuntimeException("Cannot retrieve entity from ID.", e); } }