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


Java ItemArmor.ArmorMaterial方法代码示例

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


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

示例1: addArmorMaterial

import net.minecraft.item.ItemArmor; //导入方法依赖的package包/类
public static ItemArmor.ArmorMaterial addArmorMaterial(String enumName, String textureName, int durability, int[] reductionAmounts, int enchantability, SoundEvent soundOnEquip, float toughness) {
	return EnumHelper.addEnum(ItemArmor.ArmorMaterial.class, enumName, new Class[] {
			String.class,
			Integer.TYPE,
			int[].class,
			Integer.TYPE,
			SoundEvent.class,
			Float.TYPE
	}, new Object[] {
			textureName,
			Integer.valueOf(durability),
			reductionAmounts,
			Integer.valueOf(enchantability),
			soundOnEquip,
			Float.valueOf(toughness)
	});
}
 
开发者ID:p455w0rd,项目名称:EndermanEvolution,代码行数:18,代码来源:ArmorUtils.java

示例2: ItemPneumaticArmor

import net.minecraft.item.ItemArmor; //导入方法依赖的package包/类
public ItemPneumaticArmor(ItemArmor.ArmorMaterial material, int renderIndex, EntityEquipmentSlot armorType, int maxAir) {
    super(material, renderIndex, armorType);
    // TODO other armor types?
    setRegistryName("pneumatic_helmet");
    setUnlocalizedName("pneumatic_helmet");
    setMaxDamage(maxAir);
    setCreativeTab(PneumaticCraftRepressurized.tabPneumaticCraft);
}
 
开发者ID:TeamPneumatic,项目名称:pnc-repressurized,代码行数:9,代码来源:ItemPneumaticArmor.java

示例3: ItemArmorCollection

import net.minecraft.item.ItemArmor; //导入方法依赖的package包/类
public ItemArmorCollection(ItemArmor.ArmorMaterial material){
    this.material = material;
    head = new Armor(material, EntityEquipmentSlot.HEAD);
    chestplate = new Armor(material, EntityEquipmentSlot.CHEST);
    legs = new Armor(material, EntityEquipmentSlot.LEGS);
    shoes = new Armor(material, EntityEquipmentSlot.FEET);
}
 
开发者ID:canitzp,项目名称:Metalworks,代码行数:8,代码来源:ItemArmorCollection.java

示例4: load

