本文整理匯總了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);
}
示例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);
}
示例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);
}
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例8: BlockBeacon
import net.minecraft.block.material.Material; //導入方法依賴的package包/類
public BlockBeacon()
{
super(Material.glass, MapColor.diamondColor);
this.setHardness(3.0F);
this.setCreativeTab(CreativeTabs.tabMisc);
}
示例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");
}