diff options
| author | Johann Bernhardt <johann.bernhardt@tum.de> | 2021-12-12 19:38:06 +0100 |
|---|---|---|
| committer | Johann Bernhardt <johann.bernhardt@tum.de> | 2021-12-12 19:38:06 +0100 |
| commit | 311ab89f93558233a40079f7cb16605b141b5346 (patch) | |
| tree | c5f44ef47f441a57c5f57aa801f639c7879ed760 /src/Java/gtPlusPlus/xmod/bartcrops/abstracts/BaseHarvestableCrop.java | |
| parent | 896143b96132f5ac54aa8d8f7386f27487e5e530 (diff) | |
| download | GT5-Unofficial-311ab89f93558233a40079f7cb16605b141b5346.tar.gz GT5-Unofficial-311ab89f93558233a40079f7cb16605b141b5346.tar.bz2 GT5-Unofficial-311ab89f93558233a40079f7cb16605b141b5346.zip | |
Move sources and resources
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/bartcrops/abstracts/BaseHarvestableCrop.java')
| -rw-r--r-- | src/Java/gtPlusPlus/xmod/bartcrops/abstracts/BaseHarvestableCrop.java | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/src/Java/gtPlusPlus/xmod/bartcrops/abstracts/BaseHarvestableCrop.java b/src/Java/gtPlusPlus/xmod/bartcrops/abstracts/BaseHarvestableCrop.java deleted file mode 100644 index e877233c67..0000000000 --- a/src/Java/gtPlusPlus/xmod/bartcrops/abstracts/BaseHarvestableCrop.java +++ /dev/null @@ -1,69 +0,0 @@ -package gtPlusPlus.xmod.bartcrops.abstracts; - -import gtPlusPlus.preloader.CORE_Preloader; -import ic2.api.crops.ICropTile; - -public abstract class BaseHarvestableCrop extends BaseCrop { - - public int tier() { - return 2; - } - - public int stat(int n) { - switch (n) { - case 0 : - return 0; - case 1 : - return 4; - case 2 : - return 0; - case 3 : - return 4; - case 4 : - return 0; - default : - return 0; - } - } - - public boolean canGrow(ICropTile crop) { - return crop.getSize() < 3; - } - - public int getOptimalHavestSize(ICropTile crop) { - return 3; - } - - public boolean canBeHarvested(ICropTile crop) { - return crop.getSize() == 3; - } - - public int weightInfluences(ICropTile crop, float humidity, float nutrients, float air) { - return (int) ((double) humidity * 1.2D + (double) nutrients * 0.9D + (double) air * 0.9D); - } - - public int growthDuration(ICropTile crop) { - short r; - if (CORE_Preloader.DEBUG_MODE) { - r = 1; - } else if (crop.getSize() == 2) { - r = 200; - } else { - r = 700; - } - - return r; - } - - public byte getSizeAfterHarvest(ICropTile crop) { - return 2; - } - - public int maxSize() { - return 3; - } - - public String discoveredBy() { - return "Alkalus"; - } -}
\ No newline at end of file |
