Java Code Examples for net.minecraft.block.material.Material#IRON
The following examples show how to use
net.minecraft.block.material.Material#IRON .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BlockCharger.java From Cyberware with MIT License | 6 votes |
public BlockCharger() { super(Material.IRON); setHardness(5.0F); setResistance(10.0F); setSoundType(SoundType.METAL); String name = "charger"; this.setRegistryName(name); GameRegistry.register(this); ItemBlock ib = new ItemBlockCyberware(this); ib.setRegistryName(name); GameRegistry.register(ib); this.setUnlocalizedName(Cyberware.MODID + "." + name); this.setCreativeTab(Cyberware.creativeTab); GameRegistry.registerTileEntity(TileEntityCharger.class, Cyberware.MODID + ":" + name); CyberwareContent.blocks.add(this); }
Example 2
Source File: BlockTofuStairs.java From TofuCraftReload with MIT License | 6 votes |
/** * Ticks the block if it's been scheduled */ @Override public void updateTick(World par1World, BlockPos pos, IBlockState state, Random par5Random) { super.updateTick(par1World, pos, state, par5Random); if (isFragile) { IBlockState weightBlock = par1World.getBlockState(pos.up()); if (weightBlock != null) { if (weightBlock.getMaterial() == Material.ROCK || weightBlock.getMaterial() == Material.IRON) { dropBlockAsItem(par1World, pos, state, 0); par1World.setBlockToAir(pos); } } } }
Example 3
Source File: BlockComponentBox.java From Cyberware with MIT License | 6 votes |
public BlockComponentBox() { super(Material.IRON); setHardness(5.0F); setResistance(10.0F); setSoundType(SoundType.METAL); String name = "componentBox"; this.setRegistryName(name); GameRegistry.register(this); ib = new ItemComponentBox(this); ib.setRegistryName(name); GameRegistry.register(ib); this.setUnlocalizedName(Cyberware.MODID + "." + name); this.setCreativeTab(Cyberware.creativeTab); GameRegistry.registerTileEntity(TileEntityComponentBox.class, Cyberware.MODID + ":" + name); CyberwareContent.items.add(ib); this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH)); }
Example 4
Source File: BlockBeacon.java From Cyberware with MIT License | 6 votes |
public BlockBeacon() { super(Material.IRON); setHardness(5.0F); setResistance(10.0F); setSoundType(SoundType.METAL); String name = "beacon"; this.setRegistryName(name); GameRegistry.register(this); ItemBlock ib = new ItemBlockCyberware(this, "cyberware.tooltip.beacon"); ib.setRegistryName(name); GameRegistry.register(ib); this.setUnlocalizedName(Cyberware.MODID + "." + name); this.setCreativeTab(Cyberware.creativeTab); GameRegistry.registerTileEntity(TileEntityBeacon.class, Cyberware.MODID + ":" + name); CyberwareContent.blocks.add(this); }
Example 5
Source File: BlockMetalDoor.java From BaseMetals with GNU Lesser General Public License v2.1 | 5 votes |
public BlockMetalDoor(MetalMaterial metal) { super((metal.getToolHarvestLevel() > 0) ? Material.IRON : Material.ROCK); this.setSoundType(SoundType.METAL); this.metal = metal; this.blockHardness = metal.getMetalBlockHardness(); this.blockResistance = metal.getBlastResistance(); this.setHarvestLevel("pickaxe", metal.getRequiredHarvestLevel()); this.disableStats(); }
Example 6
Source File: BlockMachineCasing.java From GregTech with GNU Lesser General Public License v3.0 | 5 votes |
public BlockMachineCasing() { super(Material.IRON); setUnlocalizedName("machine_casing"); setHardness(4.0f); setResistance(8.0f); setSoundType(SoundType.METAL); setHarvestLevel("wrench", 2); setDefaultState(getState(MachineCasingType.ULV)); }
Example 7
Source File: BlockWarningSign.java From GregTech with GNU Lesser General Public License v3.0 | 5 votes |
public BlockWarningSign() { super(Material.IRON); setUnlocalizedName("warning_sign"); setHardness(2.0f); setResistance(3.0f); setSoundType(SoundType.METAL); setHarvestLevel("pickaxe", 1); setDefaultState(getState(SignType.YELLOW_STRIPES)); }
Example 8
Source File: BlockAggregator.java From TofuCraftReload with MIT License | 5 votes |
public BlockAggregator() { super(Material.IRON); setCreativeTab(CommonProxy.tab); this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH)); this.setHardness(5.0F); this.setResistance(12.0F); }
Example 9
Source File: MachineCase.java From EmergingTechnology with MIT License | 5 votes |
public MachineCase() { super(Material.IRON); this.setHardness(1.0f); this.setRegistryName(EmergingTechnology.MODID, _name); this.setUnlocalizedName(EmergingTechnology.MODID + "." + _name); this.setCreativeTab(EmergingTechnology.TECHNOLOGYTAB); this.setSoundType(SoundType.METAL); }
Example 10
Source File: BlockBeaconPost.java From Cyberware with MIT License | 5 votes |
public BlockBeaconPost() { super(Material.IRON); setHardness(5.0F); setResistance(10.0F); setSoundType(SoundType.METAL); String name = "radioPost"; this.setRegistryName(name); GameRegistry.register(this); ItemBlock ib = new ItemBlockCyberware(this, "cyberware.tooltip.beaconPost.0", "cyberware.tooltip.beaconPost.1", "cyberware.tooltip.beaconPost.2"); ib.setRegistryName(name); GameRegistry.register(ib); this.setUnlocalizedName(Cyberware.MODID + "." + name); this.setCreativeTab(Cyberware.creativeTab); CyberwareContent.blocks.add(this); GameRegistry.registerTileEntity(TileEntityBeaconPost.class, Cyberware.MODID + ":" + name); GameRegistry.registerTileEntity(TileEntityBeaconPostMaster.class, Cyberware.MODID + ":" + name + "_master"); this.setDefaultState(this.blockState.getBaseState() .withProperty(TRANSFORMED, 0) .withProperty(NORTH, Boolean.valueOf(false)) .withProperty(EAST, Boolean.valueOf(false)) .withProperty(SOUTH, Boolean.valueOf(false)) .withProperty(WEST, Boolean.valueOf(false))); }
Example 11
Source File: ToolPickaxe.java From GregTech with GNU Lesser General Public License v3.0 | 5 votes |
@Override public boolean canMineBlock(IBlockState block, ItemStack stack) { String tool = block.getBlock().getHarvestTool(block); return (tool != null && tool.equals("pickaxe")) || block.getMaterial() == Material.ROCK || block.getMaterial() == Material.IRON || block.getMaterial() == Material.ANVIL || block.getMaterial() == Material.GLASS; }
Example 12
Source File: BlockMetalBlock.java From BaseMetals with GNU Lesser General Public License v2.1 | 5 votes |
public BlockMetalBlock(MetalMaterial metal, boolean glows) { super(Material.IRON); this.setSoundType(SoundType.METAL); this.fullBlock = true; this.lightOpacity = 255; this.translucent = false; this.metal = metal; this.blockHardness = metal.getMetalBlockHardness(); this.blockResistance = metal.getBlastResistance(); this.setHarvestLevel("pickaxe", metal.getRequiredHarvestLevel()); this.setCreativeTab(CreativeTabs.BUILDING_BLOCKS); if(glows) this.setLightLevel(0.5f); }
Example 13
Source File: GTBlockBaseConnect.java From GT-Classic with GNU Lesser General Public License v3.0 | 4 votes |
public GTBlockBaseConnect() { super(Material.IRON); }
Example 14
Source File: BlockTFBattery.java From TofuCraftReload with MIT License | 4 votes |
public BlockTFBattery() { super(Material.IRON); setCreativeTab(CommonProxy.tab); this.setHardness(5.0F); this.setResistance(12.0F); }
Example 15
Source File: TidalGenerator.java From EmergingTechnology with MIT License | 4 votes |
public TidalGenerator() { super(Material.IRON, "tidalgenerator"); this.setSoundType(SoundType.METAL); setDefaultState(blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH)); }
Example 16
Source File: Wind.java From EmergingTechnology with MIT License | 4 votes |
public Wind() { super(Material.IRON, "wind"); this.setSoundType(SoundType.METAL); setDefaultState(blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH)); }
Example 17
Source File: Battery.java From EmergingTechnology with MIT License | 4 votes |
public Battery() { super(Material.IRON, "battery"); this.setSoundType(SoundType.METAL); setDefaultState(blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH)); }
Example 18
Source File: ItemJackHammer.java From AdvancedRocketry with MIT License | 4 votes |
public float getStrVsBlock(ItemStack stack, IBlockState state) { return state.getMaterial() == Material.IRON || state.getMaterial() == Material.ROCK || state.getMaterial() == MaterialGeode.geode ? this.efficiencyOnProperMaterial : super.getStrVsBlock(stack, state); }
Example 19
Source File: BlockTataraSmelting.java From Sakura_mod with MIT License | 4 votes |
public BlockTataraSmelting() { super(Material.IRON,true); this.setDefaultState(this.blockState.getBaseState().withProperty(this.getTimerProperty(), Integer.valueOf(0))); this.setTickRandomly(true); this.setHarvestLevel("forging_hammer", 1); }
Example 20
Source File: ShipCore.java From CommunityMod with GNU Lesser General Public License v2.1 | 4 votes |
public ShipCore() { super(Material.IRON); setRegistryName("shipcore"); setTranslationKey(CommunityGlobals.MOD_ID + ".shipcore"); setCreativeTab(CommunityGlobals.TAB); }