Fixed renderer stuff for pillar inserts.
This commit is contained in:
parent
377690e0cf
commit
1cea46e5a3
12 changed files with 145 additions and 35 deletions
|
|
@ -113,16 +113,15 @@ public class BlockImbuedStone extends Block {
|
|||
this.dropXpOnBlockBreak(world, x, y, z, xpDropAmount(meta));
|
||||
}
|
||||
|
||||
//meta specific stuff
|
||||
public int idPicked(World par1World, int par2, int par3, int par4)
|
||||
{
|
||||
return this.blockID;
|
||||
return blockID;
|
||||
}
|
||||
|
||||
public ItemStack getPickBlock(MovingObjectPosition target,World world, int x, int y, int z)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public int getDamageValue(World par1World, int par2, int par3, int par4)
|
||||
{
|
||||
return par1World.getBlockMetadata(par2, par3, par4);
|
||||
}
|
||||
|
||||
public void getSubBlocks(int i,CreativeTabs tab, List list)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package MysticWorld.Blocks;
|
||||
|
||||
import MysticWorld.MysticWorld;
|
||||
import MysticWorld.Lib.RenderIds;
|
||||
import MysticWorld.TileEntity.TileEntityPillarInsert;
|
||||
import net.minecraft.block.BlockContainer;
|
||||
import net.minecraft.block.material.Material;
|
||||
|
|
@ -15,8 +16,8 @@ public class BlockPillarInsert extends BlockContainer {
|
|||
super(id, Material.rock);
|
||||
this.setBlockUnbreakable();
|
||||
this.setResistance(6000000.0F);
|
||||
setCreativeTab(MysticWorld.MysticWorldTab);
|
||||
setBlockBounds(0.15F, 0.0F, 0.15F, 0.85F, 1.0F, 0.85F);
|
||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||
setBlockBounds(0.125F, 0.0F, 0.125F, 0.875F, 1.0F, 0.875F);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -34,9 +35,14 @@ public class BlockPillarInsert extends BlockContainer {
|
|||
@Override
|
||||
public int getRenderType()
|
||||
{
|
||||
return -1;
|
||||
return RenderIds.RENDER_PILLAR_INSERT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRenderBlockPass(){
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean renderAsNormalBlock()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue