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


Java ArmorMaterial.IRON属性代码示例

本文整理汇总了Java中net.minecraft.item.ItemArmor.ArmorMaterial.IRON属性的典型用法代码示例。如果您正苦于以下问题:Java ArmorMaterial.IRON属性的具体用法?Java ArmorMaterial.IRON怎么用?Java ArmorMaterial.IRON使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在net.minecraft.item.ItemArmor.ArmorMaterial的用法示例。


在下文中一共展示了ArmorMaterial.IRON属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: registerGlowingMaterials

private static void registerGlowingMaterials() {
  ArmorMaterial mimicArmor = ArmorMaterial.IRON;
  MaterialRegistry.glowingArmorMaterial = EnumHelper.addArmorMaterial(GLOWING, Const.MODRES + GLOWING,
      ironDurability, // affects DURABILITY  
      new int[] {
          mimicArmor.getDamageReductionAmount(EntityEquipmentSlot.FEET),
          mimicArmor.getDamageReductionAmount(EntityEquipmentSlot.LEGS),
          mimicArmor.getDamageReductionAmount(EntityEquipmentSlot.CHEST),
          mimicArmor.getDamageReductionAmount(EntityEquipmentSlot.HEAD)
      },
      mimicArmor.getEnchantability() + 1,
      mimicArmor.getSoundEvent(),
      mimicArmor.getToughness() + 1);
  MaterialRegistry.glowingArmorMaterial.repairMaterial = new ItemStack(Blocks.GLOWSTONE);
}
 
开发者ID:PrinceOfAmber,项目名称:Cyclic,代码行数:15,代码来源:MaterialRegistry.java

示例2: registerMiningHelmets

private static void registerMiningHelmets() {
    miningHelmetLamp = new ItemMiningLamp(miningHelmetLampId).setUnlocalizedName(ItemLib.MINING_HELMET_LAMP).setTextureName(ResourceLib.MINING_HELMET_LAMP);
    miningHelmetIron = new ItemMiningHelmet(miningHelmetIronId, ArmorMaterial.IRON, 2, ItemLib.MINING_HELMET_IRON, ResourceLib.MINING_HELMET_IRON);
    miningHelmetGold = new ItemMiningHelmet(miningHelmetGoldId, ArmorMaterial.GOLD, 4, ItemLib.MINING_HELMET_GOLD, ResourceLib.MINING_HELMET_GOLD);
    miningHelmetDiamond = new ItemMiningHelmet(miningHelmetDiamondId, ArmorMaterial.DIAMOND, 3, ItemLib.MINING_HELMET_DIAMOND, ResourceLib.MINING_HELMET_DIAMOND);

    GameRegistry.registerItem(miningHelmetLamp,
                              ItemLib.MINING_HELMET_LAMP);
    GameRegistry.registerItem(miningHelmetIron,
                              ItemLib.MINING_HELMET_IRON);
    GameRegistry.registerItem(miningHelmetGold,
                              ItemLib.MINING_HELMET_GOLD);
    GameRegistry.registerItem(miningHelmetDiamond,
                              ItemLib.MINING_HELMET_DIAMOND);
}
 
开发者ID:SlimeVoid,项目名称:TheMinersFriend,代码行数:15,代码来源:TMFCore.java

示例3: registerItems

/**
 * Just a shortcut method to register items and keep code cleaner.
 */
