Mopped up dat purple drank
This commit is contained in:
parent
02e6be9d0e
commit
a03d865d4d
13 changed files with 340 additions and 605 deletions
|
|
@ -8,6 +8,7 @@ import net.minecraft.block.material.Material;
|
|||
import net.minecraft.client.renderer.texture.IconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.item.EntityXPOrb;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.Icon;
|
||||
|
|
@ -186,6 +187,16 @@ public class BlockBase extends Block
|
|||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isBlockSolidOnSide(World world, int x, int y, int z, ForgeDirection side)
|
||||
{
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if(meta == 12)
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
public static int BlackSoulstoneDrops(int par1, Random random, int par3)
|
||||
{
|
||||
int rand = random.nextInt(2);
|
||||
|
|
@ -197,16 +208,6 @@ public class BlockBase extends Block
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isBlockSolidOnSide(World world, int x, int y, int z, ForgeDirection side)
|
||||
{
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if(meta == 12)
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
public static int RedSoulstoneDrops(int par1, Random random, int par3)
|
||||
{
|
||||
int rand = random.nextInt(4);
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ public class BlockHandler {
|
|||
|
||||
public static Block BlockBase;
|
||||
|
||||
public static void init()
|
||||
public static void Initialize()
|
||||
{
|
||||
BlockBase = new BlockBase(BlockID.BASEID).setStepSound(Block.soundStoneFootstep);
|
||||
GameRegistry.registerBlock(BlockBase, ItemBlockBase.class, "Base Blocks");
|
||||
|
|
|
|||
|
|
@ -12,23 +12,26 @@ import net.minecraft.item.ItemStack;
|
|||
import net.minecraft.util.Icon;
|
||||
import net.minecraft.util.MathHelper;
|
||||
|
||||
public class ItemBlockBase extends ItemBlock {
|
||||
|
||||
public class ItemBlockBase extends ItemBlock
|
||||
{
|
||||
public static String[] BLOCK_NAMES = new String[] {"Adamantine Ore", "Amethyst Ore", "Iridium Ore", "Mithril Ore", "Tourmaline Ore", "Topaz Ore", "Verdite Ore", "Bloodstone", "Black Soulstone",
|
||||
"Blue Soulstone", "Red Soulstone", "Agate Ore", "Reinforced Glass"};
|
||||
|
||||
public ItemBlockBase(int par1) {
|
||||
public ItemBlockBase(int par1)
|
||||
{
|
||||
super(par1);
|
||||
setMaxDamage(0);
|
||||
setHasSubtypes(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedName(ItemStack itemStack) {
|
||||
public String getUnlocalizedName(ItemStack itemStack)
|
||||
{
|
||||
int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, BLOCK_NAMES.length);
|
||||
return super.getUnlocalizedName() + BLOCK_NAMES[meta];
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMetadata(int par1)
|
||||
{
|
||||
return par1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue