Java Code Examples for net.minecraft.block.material.Material.glass()

The following are Jave code examples for showing how to use glass() of the net.minecraft.block.material.Material class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: Steam-and-Steel   File: GlassFluidTank.java   Source Code and License Vote up 5 votes
public GlassFluidTank() {
	
	super(Material.glass);
	setBlockName("GlassFluidTank");
	setBlockTextureName("steamstell:glass_fluid_tank");
	setCreativeTab(GrandBlocks.tabGrandBlocks);
	setLightOpacity(0);
	setStepSound(soundTypeGlass);
	setTickRandomly(isBlockContainer);
	setHardness(0.3F);
	setResistance(0.45F);
}
 
Example 2
Project: DecompiledMinecraft   File: TileEntityNote.java   Source Code and License Vote up 5 votes
public void triggerNote(World worldIn, BlockPos p_175108_2_)
{
    if (worldIn.getBlockState(p_175108_2_.up()).getBlock().getMaterial() == Material.air)
    {
        Material material = worldIn.getBlockState(p_175108_2_.down()).getBlock().getMaterial();
        int i = 0;

        if (material == Material.rock)
        {
            i = 1;
        }

        if (material == Material.sand)
        {
            i = 2;
        }

        if (material == Material.glass)
        {
            i = 3;
        }

        if (material == Material.wood)
        {
            i = 4;
        }

        worldIn.addBlockEvent(p_175108_2_, Blocks.noteblock, i, this.note);
    }
}
 
Example 3
Project: DecompiledMinecraft   File: TileEntityNote.java   Source Code and License Vote up 5 votes
public void triggerNote(World worldIn, BlockPos p_175108_2_)
{
    if (worldIn.getBlockState(p_175108_2_.up()).getBlock().getMaterial() == Material.air)
    {
        Material material = worldIn.getBlockState(p_175108_2_.down()).getBlock().getMaterial();
        int i = 0;

        if (material == Material.rock)
        {
            i = 1;
        }

        if (material == Material.sand)
        {
            i = 2;
        }

        if (material == Material.glass)
        {
            i = 3;
        }

        if (material == Material.wood)
        {
            i = 4;
        }

        worldIn.addBlockEvent(p_175108_2_, Blocks.noteblock, i, this.note);
    }
}
 
Example 4
Project: BaseClient   File: TileEntityNote.java   Source Code and License Vote up 5 votes
public void triggerNote(World worldIn, BlockPos p_175108_2_)
{
    if (worldIn.getBlockState(p_175108_2_.up()).getBlock().getMaterial() == Material.air)
    {
        Material material = worldIn.getBlockState(p_175108_2_.down()).getBlock().getMaterial();
        int i = 0;

        if (material == Material.rock)
        {
            i = 1;
        }

        if (material == Material.sand)
        {
            i = 2;
        }

        if (material == Material.glass)
        {
            i = 3;
        }

        if (material == Material.wood)
        {
            i = 4;
        }

        worldIn.addBlockEvent(p_175108_2_, Blocks.noteblock, i, this.note);
    }
}
 
Example 5
Project: BaseClient   File: TileEntityNote.java   Source Code and License Vote up 5 votes
public void triggerNote(World worldIn, BlockPos p_175108_2_)
{
    if (worldIn.getBlockState(p_175108_2_.up()).getBlock().getMaterial() == Material.air)
    {
        Material material = worldIn.getBlockState(p_175108_2_.down()).getBlock().getMaterial();
        int i = 0;

        if (material == Material.rock)
        {
            i = 1;
        }

        if (material == Material.sand)
        {
            i = 2;
        }

        if (material == Material.glass)
        {
            i = 3;
        }

        if (material == Material.wood)
        {
            i = 4;
        }

        worldIn.addBlockEvent(p_175108_2_, Blocks.noteblock, i, this.note);
    }
}
 
Example 6
Project: connor41-etfuturum2   File: SeaLantern.java   Source Code and License Vote up 5 votes
public SeaLantern() {
	super(Material.glass);
	setHardness(0.3F);
	setLightLevel(1.0F);
	setStepSound(soundTypeGlass);
	setBlockTextureName("sea_lantern");
	setBlockName(Utils.getUnlocalisedName("sea_lantern"));
	setCreativeTab(EtFuturum.enablePrismarine ? EtFuturum.creativeTab : null);
}
 
Example 7
Project: Technical   File: BlockBaryteSlate.java   Source Code and License Vote up 5 votes
public BlockBaryteSlate() {
	super(Material.glass);
	setCreativeTab(Technical.tabTechnicalBlocks);
	setBlockName("baryteSlate");
	setBlockTextureName(Technical.modName + ":" + getUnlocalizedName().substring(5));
	setStepSound(soundTypeGlass);
	setHardness(6.0F);
	setResistance(6.0F);
	setHarvestLevel("pickaxe", 1);
	
	opaque = false;
}
 