public static void registerItems() {
	ToolMaterial bronzeMaterial = EnumHelper.addToolMaterial("bronze", 2, 350, 6.5F, 2.2F, 10);
	ToolMaterial steelMaterial = EnumHelper.addToolMaterial("steel", 3, 700, 7.0F, 2.7F, 12);
	
	//ingots
	ItemList.copper_ingot = new SimpleItem("copper_ingot");
	ItemList.tin_ingot = new SimpleItem("tin_ingot");
	ItemList.bronze_ingot = new SimpleItem("bronze_ingot");
	ItemList.steel_ingot = new SimpleItem("steel_ingot");
	
	//bronze tools
	ItemList.bronze_sword = (ItemSword) new ItemSword(bronzeMaterial).setUnlocalizedName("bronze_sword").setCreativeTab(FutureCraft.tabFutureCraft);
	GameRegistry.registerItem(ItemList.bronze_sword, "bronze_sword");
	
	ItemList.bronze_shovel = (ItemSpade) new ItemSpade(bronzeMaterial).setUnlocalizedName("bronze_shovel").setCreativeTab(FutureCraft.tabFutureCraft);
	GameRegistry.registerItem(ItemList.bronze_shovel, "bronze_shovel");
	
	ItemList.bronze_axe = (ItemAxe) new SimpleAxe(bronzeMaterial).setUnlocalizedName("bronze_axe").setCreativeTab(FutureCraft.tabFutureCraft);
	GameRegistry.registerItem(ItemList.bronze_axe, "bronze_axe");
	
	ItemList.bronze_pickaxe = (ItemPickaxe) new SimplePickaxe(bronzeMaterial).setUnlocalizedName("bronze_pickaxe").setCreativeTab(FutureCraft.tabFutureCraft);
	GameRegistry.registerItem(ItemList.bronze_pickaxe, "bronze_pickaxe");
	
	ItemList.bronze_hoe = (ItemHoe) new ItemHoe(bronzeMaterial).setUnlocalizedName("bronze_hoe").setCreativeTab(FutureCraft.tabFutureCraft);
	GameRegistry.registerItem(ItemList.bronze_hoe, "bronze_hoe");
	
	//steel tools
	ItemList.steel_sword = (ItemSword) new ItemSword(steelMaterial).setUnlocalizedName("steel_sword").setCreativeTab(FutureCraft.tabFutureCraft);
	GameRegistry.registerItem(ItemList.steel_sword, "steel_sword");
			
	ItemList.steel_shovel = (ItemSpade) new ItemSpade(steelMaterial).setUnlocalizedName("steel_shovel").setCreativeTab(FutureCraft.tabFutureCraft);
	GameRegistry.registerItem(ItemList.steel_shovel, "steel_shovel");
			
	ItemList.steel_axe = (ItemAxe) new SimpleAxe(steelMaterial).setUnlocalizedName("steel_axe").setCreativeTab(FutureCraft.tabFutureCraft);
	GameRegistry.registerItem(ItemList.steel_axe, "steel_axe");
			
	ItemList.steel_pickaxe = (ItemPickaxe) new SimplePickaxe(steelMaterial).setUnlocalizedName("steel_pickaxe").setCreativeTab(FutureCraft.tabFutureCraft);
	GameRegistry.registerItem(ItemList.steel_pickaxe, "steel_pickaxe");
			
	ItemList.steel_hoe = (ItemHoe) new ItemHoe(steelMaterial).setUnlocalizedName("steel_hoe").setCreativeTab(FutureCraft.tabFutureCraft);
	GameRegistry.registerItem(ItemList.steel_hoe, "steel_hoe");
	
	//space suit
	ItemList.space_suit_helmet = new ItemSpaceSuit(ArmorMaterial.IRON, 2, 0);
	GameRegistry.registerItem(ItemList.space_suit_helmet, "space_suit_helmet");
	
	ItemList.space_suit_chestplate = new ItemSpaceSuit(ArmorMaterial.IRON, 2, 1);
	GameRegistry.registerItem(ItemList.space_suit_chestplate, "space_suit_chestplate");
	
	ItemList.space_suit_leggings = new ItemSpaceSuit(ArmorMaterial.IRON, 2, 2);
	GameRegistry.registerItem(ItemList.space_suit_leggings, "space_suit_leggings");
	
	ItemList.space_suit_boots = new ItemSpaceSuit(ArmorMaterial.IRON, 2, 3);
	GameRegistry.registerItem(ItemList.space_suit_boots, "space_suit_boots");
	
	//misc
	ItemList.stone_channel = new SimpleItem("stone_channel");
	ItemList.stone_cast = new SimpleItem("stone_cast");
	ItemList.multimeter = new ItemMultimeter("multimeter");
	ItemList.itemLaser = new ItemLaser("laser");
	ItemList.creative_tab = new SimpleItem("creative_tab", false);
}
 
