From b20fad29ca4e6ad5de25080e212ab5257692afa5 Mon Sep 17 00:00:00 2001 From: Draknyte1 Date: Sat, 27 May 2017 15:41:04 +1000 Subject: + Added some modular base tree (Log/Leaf/Sapling) classes. + Added BoP Rainforest Trees (Still need a bit of work). --- .../blocks/rainforest/LeavesRainforestTree.java | 16 +++++++++++++++ .../bop/blocks/rainforest/LogRainforestTree.java | 24 ++++++++++++++++++++++ .../blocks/rainforest/SaplingRainforestTree.java | 11 ++++++++++ 3 files changed, 51 insertions(+) create mode 100644 src/Java/gtPlusPlus/xmod/bop/blocks/rainforest/LeavesRainforestTree.java create mode 100644 src/Java/gtPlusPlus/xmod/bop/blocks/rainforest/LogRainforestTree.java create mode 100644 src/Java/gtPlusPlus/xmod/bop/blocks/rainforest/SaplingRainforestTree.java (limited to 'src/Java/gtPlusPlus/xmod/bop/blocks/rainforest') diff --git a/src/Java/gtPlusPlus/xmod/bop/blocks/rainforest/LeavesRainforestTree.java b/src/Java/gtPlusPlus/xmod/bop/blocks/rainforest/LeavesRainforestTree.java new file mode 100644 index 0000000000..890775537f --- /dev/null +++ b/src/Java/gtPlusPlus/xmod/bop/blocks/rainforest/LeavesRainforestTree.java @@ -0,0 +1,16 @@ +package gtPlusPlus.xmod.bop.blocks.rainforest; + +import gtPlusPlus.core.util.item.ItemUtils; +import gtPlusPlus.xmod.bop.blocks.base.LeavesBase; +import net.minecraft.init.Items; +import net.minecraft.item.ItemStack; + +public class LeavesRainforestTree extends LeavesBase { + + public LeavesRainforestTree(){ + super("Rainforest Oak", "rainforestoak", new ItemStack[]{ItemUtils.getSimpleStack(Items.apple)}); + this.treeType = new String[] {"rainforest"}; + this.leafType = new String[][] {{"rainforest"},{"rainforest_opaque"}}; + } + +} \ No newline at end of file diff --git a/src/Java/gtPlusPlus/xmod/bop/blocks/rainforest/LogRainforestTree.java b/src/Java/gtPlusPlus/xmod/bop/blocks/rainforest/LogRainforestTree.java new file mode 100644 index 0000000000..6d30caafb7 --- /dev/null +++ b/src/Java/gtPlusPlus/xmod/bop/blocks/rainforest/LogRainforestTree.java @@ -0,0 +1,24 @@ +package gtPlusPlus.xmod.bop.blocks.rainforest; + +import gtPlusPlus.xmod.bop.blocks.base.LogBase; + +public class LogRainforestTree extends LogBase { + + public LogRainforestTree(){ + super("Rainforest Oak", "rainforestoak", new String[]{"rainforest"}); + this.treeType = new String[] {"rainforest"}; + } + + /*@Override + @SideOnly(Side.CLIENT) + protected IIcon getSideIcon(int metaID){ + return this.textureSide[metaID % this.textureSide.length]; + } + + @Override + @SideOnly(Side.CLIENT) + protected IIcon getTopIcon(int metaID){ + return this.textureTop[metaID % this.textureTop.length]; + }*/ + +} \ No newline at end of file diff --git a/src/Java/gtPlusPlus/xmod/bop/blocks/rainforest/SaplingRainforestTree.java b/src/Java/gtPlusPlus/xmod/bop/blocks/rainforest/SaplingRainforestTree.java new file mode 100644 index 0000000000..76c10d1bb5 --- /dev/null +++ b/src/Java/gtPlusPlus/xmod/bop/blocks/rainforest/SaplingRainforestTree.java @@ -0,0 +1,11 @@ +package gtPlusPlus.xmod.bop.blocks.rainforest; + +import gtPlusPlus.xmod.bop.blocks.base.SaplingBase; + +public class SaplingRainforestTree extends SaplingBase { + + public SaplingRainforestTree(){ + super("Rainforest Oak Sapling", "rainforestoak", new String[]{"rainforest"}); + } + +} \ No newline at end of file -- cgit