当前位置: 首页>>代码示例>>Java>>正文


Java Material.glass方法代码示例

本文整理汇总了Java中net.minecraft.block.material.Material.glass方法的典型用法代码示例。如果您正苦于以下问题:Java Material.glass方法的具体用法?Java Material.glass怎么用?Java Material.glass使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.minecraft.block.material.Material的用法示例。


在下文中一共展示了Material.glass方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: GlassFluidTank

import net.minecraft.block.material.Material; //导入方法依赖的package包/类
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);
}
 
开发者ID:grand-mine-inc,项目名称:Steam-and-Steel,代码行数:13,代码来源:GlassFluidTank.java

示例2: SeaLantern

import net.minecraft.block.material.Material; //导入方法依赖的package包/类
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);
}
 
开发者ID:jm-organization,项目名称:connor41-etfuturum2,代码行数:10,代码来源:SeaLantern.java

示例3: triggerNote

import net.minecraft.block.material.Material; //导入方法依赖的package包/类
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);
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:31,代码来源:TileEntityNote.java

示例4: BlockBaryteSlate

import net.minecraft.block.material.Material; //导入方法依赖的package包/类
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;
}
 
开发者ID:viddeno,项目名称:Technical,代码行数:13,代码来源:BlockBaryteSlate.java

示例5: BlockBaryteLimestone

import net.minecraft.block.material.Material; //导入方法依赖的package包/类
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;
}
 
开发者ID:viddeno,项目名称:Technical,代码行数:13,代码来源:BlockBaryteLimestone.java

示例6: BlockBaryteOre

import net.minecraft.block.material.Material; //导入方法依赖的package包/类
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;
}
 
开发者ID:viddeno,项目名称:Technical,代码行数:13,代码来源:BlockBaryteOre.java

示例7: BlockStainedGlassPane

import net.minecraft.block.material.Material; //导入方法依赖的package包/类
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);
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:7,代码来源:BlockStainedGlassPane.java

示例8: BlockBeacon

import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public BlockBeacon()
{
    super(Material.glass, MapColor.diamondColor);
    this.setHardness(3.0F);
    this.setCreativeTab(CreativeTabs.tabMisc);
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:7,代码来源:BlockBeacon.java

示例9: registerBlocks

import net.minecraft.block.material.Material; //导入方法依赖的package包/类
private void registerBlocks()		// Blocks we can place
{
	fenLight = new FenLight(Material.glass);
	GameRegistry.registerBlock(fenLight, "quiverchevsky_FenLight");
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:6,代码来源:Main.java


注:本文中的net.minecraft.block.material.Material.glass方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。