开发者ID:TEAMModding,项目名称:FutureCraft,代码行数:65,代码来源:StartupCommon.java

示例4: init

public static void init() {
    // Crafting
    atomicFrame = new ItemCrafting(Strings.ATOMIC_FRAME);
    ironBar = new ItemCrafting(Strings.IRON_BAR);
    ironPlate = new ItemCrafting(Strings.IRON_PLATE);
    glassesLens = new ItemCrafting(Strings.GLASSES_LENS);
    spectrumSensor = new ItemCrafting(Strings.SPECTRUM_SENSOR);
    strengthenedIron = new ItemCrafting(Strings.STRENGTHENED_IRON);
    strengthenedIronBar = new ItemCrafting(Strings.STRENGTHENED_IRON_BAR);
    strengthenedIronStrip = new ItemCrafting(Strings.STRENGTHENED_IRON_STRIP);
    strengthenedPlate = new ItemCrafting(Strings.STRENGTHENED_PLATE);

    // Items
    woodenBucket = new ItemWoodenBucket(Strings.WOODEN_BUCKET);

    // Armour
    glasses = new ItemGlasses(ArmorMaterial.IRON, ArmourRenderIndex.IRON, ArmourSlotIndex.HEAD, Strings.GLASSES, TextureMaps.GLASSES_LOCATION);
    hoverBoots = new ItemHoverBoots(ArmorMaterial.IRON, ArmourRenderIndex.IRON, ArmourSlotIndex.BOOTS, Strings.HOVER_BOOTS, TextureMaps.HOVER_BOOTS_LOCATION);

    // Equipment
    constructorDrone = new ItemCrafting(Strings.CONSTRUCTOR_DRONE);
    combatDrone = new ItemCombatDrone(Strings.COMBAT_DRONE);
    empTrigger = new ItemEMPTrigger(Strings.EMP_TRIGGER);
    selectiveEMPTrigger = new ItemSelectiveEMPTrigger(Strings.SELECTIVE_EMP_TRIGGER);

    // Relics
    quantumStateDisruptor = new ItemQuantumStateDisruptor(Strings.ITEM_QUANTUM_STATE_DISRUPTOR);
    atomicCatalyst = new ItemAtomicCatalyst(Strings.ATOMIC_CATALYST).setClickableRight();

    // Redone section
    
    // Relics
    lifeCoin = new ItemCoin(Strings.LIFE_COIN).setLore("You got it for getting", "a perfect pacman game.");
    deadCoin = new ItemCoin(Strings.DEAD_COIN).setLore("Just an ordinary coin.");
    gamblersCoin = new ItemCoin(Strings.GAMBLERS_COIN).setLore("Is luck on your side?").setClickableRight().setDonatorItem("SoulessRaven").setMaxStackSize(1);

    // Research Tools
    quill = new ItemCrafting(Strings.QUILL).setShapelessRecipe(Items.feather, Items.quartz);
    papyrus = new ItemCrafting(Strings.PAPYRUS).setShapelessRecipe(Items.leather, Items.reeds, Items.reeds);
    quillAndPapyrus = new ItemResearchTool(Strings.QUILL_AND_PAPYRUS, GuiIDs.QUILL_AND_PAPYRUS).setShapelessRecipe(quill, papyrus);

    if (Reference.isDebugMode)
        initDebug();
}
 
开发者ID:Jezza,项目名称:Elemental-Sciences-2,代码行数:44,代码来源:ModItems.java


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