public void grow() { if (seed != null) { setPlant(items.getPlant(seed.getCorPlant())); } else { if (plant != null) { if (plant.getCurStage() < plant.getStages()) { plant.incCurStage(1); } else { setFruit(items.getFruit(plant.getCorFruit())); } } } }
public Items.seeds cloneSeed(Items.seeds s) { Items.seeds ret = new Items.seeds(s.getID(), s.getName(), s.getCorPlant()); return(ret); }