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


Java Material.iron方法代码示例

本文整理汇总了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;
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:21,代码来源:Helper.java

示例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");
	
}
 
开发者ID:grand-mine-inc,项目名称:Steam-and-Steel,代码行数:13,代码来源:LeadBlock.java

示例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);
}
 
开发者ID:viddeno,项目名称:Technical,代码行数:11,代码来源:ChromiumBlock.java

示例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");
}
 
开发者ID:viddeno,项目名称:Technical,代码行数:8,代码来源:BlastFurnaceAdvanced.java

示例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");
	
}
 
开发者ID:grand-mine-inc,项目名称:Steam-and-Steel,代码行数:13,代码来源:UraniumBlock.java

示例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");
}
 
开发者ID:viddeno,项目名称:Technical,代码行数:8,代码来源:BlastFurnaceMedium.java

示例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);
}
 
开发者ID:viddeno,项目名称:Technical,代码行数:11,代码来源:IronBlock.java

示例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;
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:15,代码来源:BlockTrapDoor.java

示例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);
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:8,代码来源:BlockHopper.java

示例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)));
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:6,代码来源:BlockBrewingStand.java

示例11: Centrifuge

import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public Centrifuge(boolean active) {
	super(Type.centrifuge, Material.iron, active);
}
 
开发者ID:viddeno,项目名称:Technical,代码行数:4,代码来源:Centrifuge.java

示例12: HmageFurnaceBlock

import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public HmageFurnaceBlock() {
  super(Material.iron);
}
 
开发者ID:Rires-Magica,项目名称:HMAGEMOD,代码行数:4,代码来源:HmageFurnaceBlock.java

示例13: AutoWorkBench

import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public AutoWorkBench() {
	super(Type.autoWorkBench, Material.iron);
}
 
开发者ID:viddeno,项目名称:Technical,代码行数:4,代码来源:AutoWorkBench.java

示例14: GrabberFast

import net.minecraft.block.material.Material; //导入方法依赖的package包/类
public GrabberFast() {
	super(Material.iron, "grabberFast");
}
 
开发者ID:viddeno,项目名称:Technical,代码行数:4,代码来源:GrabberFast.java

示例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;
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:5,代码来源:ItemPickaxe.java


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