/** Generate the RPClass */ public static void generateRPClass() { RPClass clazz = new RPClass("blocktarget"); clazz.isA("area"); clazz.addAttribute("x", Type.INT); clazz.addAttribute("y", Type.INT); clazz.addAttribute("shape", Type.STRING); }
public static void generateRPClass() { try { final RPClass pet = new RPClass("pet"); pet.isA("creature"); pet.addAttribute("weight", Type.BYTE); pet.addAttribute("eat", Type.FLAG); } catch (final SyntaxException e) { LOGGER.error("cannot generate RPClass", e); } }