本文整理汇总了Java中net.minecraft.block.material.Material.iron方法的典型用法代码示例。如果您正苦于以下问题:Java Material.iron方法的具体用法?Java Material.iron怎么用?Java Material.iron使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.block.material.Material
的用法示例。
在下文中一共展示了Material.iron方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: hasValidMaterial
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public static boolean hasValidMaterial(World world, int x, int y, int z)
{
Block block = world.getBlock(x, y, z);
// Is the attached block a valid material?
if (block.getMaterial() == Material.clay) { return true; }
else if (block.getMaterial() == Material.cloth) { return true; }
else if (block.getMaterial() == Material.grass) { return true; }
else if (block.getMaterial() == Material.ground) { return true; }
else if (block.getMaterial() == Material.iron) { return true; }
else if (block.getMaterial() == Material.piston) { return true; }
else if (block.getMaterial() == Material.rock) { return true; }
else if (block.getMaterial() == Material.sand) { return true; }
else if (block.getMaterial() == Material.wood) { return true; }
else if (block.getMaterial() == Material.craftedSnow) { return true; }
else if (block.getMaterial() == Material.leaves) { return true; }
// No?
return false;
}
示例2: LeadBlock
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public LeadBlock() {
super(Material.iron);
setHardness(5F);
setResistance(30F);
setHarvestLevel("pickaxe", 2);
setCreativeTab(GrandBlocks.tabGrandBlocks);
setStepSound(soundTypeMetal);
setBlockName("LeadBlock");
setBlockTextureName("steamstell:lead_block");
}
示例3: ChromiumBlock
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public ChromiumBlock() {
super(Material.iron);
setCreativeTab(Technical.tabTechnicalBlocks);
setBlockName("chromiumBlock");
setBlockTextureName(Technical.modName + ":" + getUnlocalizedName().substring(5));
setStepSound(soundTypeMetal);
setHardness(4.5F);
setResistance(9.5F);
setHarvestLevel("pickaxe", 1);
}
示例4: BlastFurnaceAdvanced
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public BlastFurnaceAdvanced(boolean active) {
super(Type.blastFurnaceAdvanced, Material.iron, active);
if(active)
setBlockName("blastFurnaceAdvancedActive");
else
setBlockName("blastFurnaceAdvancedIdle");
}
示例5: UraniumBlock
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public UraniumBlock() {
super(Material.iron);
setHardness(5F);
setResistance(30F);
setHarvestLevel("pickaxe", 2);
setCreativeTab(GrandBlocks.tabGrandBlocks);
setStepSound(soundTypeMetal);
setBlockName("UraniumBlock");
setBlockTextureName("steamstell:uranium_block");
}
示例6: BlastFurnaceMedium
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public BlastFurnaceMedium(boolean active) {
super(Type.blastFurnaceMedium, Material.iron, active);
if(active)
setBlockName("blastFurnaceMediumActive");
else
setBlockName("blastFurnaceMediumIdle");
}
示例7: IronBlock
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public IronBlock() {
super(Material.iron);
setCreativeTab(Technical.tabTechnicalBlocks);
setBlockName("ironBlock");
setBlockTextureName(Technical.modName + ":" + getUnlocalizedName().substring(5));
setStepSound(soundTypeMetal);
setHardness(3.5F);
setResistance(8.0F);
setHarvestLevel("pickaxe", 0);
}
示例8: onBlockActivated
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumFacing side, float hitX, float hitY, float hitZ)
{
if (this.blockMaterial == Material.iron)
{
return true;
}
else
{
state = state.cycleProperty(OPEN);
worldIn.setBlockState(pos, state, 2);
worldIn.playAuxSFXAtEntity(playerIn, ((Boolean)state.getValue(OPEN)).booleanValue() ? 1003 : 1006, pos, 0);
return true;
}
}
示例9: BlockHopper
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public BlockHopper()
{
super(Material.iron, MapColor.stoneColor);
this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.DOWN).withProperty(ENABLED, Boolean.valueOf(true)));
this.setCreativeTab(CreativeTabs.tabRedstone);
this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
}
示例10: BlockBrewingStand
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public BlockBrewingStand()
{
super(Material.iron);
this.setDefaultState(this.blockState.getBaseState().withProperty(HAS_BOTTLE[0], Boolean.valueOf(false)).withProperty(HAS_BOTTLE[1], Boolean.valueOf(false)).withProperty(HAS_BOTTLE[2], Boolean.valueOf(false)));
}
示例11: Centrifuge
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public Centrifuge(boolean active) {
super(Type.centrifuge, Material.iron, active);
}
示例12: HmageFurnaceBlock
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public HmageFurnaceBlock() {
super(Material.iron);
}
示例13: AutoWorkBench
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public AutoWorkBench() {
super(Type.autoWorkBench, Material.iron);
}
示例14: GrabberFast
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public GrabberFast() {
super(Material.iron, "grabberFast");
}
示例15: getStrVsBlock
import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public float getStrVsBlock(ItemStack stack, Block block)
{
return block.getMaterial() != Material.iron && block.getMaterial() != Material.anvil && block.getMaterial() != Material.rock ? super.getStrVsBlock(stack, block) : this.efficiencyOnProperMaterial;
}