Example 8
Project: Technical   File: BlockBaryteLimestone.java   Source Code and License Vote up 5 votes
public BlockBaryteLimestone() {
	super(Material.glass);
	setCreativeTab(Technical.tabTechnicalBlocks);
	setBlockName("baryteLimestone");
	setBlockTextureName(Technical.modName + ":" + getUnlocalizedName().substring(5));
	setStepSound(soundTypeGlass);
	setHardness(3.0F);
	setResistance(3.0F);
	setHarvestLevel("pickaxe", 1);
	
	opaque = false;
}
 
Example 9
Project: Technical   File: BlockBaryteOre.java   Source Code and License Vote up 5 votes
public BlockBaryteOre() {
	super(Material.glass);
	setCreativeTab(Technical.tabTechnicalBlocks);
	setBlockName("baryteOre");
	setBlockTextureName(Technical.modName + ":" + getUnlocalizedName().substring(5));
	setStepSound(soundTypeGlass);
	setHardness(6.0F);
	setResistance(6.0F);
	setHarvestLevel("pickaxe", 1);
	
	opaque = false;
}
 
Example 10
Project: DecompiledMinecraft   File: BlockStainedGlassPane.java   Source Code and License Vote up 4 votes
public BlockStainedGlassPane()
{
    super(Material.glass, false);
    this.setDefaultState(this.blockState.getBaseState().withProperty(NORTH, Boolean.valueOf(false)).withProperty(EAST, Boolean.valueOf(false)).withProperty(SOUTH, Boolean.valueOf(false)).withProperty(WEST, Boolean.valueOf(false)).withProperty(COLOR, EnumDyeColor.WHITE));
    this.setCreativeTab(CreativeTabs.tabDecorations);
}
 
Example 11
Project: DecompiledMinecraft   File: BlockBeacon.java   Source Code and License Vote up 4 votes
public BlockBeacon()
{
    super(Material.glass, MapColor.diamondColor);
    this.setHardness(3.0F);
    this.setCreativeTab(CreativeTabs.tabMisc);
}
 
Example 12
Project: DecompiledMinecraft   File: BlockStainedGlassPane.java   Source Code and License Vote up 4 votes
public BlockStainedGlassPane()
{
    super(Material.glass, false);
    this.setDefaultState(this.blockState.getBaseState().withProperty(NORTH, Boolean.valueOf(false)).withProperty(EAST, Boolean.valueOf(false)).withProperty(SOUTH, Boolean.valueOf(false)).withProperty(WEST, Boolean.valueOf(false)).withProperty(COLOR, EnumDyeColor.WHITE));
    this.setCreativeTab(CreativeTabs.tabDecorations);
}
 
Example 13
Project: DecompiledMinecraft   File: BlockBeacon.java   Source Code and License Vote up 4 votes
public BlockBeacon()
{
    super(Material.glass, MapColor.diamondColor);
    this.setHardness(3.0F);
    this.setCreativeTab(CreativeTabs.tabMisc);
}
 
Example 14
Project: BaseClient   File: BlockStainedGlassPane.java   Source Code and License Vote up 4 votes
public BlockStainedGlassPane()
{
    super(Material.glass, false);
    this.setDefaultState(this.blockState.getBaseState().withProperty(NORTH, Boolean.valueOf(false)).withProperty(EAST, Boolean.valueOf(false)).withProperty(SOUTH, Boolean.valueOf(false)).withProperty(WEST, Boolean.valueOf(false)).withProperty(COLOR, EnumDyeColor.WHITE));
    this.setCreativeTab(CreativeTabs.tabDecorations);
}
 
Example 15
Project: BaseClient   File: BlockBeacon.java   Source Code and License Vote up 4 votes
public BlockBeacon()
{
    super(Material.glass, MapColor.diamondColor);
    this.setHardness(3.0F);
    this.setCreativeTab(CreativeTabs.tabMisc);
}
 
Example 16
Project: BaseClient   File: BlockStainedGlassPane.java   Source Code and License Vote up 4 votes
public BlockStainedGlassPane()
{
    super(Material.glass, false);
    this.setDefaultState(this.blockState.getBaseState().withProperty(NORTH, Boolean.valueOf(false)).withProperty(EAST, Boolean.valueOf(false)).withProperty(SOUTH, Boolean.valueOf(false)).withProperty(WEST, Boolean.valueOf(false)).withProperty(COLOR, EnumDyeColor.WHITE));
    this.setCreativeTab(CreativeTabs.tabDecorations);
}
 
Example 17
Project: BaseClient   File: BlockBeacon.java   Source Code and License Vote up 4 votes
public BlockBeacon()
{
    super(Material.glass, MapColor.diamondColor);
    this.setHardness(3.0F);
    this.setCreativeTab(CreativeTabs.tabMisc);
}
 
Example 18
Project: minecraft-quiverbow   File: Main.java   Source Code and License Vote up 4 votes
private void registerBlocks()		// Blocks we can place
{
	fenLight = new FenLight(Material.glass);
	GameRegistry.registerBlock(fenLight, "quiverchevsky_FenLight");
}