9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-29 20:09:20 +00:00

1.4.0 beta

This commit is contained in:
Xiao-MoMi
2022-05-30 17:00:28 +08:00
parent 487a1a439e
commit 9542c91737
24 changed files with 597 additions and 704 deletions

View File

@@ -0,0 +1,45 @@
package net.momirealms.customcrops.utils;
public class Crop {
private final String key;
private final double chance;
private double giantChance;
private String[] seasons;
private boolean willReturn;
private String returnStage;
private boolean willGiant;
private String giant;
public Crop(String key, double chance){
this.key = key;
this.chance = chance;
}
public String getReturnStage(){
return this.returnStage;
}
public String getGiant(){
return this.giant;
}
public boolean getWillReturn(){
return this.willReturn;
}
public boolean getWillGiant(){
return this.willGiant;
}
public String[] getSeasons() {return this.seasons;}
public double getChance() {return this.chance;}
public double getGiantChance() { return this.giantChance; }
public void setWillReturn(boolean b){
this.willReturn = b;
}
public void setReturnStage(String stage){
this.returnStage = stage;
}
public void setSeasons(String[] seasons) { this.seasons = seasons; }
public void setWillGiant(boolean b) { this.willGiant = b; }
public void setGiant(String giant) {this.giant = giant; }
public void setGiantChance(double giantChance) { this.giantChance = giantChance; }
}