Java Code Examples for net.minecraft.init.Blocks.cobblestone()

The following are Jave code examples for showing how to use cobblestone() of the net.minecraft.init.Blocks class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: DecompiledMinecraft   File: BlockSilverfish.java   View Source Code Vote up 6 votes
protected ItemStack createStackedBlock(IBlockState state)
{
    switch ((BlockSilverfish.EnumType)state.getValue(VARIANT))
    {
        case COBBLESTONE:
            return new ItemStack(Blocks.cobblestone);

        case STONEBRICK:
            return new ItemStack(Blocks.stonebrick);

        case MOSSY_STONEBRICK:
            return new ItemStack(Blocks.stonebrick, 1, BlockStoneBrick.EnumType.MOSSY.getMetadata());

        case CRACKED_STONEBRICK:
            return new ItemStack(Blocks.stonebrick, 1, BlockStoneBrick.EnumType.CRACKED.getMetadata());

        case CHISELED_STONEBRICK:
            return new ItemStack(Blocks.stonebrick, 1, BlockStoneBrick.EnumType.CHISELED.getMetadata());

        default:
            return new ItemStack(Blocks.stone);
    }
}
 
Example 2
Project: DecompiledMinecraft   File: BlockSilverfish.java   View Source Code Vote up 6 votes
protected ItemStack createStackedBlock(IBlockState state)
{
    switch ((BlockSilverfish.EnumType)state.getValue(VARIANT))
    {
        case COBBLESTONE:
            return new ItemStack(Blocks.cobblestone);

        case STONEBRICK:
            return new ItemStack(Blocks.stonebrick);

        case MOSSY_STONEBRICK:
            return new ItemStack(Blocks.stonebrick, 1, BlockStoneBrick.EnumType.MOSSY.getMetadata());

        case CRACKED_STONEBRICK:
            return new ItemStack(Blocks.stonebrick, 1, BlockStoneBrick.EnumType.CRACKED.getMetadata());

        case CHISELED_STONEBRICK:
            return new ItemStack(Blocks.stonebrick, 1, BlockStoneBrick.EnumType.CHISELED.getMetadata());

        default:
            return new ItemStack(Blocks.stone);
    }
}
 
Example 3
Project: BaseClient   File: BlockSilverfish.java   View Source Code Vote up 6 votes
protected ItemStack createStackedBlock(IBlockState state)
{
    switch ((BlockSilverfish.EnumType)state.getValue(VARIANT))
    {
        case COBBLESTONE:
            return new ItemStack(Blocks.cobblestone);

        case STONEBRICK:
            return new ItemStack(Blocks.stonebrick);

        case MOSSY_STONEBRICK:
            return new ItemStack(Blocks.stonebrick, 1, BlockStoneBrick.EnumType.MOSSY.getMetadata());

        case CRACKED_STONEBRICK:
            return new ItemStack(Blocks.stonebrick, 1, BlockStoneBrick.EnumType.CRACKED.getMetadata());

        case CHISELED_STONEBRICK:
            return new ItemStack(Blocks.stonebrick, 1, BlockStoneBrick.EnumType.CHISELED.getMetadata());

        default:
            return new ItemStack(Blocks.stone);
    }
}
 
Example 4
Project: BaseClient   File: BlockSilverfish.java   View Source Code Vote up 6 votes
protected ItemStack createStackedBlock(IBlockState state)
{
    switch ((BlockSilverfish.EnumType)state.getValue(VARIANT))
    {
        case COBBLESTONE:
            return new ItemStack(Blocks.cobblestone);

        case STONEBRICK:
            return new ItemStack(Blocks.stonebrick);

        case MOSSY_STONEBRICK:
            return new ItemStack(Blocks.stonebrick, 1, BlockStoneBrick.EnumType.MOSSY.getMetadata());

        case CRACKED_STONEBRICK:
            return new ItemStack(Blocks.stonebrick, 1, BlockStoneBrick.EnumType.CRACKED.getMetadata());

        case CHISELED_STONEBRICK:
            return new ItemStack(Blocks.stonebrick, 1, BlockStoneBrick.EnumType.CHISELED.getMetadata());

        default:
            return new ItemStack(Blocks.stone);
    }
}
 
