Java Code Examples for net.minecraft.init.Items#DIAMOND_HELMET
The following examples show how to use
net.minecraft.init.Items#DIAMOND_HELMET .
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: GlassesHUD.java From Signals with GNU General Public License v3.0 | 6 votes |
private void render2D(){ Minecraft minecraft = FMLClientHandler.instance().getClient(); EntityPlayer player = minecraft.player; ItemStack helmetStack = player.inventory.armorInventory.get(3); if(!helmetStack.isEmpty() && minecraft.inGameHasFocus && helmetStack.getItem() == Items.DIAMOND_HELMET) { GL11.glDepthMask(false); GL11.glDisable(GL11.GL_CULL_FACE); GL11.glDisable(GL11.GL_TEXTURE_2D); GL11.glPushMatrix(); GL11.glClear(GL11.GL_DEPTH_BUFFER_BIT); GL11.glColor4d(0, 1, 0, 0.8D); GL11.glPopMatrix(); GL11.glEnable(GL11.GL_CULL_FACE); GL11.glDepthMask(true); GL11.glEnable(GL11.GL_TEXTURE_2D); for(int i = 0; i < messages.size(); i++) { minecraft.fontRenderer.drawString(messages.get(i).localizedMessage, 16, 16 + i * (minecraft.fontRenderer.FONT_HEIGHT + 1), 0xFF0000); } } }
Example 2
Source File: ShopkeeperTradesForWater.java From ToroQuest with GNU General Public License v3.0 | 5 votes |
private static ItemStack level3Helmet() { ItemStack stack = new ItemStack(Items.DIAMOND_HELMET); stack.setStackDisplayName("Charybdis Helmet"); stack.addEnchantment(Enchantment.REGISTRY.getObjectById(0), 1); stack.addEnchantment(Enchantment.REGISTRY.getObjectById(6), 2); stack.addEnchantment(Enchantment.REGISTRY.getObjectById(5), 2); return stack; }
Example 3
Source File: ShopkeeperTradesForWater.java From ToroQuest with GNU General Public License v3.0 | 5 votes |
private static ItemStack level4Helmet() { ItemStack stack = new ItemStack(Items.DIAMOND_HELMET); stack.setStackDisplayName("Oceanus Helmet"); stack.addEnchantment(Enchantment.REGISTRY.getObjectById(0), 2); stack.addEnchantment(Enchantment.REGISTRY.getObjectById(6), 4); stack.addEnchantment(Enchantment.REGISTRY.getObjectById(5), 4); return stack; }
Example 4
Source File: ShopkeeperTradesForWater.java From ToroQuest with GNU General Public License v3.0 | 5 votes |
private static ItemStack level5Helmet() { ItemStack stack = new ItemStack(Items.DIAMOND_HELMET); stack.setStackDisplayName("Poseidon Helmet"); stack.addEnchantment(Enchantment.REGISTRY.getObjectById(0), 4); stack.addEnchantment(Enchantment.REGISTRY.getObjectById(6), 4); stack.addEnchantment(Enchantment.REGISTRY.getObjectById(5), 4); stack.addEnchantment(Enchantment.REGISTRY.getObjectById(70), 1); return stack; }