diff options
| author | huajijam <strhuaji@gmail.com> | 2019-03-18 20:48:01 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-18 20:48:01 +0800 |
| commit | 847934e3f0ba597f6d43d5fafdd0e6192d007585 (patch) | |
| tree | c82b2784655f51b48c430d0cdd22e70b0523aa11 /src/Java/gtPlusPlus/xmod/bartcrops/crops | |
| parent | 40d7e5da9f5b84213e2c3e4596fdc69b94bd523e (diff) | |
| parent | f93d9fb323a5aee2ed5c30320998f26bc177d707 (diff) | |
| download | GT5-Unofficial-847934e3f0ba597f6d43d5fafdd0e6192d007585.tar.gz GT5-Unofficial-847934e3f0ba597f6d43d5fafdd0e6192d007585.tar.bz2 GT5-Unofficial-847934e3f0ba597f6d43d5fafdd0e6192d007585.zip | |
just fix more bugs
just fix more bugs
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/bartcrops/crops')
| -rw-r--r-- | src/Java/gtPlusPlus/xmod/bartcrops/crops/Crop_Hemp.java | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/xmod/bartcrops/crops/Crop_Hemp.java b/src/Java/gtPlusPlus/xmod/bartcrops/crops/Crop_Hemp.java new file mode 100644 index 0000000000..a921182d66 --- /dev/null +++ b/src/Java/gtPlusPlus/xmod/bartcrops/crops/Crop_Hemp.java @@ -0,0 +1,56 @@ +package gtPlusPlus.xmod.bartcrops.crops; + +import gtPlusPlus.core.item.ModItems; +import gtPlusPlus.core.lib.CORE; +import gtPlusPlus.core.util.math.MathUtils; +import gtPlusPlus.core.util.minecraft.ItemUtils; +import gtPlusPlus.xmod.bartcrops.abstracts.BaseAestheticCrop; +import ic2.api.crops.ICropTile; +import net.minecraft.item.ItemStack; + +public class Crop_Hemp extends BaseAestheticCrop { + + public int tier() { + return 2; + } + + public String name() { + return "Hemp"; + } + + public String discoveredBy() { + return "Alkalus"; + } + + public int growthDuration(ICropTile crop) { + int ret = 550; + + /*if (crop.isBlockBelow(Blocks.dirt) || crop.isBlockBelow(Blocks.flowing_water)) { + ret = 225; + }*/ + + if (CORE.DEBUG) { + ret = 1; + } + + return ret; + } + + public String[] attributes() { + return new String[]{"Green", "Soil", "Orange"}; + } + + public ItemStack getGain(ICropTile crop) { + + ItemStack ret = this.getDisplayItem(); + if (MathUtils.randInt(0, 10) > 8) { + ret = ItemUtils.getSimpleStack(ModItems.itemRope, MathUtils.randInt(1, 3)); + } + + return ret; + } + + public ItemStack getDisplayItem() { + return ItemUtils.getSimpleStack(ModItems.itemRope, 0); + } +}
\ No newline at end of file |
