Examples of WaypointModifier


Examples of net.citizensnpcs.waypoints.WaypointModifier

                        .parseDouble(split[1]), Double.parseDouble(split[2]))));
            }
            return temp;
        }
        String path = "", root = "";
        WaypointModifier modifier = null;
        for (int key : profiles.getIntegerKeys(UID + BasicProperties.waypoints)) {
            root = UID + BasicProperties.waypoints + "." + key;
            Waypoint waypoint = new Waypoint(LocationUtils.loadLocation(profiles, root, true));

            waypoint.setDelay(profiles.getInt(root + ".delay"));

            if (profiles.keyExists(root + ".modifiers")) {
                root += ".modifiers";
                for (int innerKey : profiles.getIntegerKeys(root)) {
                    path = root + "." + innerKey;
                    modifier = WaypointModifierType.valueOf(profiles.getString(path + ".type")).create(
                            waypoint);
                    modifier.parse(profiles, path);
                    waypoint.addModifier(modifier);
                }
            }
            temp.add(waypoint);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.