/** * Get moved paths for which an annotation doesn't work. * * @return A new collection of entries. */ public static Collection<WrapMoved> getExtraMovedPaths() { final List<WrapMoved> entries = new LinkedList<WrapMoved>(); final List<ManyMoved> multiEntries = new LinkedList<ManyMoved>(); // Add entries. final List<String> cfModels = Arrays.asList("creative", "spectator", "survival", "adventure", "elytra", "levitation"); multiEntries.add(new ManyMoved(MOVING_CREATIVEFLY_MODEL, cfModels, "horizontalspeed", SUB_HORIZONTAL_SPEED)); multiEntries.add(new ManyMoved(MOVING_CREATIVEFLY_MODEL, cfModels, "modsprint", SUB_HORIZONTAL_MODSPRINT)); multiEntries.add(new ManyMoved(MOVING_CREATIVEFLY_MODEL, cfModels, "maxheight", SUB_VERTICAL_MAXHEIGHT)); multiEntries.add(new ManyMoved(MOVING_CREATIVEFLY_MODEL, cfModels, "verticalspeed", SUB_VERTICAL_ASCEND_SPEED)); // Expand ManyMoved entries. for (ManyMoved entry : multiEntries) { entries.addAll(entry.getWrapMoved()); } return entries; }