42 lines
636 B
Java
42 lines
636 B
Java
package ee.lunasqu.clickharvest;
|
|
|
|
import org.bukkit.Material;
|
|
|
|
public class Harvestable {
|
|
private Material crop;
|
|
private Material seed;
|
|
private int growth;
|
|
|
|
public Harvestable(Material crop, Material seed, int growth) {
|
|
this.setCrop(crop);
|
|
this.setSeed(seed);
|
|
this.setGrowth(growth);
|
|
}
|
|
|
|
public Material getCrop() {
|
|
return crop;
|
|
}
|
|
|
|
public void setCrop(Material crop) {
|
|
this.crop = crop;
|
|
}
|
|
|
|
public Material getSeed() {
|
|
return seed;
|
|
}
|
|
|
|
public void setSeed(Material seed) {
|
|
this.seed = seed;
|
|
}
|
|
|
|
public int getGrowth() {
|
|
return growth;
|
|
}
|
|
|
|
public void setGrowth(int growth) {
|
|
this.growth = growth;
|
|
}
|
|
|
|
|
|
}
|