import net.minecraft.item.ItemArmor; //导入方法依赖的package包/类
public static void load()
{
	Item.ToolMaterial compositeToolMaterial = EnumHelper.addToolMaterial("CG_COMPOSITE", 2, 1800, 6.0F, 2.0F, 13);
	Item.ToolMaterial compositeDaggerMaterial = EnumHelper.addToolMaterial("CG_COMPOSITE_DAGGER", 2, 600, 6.0F, 0.0F, 15);
	
	// TODO: Solve this garbage with materials.

	ItemArmor.ArmorMaterial accessoryArmorMaterial = EnumHelper.addArmorMaterial("CG_ACCESSORY", null, 100, new int[] { 1, 2, 2, 1 }, 15, null, 0);
	ItemArmor.ArmorMaterial compositeMaskArmorMaterial = EnumHelper.addArmorMaterial("CG_MASK_COMPOSITE", null, 50, new int[] { 3, 9, 6, 3 }, 12, null, 0);
	ItemArmor.ArmorMaterial compositeArmorMaterial = EnumHelper.addArmorMaterial("CG_COMPOSITE", null, 50, new int[] { 3, 9, 6, 3 }, 12, null, 0);

	// Armor
	compositeHelmet = new ItemCompositeArmor("composite_helmet", compositeArmorMaterial, COMPOSITE_NAME, 0, EntityEquipmentSlot.HEAD).setDefaultColor(8815987).setRarity(EnumRarity.UNCOMMON);
	compositeChestplate = new ItemCompositeArmor("composite_chestplate", compositeArmorMaterial, COMPOSITE_NAME , 0, EntityEquipmentSlot.CHEST).setDefaultColor(8815987).setRarity(EnumRarity.UNCOMMON);
	compositeLeggings = new ItemCompositeArmor("composite_leggings", compositeArmorMaterial, COMPOSITE_NAME, 0, EntityEquipmentSlot.LEGS).setDefaultColor(8815987).setRarity(EnumRarity.UNCOMMON);
	compositeBoots = new ItemCompositeArmor("composite_boots", compositeArmorMaterial, COMPOSITE_NAME, 0, EntityEquipmentSlot.FEET).setDefaultColor(8815987).setRarity(EnumRarity.UNCOMMON);

	// Respirators
	respiratorHalfMask = new ItemCGArmor("respirator_halfmask", accessoryArmorMaterial, "respirator_halfmask", 0, EntityEquipmentSlot.HEAD)
			.setItemClass(EnumItemClass.ACCESSORY_ARMOR).setAirMask(true).setMinAir(80);

	respiratorMask = new ItemCGArmor("respirator_mask", accessoryArmorMaterial, "respirator_mask", 0, EntityEquipmentSlot.HEAD)
			.setItemClass(EnumItemClass.ACCESSORY_ARMOR).setAirMask(true).setMinAir(20).setMaxDamage(150);
	
	respiratorMaskComposite = new ItemCGArmor("respirator_mask_composite", compositeMaskArmorMaterial, "respirator_mask_composite", 0, EntityEquipmentSlot.HEAD)
			.setItemClass(EnumItemClass.LIGHT_ARMOR).setAirMask(true).setMinAir(20).setRarity(EnumRarity.UNCOMMON).setMaxDamage(200);
	
	// Decorative
	ushankaHat = new ItemCompositeArmor("ushanka_hat", accessoryArmorMaterial, "ushanka_hat", 0, EntityEquipmentSlot.HEAD).setDefaultColor(8487297)
			.setItemClass(EnumItemClass.ACCESSORY_ARMOR).setHasDescription(true).setMaxDamage(300);
	
	balaclavaMask = new ItemCompositeArmor("balaclava_mask", accessoryArmorMaterial, "balaclava_mask", 0, EntityEquipmentSlot.HEAD).setDefaultColor(8487297)
			.setItemClass(EnumItemClass.ACCESSORY_ARMOR).setHasDescription(true);
	
	shemaghMask = new ItemCompositeArmor("shemagh_mask", accessoryArmorMaterial, "shemagh_mask", 0, EntityEquipmentSlot.HEAD).setDefaultColor(8487297)
			.setHasOverlayIcon(true).setItemClass(EnumItemClass.ACCESSORY_ARMOR).setHasDescription(true);

	// Weapons
	compositeSword = new ItemCGSword("composite_sword", compositeToolMaterial);
	compositeDagger = new ItemCGSword("composite_dagger", compositeDaggerMaterial);
	compositeBow = new ItemCGBow("composite_bow", 2000, 15);

	if (CompositeGear.proxy.isClient()) {
		registerMultiItem(compositeSword, "composite_sword", "items/tool/generic");
		registerMultiItem(compositeDagger, "composite_dagger", "items/tool/generic");
		registerItemModel(compositeBow, "tool/composite_bow");
	}
}
 
开发者ID:TwilightWingsStudio,项目名称:CompositeGear,代码行数:49,代码来源:ItemsCG.java

示例5: ItemGlassSlippers

import net.minecraft.item.ItemArmor; //导入方法依赖的package包/类
public ItemGlassSlippers(ItemArmor.ArmorMaterial material, int renderindex, EntityEquipmentSlot slot) {
	
	super(material, renderindex, slot);
	setRegistryName("slippers");
	setUnlocalizedName(UniqueCrops.MOD_ID + ".slippers");
	setCreativeTab(UniqueCrops.TAB);
	setMaxDamage(90);
	GameRegistry.register(this);
}
 
开发者ID:bafomdad,项目名称:uniquecrops,代码行数:10,代码来源:ItemGlassSlippers.java

示例6: Item3DGlasses

import net.minecraft.item.ItemArmor; //导入方法依赖的package包/类
public Item3DGlasses(ItemArmor.ArmorMaterial material, int renderindex, EntityEquipmentSlot slot) {
	
	super(material, renderindex, slot);
	setRegistryName("3dglasses");
	setUnlocalizedName(UniqueCrops.MOD_ID + ".3dglasses");
	setCreativeTab(UniqueCrops.TAB);
	setMaxDamage(200);
	GameRegistry.register(this);
}
 
开发者ID:bafomdad,项目名称:uniquecrops,代码行数:10,代码来源:Item3DGlasses.java

示例7: ItemPoncho

import net.minecraft.item.ItemArmor; //导入方法依赖的package包/类
public ItemPoncho(ItemArmor.ArmorMaterial material, int renderindex, EntityEquipmentSlot slot) {
	
	super(material, renderindex, slot);
	setRegistryName("poncho");
	setUnlocalizedName(UniqueCrops.MOD_ID + ".poncho");
	setCreativeTab(UniqueCrops.TAB);
	setMaxDamage(112);
	GameRegistry.register(this);
}
 
开发者ID:bafomdad,项目名称:uniquecrops,代码行数:10,代码来源:ItemPoncho.java


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