aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/forestry/bees/blocks
diff options
context:
space:
mode:
authorAlkalus <draknyte1@hotmail.com>2017-10-02 14:44:06 +1000
committerAlkalus <draknyte1@hotmail.com>2017-10-02 14:44:06 +1000
commit04cb1921bd93e91fd526800d0cc36ff4b1df616c (patch)
tree83891415efa34465788935bb1a01dd3db7e80d29 /src/Java/gtPlusPlus/xmod/forestry/bees/blocks
parent0a671c03811dce0ed11844cc503db3652c4ee2ef (diff)
downloadGT5-Unofficial-04cb1921bd93e91fd526800d0cc36ff4b1df616c.tar.gz
GT5-Unofficial-04cb1921bd93e91fd526800d0cc36ff4b1df616c.tar.bz2
GT5-Unofficial-04cb1921bd93e91fd526800d0cc36ff4b1df616c.zip
$ Fixed Toluene handling.
% Adjusted Eglin base Compound slightly. - Disabled new, non-working Forestry content.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/forestry/bees/blocks')
-rw-r--r--src/Java/gtPlusPlus/xmod/forestry/bees/blocks/BlockDenseBeeHouse.java24
-rw-r--r--src/Java/gtPlusPlus/xmod/forestry/bees/blocks/FR_BlockRegistry.java24
2 files changed, 48 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/xmod/forestry/bees/blocks/BlockDenseBeeHouse.java b/src/Java/gtPlusPlus/xmod/forestry/bees/blocks/BlockDenseBeeHouse.java
new file mode 100644
index 0000000000..77ee15c5d5
--- /dev/null
+++ b/src/Java/gtPlusPlus/xmod/forestry/bees/blocks/BlockDenseBeeHouse.java
@@ -0,0 +1,24 @@
+
+/*******************************************************************************
+ * Copyright (c) 2011-2014 SirSengir.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the GNU Lesser Public License v3
+ * which accompanies this distribution, and is available at
+ * http://www.gnu.org/licenses/lgpl-3.0.txt
+ *
+ * Various Contributors including, but not limited to:
+ * SirSengir (original work), CovertJaguar, Player, Binnie, MysteriousAges
+ ******************************************************************************/
+package gtPlusPlus.xmod.forestry.bees.blocks;
+
+import forestry.apiculture.blocks.BlockApicultureType;
+import forestry.core.blocks.BlockBase;
+import gtPlusPlus.core.creative.AddToCreativeTab;
+
+public class BlockDenseBeeHouse extends BlockBase<BlockApicultureType> {
+ public BlockDenseBeeHouse() {
+ super();
+ setCreativeTab(AddToCreativeTab.tabBOP);
+ setHarvestLevel("axe", 0);
+ }
+} \ No newline at end of file
diff --git a/src/Java/gtPlusPlus/xmod/forestry/bees/blocks/FR_BlockRegistry.java b/src/Java/gtPlusPlus/xmod/forestry/bees/blocks/FR_BlockRegistry.java
new file mode 100644
index 0000000000..f896dcd05c
--- /dev/null
+++ b/src/Java/gtPlusPlus/xmod/forestry/bees/blocks/FR_BlockRegistry.java
@@ -0,0 +1,24 @@
+package gtPlusPlus.xmod.forestry.bees.blocks;
+
+import cpw.mods.fml.common.registry.GameRegistry;
+import forestry.core.utils.StringUtil;
+import forestry.plugins.PluginManager;
+import net.minecraft.block.Block;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.oredict.OreDictionary;
+
+public abstract class FR_BlockRegistry {
+ protected static <T extends Block> T registerBlock(T block, Class<? extends ItemBlock> itemClass, String name) {
+ if (PluginManager.getStage() != PluginManager.Stage.SETUP) {
+ throw new RuntimeException("Tried to register Block outside of Setup");
+ }
+ block.setBlockName("for." + name);
+ GameRegistry.registerBlock(block, itemClass, StringUtil.cleanBlockName(block));
+ return block;
+ }
+
+ protected static void registerOreDictWildcard(String oreDictName, Block block) {
+ OreDictionary.registerOre(oreDictName, new ItemStack(block, 1, 32767));
+ }
+} \ No newline at end of file