Java Code Examples for net.minecraft.init.Items.golden_horse_armor()
The following are Jave code examples for showing how to use
golden_horse_armor() of the
net.minecraft.init.Items
class.
You can vote up the examples you like. Your votes will be used in our system to get
more good examples.
+ Save this method
Example 1
Project: DecompiledMinecraft File: EntityHorse.java View Source Code | 5 votes |
/** * 0 = iron, 1 = gold, 2 = diamond */ private int getHorseArmorIndex(ItemStack itemStackIn) { if (itemStackIn == null) { return 0; } else { Item item = itemStackIn.getItem(); return item == Items.iron_horse_armor ? 1 : (item == Items.golden_horse_armor ? 2 : (item == Items.diamond_horse_armor ? 3 : 0)); } }
Example 2
Project: DecompiledMinecraft File: EntityHorse.java View Source Code | 5 votes |
/** * 0 = iron, 1 = gold, 2 = diamond */ private int getHorseArmorIndex(ItemStack itemStackIn) { if (itemStackIn == null) { return 0; } else { Item item = itemStackIn.getItem(); return item == Items.iron_horse_armor ? 1 : (item == Items.golden_horse_armor ? 2 : (item == Items.diamond_horse_armor ? 3 : 0)); } }
Example 3
Project: BaseClient File: EntityHorse.java View Source Code | 5 votes |
/** * 0 = iron, 1 = gold, 2 = diamond */ private int getHorseArmorIndex(ItemStack itemStackIn) { if (itemStackIn == null) { return 0; } else { Item item = itemStackIn.getItem(); return item == Items.iron_horse_armor ? 1 : (item == Items.golden_horse_armor ? 2 : (item == Items.diamond_horse_armor ? 3 : 0)); } }
Example 4
Project: BaseClient File: EntityHorse.java View Source Code | 5 votes |
/** * 0 = iron, 1 = gold, 2 = diamond */ private int getHorseArmorIndex(ItemStack itemStackIn) { if (itemStackIn == null) { return 0; } else { Item item = itemStackIn.getItem(); return item == Items.iron_horse_armor ? 1 : (item == Items.golden_horse_armor ? 2 : (item == Items.diamond_horse_armor ? 3 : 0)); } }
Example 5
Project: DecompiledMinecraft File: EntityHorse.java View Source Code | 4 votes |
/** * Returns true if given item is horse armor */ public static boolean isArmorItem(Item p_146085_0_) { return p_146085_0_ == Items.iron_horse_armor || p_146085_0_ == Items.golden_horse_armor || p_146085_0_ == Items.diamond_horse_armor; }
Example 6
Project: DecompiledMinecraft File: EntityHorse.java View Source Code | 4 votes |
/** * Returns true if given item is horse armor */ public static boolean isArmorItem(Item p_146085_0_) { return p_146085_0_ == Items.iron_horse_armor || p_146085_0_ == Items.golden_horse_armor || p_146085_0_ == Items.diamond_horse_armor; }
Example 7
Project: BaseClient File: EntityHorse.java View Source Code | 4 votes |
/** * Returns true if given item is horse armor */ public static boolean isArmorItem(Item p_146085_0_) { return p_146085_0_ == Items.iron_horse_armor || p_146085_0_ == Items.golden_horse_armor || p_146085_0_ == Items.diamond_horse_armor; }
Example 8
Project: BaseClient File: EntityHorse.java View Source Code | 4 votes |
/** * Returns true if given item is horse armor */ public static boolean isArmorItem(Item p_146085_0_) { return p_146085_0_ == Items.iron_horse_armor || p_146085_0_ == Items.golden_horse_armor || p_146085_0_ == Items.diamond_horse_armor; }