mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 19:49:54 +00:00
#1091 begin clean up for Alveary
Still needs to visually update when slabs are added or removed to the top
This commit is contained in:
1 parent
e703536d57
commit
dd65d083cc
26 files changed
+192
-187
No files matched your search
@@ -10,6 +10,10 @@
|
||||
******************************************************************************/
|
||||
package forestry.apiculture.blocks;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import forestry.api.core.Tabs;
|
||||
import forestry.apiculture.items.ItemBlockCandle;
|
||||
import forestry.core.blocks.BlockBase;
|
||||
@@ -22,7 +26,7 @@ public class BlockRegistryApiculture extends BlockRegistry {
|
||||
public final BlockBeehives beehives;
|
||||
public final BlockCandle candle;
|
||||
public final BlockStump stump;
|
||||
public final BlockAlveary alveary;
|
||||
private final Map<BlockAlvearyType, BlockAlveary> alvearyBlockMap;
|
||||
|
||||
public BlockRegistryApiculture() {
|
||||
apiculture = registerBlock(new BlockApiculture(), ItemBlockForestry.class, "apiculture");
|
||||
@@ -36,6 +40,14 @@ public class BlockRegistryApiculture extends BlockRegistry {
|
||||
candle = registerBlock(new BlockCandle(), ItemBlockCandle.class, "candle");
|
||||
stump = registerBlock(new BlockStump(), ItemBlockForestry.class, "stump");
|
||||
|
||||
alveary = registerBlock(new BlockAlveary(), ItemBlockForestry.class, "alveary");
|
||||
alvearyBlockMap = BlockAlveary.create();
|
||||
for (BlockAlveary block : alvearyBlockMap.values()) {
|
||||
registerBlock(block, new ItemBlockForestry(block), "alveary." + block.getAlvearyType());
|
||||
}
|
||||
}
|
||||
|
||||
public ItemStack getAlvearyBlock(BlockAlvearyType type) {
|
||||
BlockAlveary alvearyBlock = alvearyBlockMap.get(type);
|
||||
return new ItemStack(alvearyBlock);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user