Package org.freerealm.property

Examples of org.freerealm.property.ProduceResource.addOutput()


                    if (subNode.getNodeName().equals("Resource")) {
                        int id = Integer.parseInt(subNode.getAttributes().getNamedItem("id").getFirstChild().getNodeValue());
                        int amount = Integer.parseInt(subNode.getAttributes().getNamedItem("quantity").getFirstChild().getNodeValue());
                        int max = Integer.parseInt(subNode.getAttributes().getNamedItem("max").getFirstChild().getNodeValue());
                        Resource resource = realm.getResourceManager().getResource(id);
                        produceResource.addOutput(resource, amount, max);
                    }
                }
            }
        }
        return produceResource;
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.