本文整理汇总了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");
}