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:
45
src/main/java/net/momirealms/customcrops/utils/Crop.java
Normal file
45
src/main/java/net/momirealms/customcrops/utils/Crop.java
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user