當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。