summaryrefslogtreecommitdiff
path: root/common/darkknight/jewelrycraft/block
diff options
context:
space:
mode:
authorOnyxDarkKnight <sor1n.iliutza16@gmail.com>2014-02-06 21:44:28 +0200
committerOnyxDarkKnight <sor1n.iliutza16@gmail.com>2014-02-06 21:44:28 +0200
commit9075a22c3e303699db18062ebfc0159cace27c29 (patch)
treeaa772e1e70074134ce85056aa4b67d3f180fef4a /common/darkknight/jewelrycraft/block
parentbd524a6dc2bdca6777659287bfcaa235b3362b44 (diff)
Weeee! New awesome block!
Diffstat (limited to 'common/darkknight/jewelrycraft/block')
-rw-r--r--common/darkknight/jewelrycraft/block/BlockList.java2
-rw-r--r--common/darkknight/jewelrycraft/block/BlockShadow.java39
2 files changed, 41 insertions, 0 deletions
diff --git a/common/darkknight/jewelrycraft/block/BlockList.java b/common/darkknight/jewelrycraft/block/BlockList.java
index 3a17d9a..66631aa 100644
--- a/common/darkknight/jewelrycraft/block/BlockList.java
+++ b/common/darkknight/jewelrycraft/block/BlockList.java
@@ -14,6 +14,7 @@ import darkknight.jewelrycraft.tileentity.TileEntitySmelter;
public class BlockList
{
public static Block shadowOre;
+ public static Block glow;
public static Block smelter;
public static Block molder;
public static Block displayer;
@@ -26,6 +27,7 @@ public class BlockList
if (!isInitialized)
{
shadowOre = new Block(ConfigHandler.idShadowOre, Material.rock).setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundStoneFootstep).setTextureName("jewelrycraft:oreShadow").setUnlocalizedName("Jewelrycraft.oreShadow").setCreativeTab(JewelrycraftMod.jewelrycraft);
+ glow = new BlockShadow(ConfigHandler.idGlow).setUnlocalizedName("Jewelrycraft.glow").setLightValue(1F);
smelter = new BlockSmelter(ConfigHandler.idSmelter, Material.rock).setHardness(5.0F).setResistance(6.0F).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("Jewelrycraft.smelter").setCreativeTab(JewelrycraftMod.jewelrycraft);
molder = new BlockMolder(ConfigHandler.idMolder, Material.rock).setHardness(5.0F).setResistance(6.0F).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("Jewelrycraft.molder").setCreativeTab(JewelrycraftMod.jewelrycraft);
displayer = new BlockDisplayer(ConfigHandler.idDisplayer, Material.iron).setHardness(5.0F).setResistance(6.0F).setStepSound(Block.soundMetalFootstep).setUnlocalizedName("Jewelrycraft.displayer").setCreativeTab(JewelrycraftMod.jewelrycraft);
diff --git a/common/darkknight/jewelrycraft/block/BlockShadow.java b/common/darkknight/jewelrycraft/block/BlockShadow.java
new file mode 100644
index 0000000..ea811ee
--- /dev/null
+++ b/common/darkknight/jewelrycraft/block/BlockShadow.java
@@ -0,0 +1,39 @@
+package darkknight.jewelrycraft.block;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.util.AxisAlignedBB;
+import net.minecraft.world.World;
+
+public class BlockShadow extends Block
+{
+ protected BlockShadow(int par1)
+ {
+ super(par1, Material.air);
+ }
+
+ public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int i)
+ {
+ return null;
+ }
+
+ public boolean isCollidable()
+ {
+ return false;
+ }
+
+ public boolean isOpaqueCube()
+ {
+ return false;
+ }
+
+ public boolean renderAsNormalBlock()
+ {
+ return false;
+ }
+
+ public int getRenderType()
+ {
+ return -1;
+ }
+}