Example 5
Project: DecompiledMinecraft   File: StructureVillagePieces.java   View Source Code Vote up 5 votes
protected IBlockState func_175847_a(IBlockState p_175847_1_)
{
    if (this.isDesertVillage)
    {
        if (p_175847_1_.getBlock() == Blocks.log || p_175847_1_.getBlock() == Blocks.log2)
        {
            return Blocks.sandstone.getDefaultState();
        }

        if (p_175847_1_.getBlock() == Blocks.cobblestone)
        {
            return Blocks.sandstone.getStateFromMeta(BlockSandStone.EnumType.DEFAULT.getMetadata());
        }

        if (p_175847_1_.getBlock() == Blocks.planks)
        {
            return Blocks.sandstone.getStateFromMeta(BlockSandStone.EnumType.SMOOTH.getMetadata());
        }

        if (p_175847_1_.getBlock() == Blocks.oak_stairs)
        {
            return Blocks.sandstone_stairs.getDefaultState().withProperty(BlockStairs.FACING, p_175847_1_.getValue(BlockStairs.FACING));
        }

        if (p_175847_1_.getBlock() == Blocks.stone_stairs)
        {
            return Blocks.sandstone_stairs.getDefaultState().withProperty(BlockStairs.FACING, p_175847_1_.getValue(BlockStairs.FACING));
        }

        if (p_175847_1_.getBlock() == Blocks.gravel)
        {
            return Blocks.sandstone.getDefaultState();
        }
    }

    return p_175847_1_;
}
 
Example 6
Project: DecompiledMinecraft   File: StructureVillagePieces.java   View Source Code Vote up 5 votes
protected IBlockState func_175847_a(IBlockState p_175847_1_)
{
    if (this.isDesertVillage)
    {
        if (p_175847_1_.getBlock() == Blocks.log || p_175847_1_.getBlock() == Blocks.log2)
        {
            return Blocks.sandstone.getDefaultState();
        }

        if (p_175847_1_.getBlock() == Blocks.cobblestone)
        {
            return Blocks.sandstone.getStateFromMeta(BlockSandStone.EnumType.DEFAULT.getMetadata());
        }

        if (p_175847_1_.getBlock() == Blocks.planks)
        {
            return Blocks.sandstone.getStateFromMeta(BlockSandStone.EnumType.SMOOTH.getMetadata());
        }

        if (p_175847_1_.getBlock() == Blocks.oak_stairs)
        {
            return Blocks.sandstone_stairs.getDefaultState().withProperty(BlockStairs.FACING, p_175847_1_.getValue(BlockStairs.FACING));
        }

        if (p_175847_1_.getBlock() == Blocks.stone_stairs)
        {
            return Blocks.sandstone_stairs.getDefaultState().withProperty(BlockStairs.FACING, p_175847_1_.getValue(BlockStairs.FACING));
        }

        if (p_175847_1_.getBlock() == Blocks.gravel)
        {
            return Blocks.sandstone.getDefaultState();
        }
    }

    return p_175847_1_;
}
 
