aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/bop/blocks/pine/LeavesPineTree.java
diff options
context:
space:
mode:
authorAlkalus <Draknyte1@hotmail.com>2020-03-31 16:35:15 +0100
committerAlkalus <Draknyte1@hotmail.com>2020-03-31 16:35:15 +0100
commit2c4a94b808c61d66163d9969017c2819ddb2c5ae (patch)
tree3af0f3ca11bb52b3183ef100e4dc6892a76f83e7 /src/Java/gtPlusPlus/xmod/bop/blocks/pine/LeavesPineTree.java
parent09b08b073aea41bfbdf189c88cc722912952ea6d (diff)
downloadGT5-Unofficial-2c4a94b808c61d66163d9969017c2819ddb2c5ae.tar.gz
GT5-Unofficial-2c4a94b808c61d66163d9969017c2819ddb2c5ae.tar.bz2
GT5-Unofficial-2c4a94b808c61d66163d9969017c2819ddb2c5ae.zip
+ Added a Pine Tree.
+ Oredict BoP Pinecone if it exists. $ Fixed Algae Farm controller recipe. $ Fixed bug where getOrePrefixStack(rod) would return null. $ Fixed a bug where getItemStackFromFQRN didn't work correctly.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/bop/blocks/pine/LeavesPineTree.java')
-rw-r--r--src/Java/gtPlusPlus/xmod/bop/blocks/pine/LeavesPineTree.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/xmod/bop/blocks/pine/LeavesPineTree.java b/src/Java/gtPlusPlus/xmod/bop/blocks/pine/LeavesPineTree.java
new file mode 100644
index 0000000000..c942db14cf
--- /dev/null
+++ b/src/Java/gtPlusPlus/xmod/bop/blocks/pine/LeavesPineTree.java
@@ -0,0 +1,36 @@
+package gtPlusPlus.xmod.bop.blocks.pine;
+
+import java.util.Random;
+
+import gtPlusPlus.api.objects.Logger;
+import gtPlusPlus.core.item.chemistry.AgriculturalChem;
+import gtPlusPlus.core.util.math.MathUtils;
+import gtPlusPlus.core.util.minecraft.ItemUtils;
+import gtPlusPlus.xmod.bop.blocks.BOP_Block_Registrator;
+import gtPlusPlus.xmod.bop.blocks.base.LeavesBase;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemStack;
+import net.minecraft.world.World;
+
+public class LeavesPineTree extends LeavesBase {
+
+ public LeavesPineTree(){
+ super("Pine", "pine", new ItemStack[]{});
+ this.treeType = new String[] {"pine"};
+ this.leafType = new String[][] {{"pine"},{"pine_opaque"}};
+ }
+
+ @Override
+ public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_){
+ return Item.getItemFromBlock(BOP_Block_Registrator.sapling_Pine);
+ }
+
+ @Override//Drops when Leaf is broken
+ protected void func_150124_c(World world, int x, int y, int z, int meta, int randomChance){
+ Logger.INFO("Dropping Bonus Drops");
+ if (MathUtils.randInt(0, 10) >= 9) {
+ this.dropBlockAsItem(world, x, y, z, ItemUtils.getSimpleStack(AgriculturalChem.mPinecone, MathUtils.randInt(1, 4)));
+ }
+ }
+
+} \ No newline at end of file