Example 7
Project: BaseClient   File: StructureVillagePieces.java   View Source Code Vote up 5 votes
protected IBlockState func_175847_a(IBlockState p_175847_1_)
{
    if (this.isDesertVillage)
    {
        if (p_175847_1_.getBlock() == Blocks.log || p_175847_1_.getBlock() == Blocks.log2)
        {
            return Blocks.sandstone.getDefaultState();
        }

        if (p_175847_1_.getBlock() == Blocks.cobblestone)
        {
            return Blocks.sandstone.getStateFromMeta(BlockSandStone.EnumType.DEFAULT.getMetadata());
        }

        if (p_175847_1_.getBlock() == Blocks.planks)
        {
            return Blocks.sandstone.getStateFromMeta(BlockSandStone.EnumType.SMOOTH.getMetadata());
        }

        if (p_175847_1_.getBlock() == Blocks.oak_stairs)
        {
            return Blocks.sandstone_stairs.getDefaultState().withProperty(BlockStairs.FACING, p_175847_1_.getValue(BlockStairs.FACING));
        }

        if (p_175847_1_.getBlock() == Blocks.stone_stairs)
        {
            return Blocks.sandstone_stairs.getDefaultState().withProperty(BlockStairs.FACING, p_175847_1_.getValue(BlockStairs.FACING));
        }

        if (p_175847_1_.getBlock() == Blocks.gravel)
        {
            return Blocks.sandstone.getDefaultState();
        }
    }

    return p_175847_1_;
}
 
Example 8
Project: BaseClient   File: StructureVillagePieces.java   View Source Code Vote up 5 votes
protected IBlockState func_175847_a(IBlockState p_175847_1_)
{
    if (this.isDesertVillage)
    {
        if (p_175847_1_.getBlock() == Blocks.log || p_175847_1_.getBlock() == Blocks.log2)
        {
            return Blocks.sandstone.getDefaultState();
        }

        if (p_175847_1_.getBlock() == Blocks.cobblestone)
        {
            return Blocks.sandstone.getStateFromMeta(BlockSandStone.EnumType.DEFAULT.getMetadata());
        }

        if (p_175847_1_.getBlock() == Blocks.planks)
        {
            return Blocks.sandstone.getStateFromMeta(BlockSandStone.EnumType.SMOOTH.getMetadata());
        }

        if (p_175847_1_.getBlock() == Blocks.oak_stairs)
        {
            return Blocks.sandstone_stairs.getDefaultState().withProperty(BlockStairs.FACING, p_175847_1_.getValue(BlockStairs.FACING));
        }

        if (p_175847_1_.getBlock() == Blocks.stone_stairs)
        {
            return Blocks.sandstone_stairs.getDefaultState().withProperty(BlockStairs.FACING, p_175847_1_.getValue(BlockStairs.FACING));
        }

        if (p_175847_1_.getBlock() == Blocks.gravel)
        {
            return Blocks.sandstone.getDefaultState();
        }
    }

    return p_175847_1_;
}
 
Example 9
Project: DecompiledMinecraft   File: BlockSilverfish.java   View Source Code Vote up 4 votes
public static boolean canContainSilverfish(IBlockState blockState)
{
    Block block = blockState.getBlock();
    return blockState == Blocks.stone.getDefaultState().withProperty(BlockStone.VARIANT, BlockStone.EnumType.STONE) || block == Blocks.cobblestone || block == Blocks.stonebrick;
}
 
Example 10
Project: DecompiledMinecraft   File: BlockSilverfish.java   View Source Code Vote up 4 votes
public static boolean canContainSilverfish(IBlockState blockState)
{
    Block block = blockState.getBlock();
    return blockState == Blocks.stone.getDefaultState().withProperty(BlockStone.VARIANT, BlockStone.EnumType.STONE) || block == Blocks.cobblestone || block == Blocks.stonebrick;
}
 
Example 11
Project: BaseClient   File: BlockSilverfish.java   View Source Code Vote up 4 votes
public static boolean canContainSilverfish(IBlockState blockState)
{
    Block block = blockState.getBlock();
    return blockState == Blocks.stone.getDefaultState().withProperty(BlockStone.VARIANT, BlockStone.EnumType.STONE) || block == Blocks.cobblestone || block == Blocks.stonebrick;
}
 
Example 12
Project: BaseClient   File: BlockSilverfish.java   View Source Code Vote up 4 votes
public static boolean canContainSilverfish(IBlockState blockState)
{
    Block block = blockState.getBlock();
    return blockState == Blocks.stone.getDefaultState().withProperty(BlockStone.VARIANT, BlockStone.EnumType.STONE) || block == Blocks.cobblestone || block == Blocks.stonebrick;
}