Java Code Examples for net.minecraft.item.ItemEnchantedBook#addEnchantment()
The following examples show how to use
net.minecraft.item.ItemEnchantedBook#addEnchantment() .
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: ShopkeeperTradesForEarth.java From ToroQuest with GNU General Public License v3.0 | 4 votes |
private static ItemStack silkTouch() { ItemStack stack = new ItemStack(Items.ENCHANTED_BOOK); ItemEnchantedBook.addEnchantment(stack, new EnchantmentData(Enchantment.REGISTRY.getObjectById(33), 1)); return stack; }
Example 2
Source File: ShopkeeperTradesForFire.java From ToroQuest with GNU General Public License v3.0 | 4 votes |
private static ItemStack level1FireProtection() { ItemStack stack = new ItemStack(Items.ENCHANTED_BOOK); stack.setStackDisplayName("Fire Protection I"); ItemEnchantedBook.addEnchantment(stack, new EnchantmentData(Enchantment.REGISTRY.getObjectById(1), 1)); return stack; }
Example 3
Source File: ShopkeeperTradesForFire.java From ToroQuest with GNU General Public License v3.0 | 4 votes |
private static ItemStack level2FireProtection() { ItemStack stack = new ItemStack(Items.ENCHANTED_BOOK); stack.setStackDisplayName("Fire Protection II"); ItemEnchantedBook.addEnchantment(stack, new EnchantmentData(Enchantment.REGISTRY.getObjectById(1), 2)); return stack; }
Example 4
Source File: ShopkeeperTradesForFire.java From ToroQuest with GNU General Public License v3.0 | 4 votes |
private static ItemStack level3FireProtection() { ItemStack stack = new ItemStack(Items.ENCHANTED_BOOK); stack.setStackDisplayName("Fire Protection III"); ItemEnchantedBook.addEnchantment(stack, new EnchantmentData(Enchantment.REGISTRY.getObjectById(1), 3)); return stack; }
Example 5
Source File: ShopkeeperTradesForFire.java From ToroQuest with GNU General Public License v3.0 | 4 votes |
private static ItemStack level4FireProtection() { ItemStack stack = new ItemStack(Items.ENCHANTED_BOOK); stack.setStackDisplayName("Fire Protection IV"); ItemEnchantedBook.addEnchantment(stack, new EnchantmentData(Enchantment.REGISTRY.getObjectById(1), 4)); return stack; }
Example 6
Source File: ShopkeeperTradesForFire.java From ToroQuest with GNU General Public License v3.0 | 4 votes |
private static ItemStack level5FireProtection() { ItemStack stack = new ItemStack(Items.ENCHANTED_BOOK); stack.setStackDisplayName("Fire Protection V"); ItemEnchantedBook.addEnchantment(stack, new EnchantmentData(Enchantment.REGISTRY.getObjectById(1), 5)); return stack; }
Example 7
Source File: ShopkeeperTradesForSun.java From ToroQuest with GNU General Public License v3.0 | 4 votes |
private static ItemStack level1BlastProtection() { ItemStack stack = new ItemStack(Items.ENCHANTED_BOOK); ItemEnchantedBook.addEnchantment(stack, new EnchantmentData(Enchantment.REGISTRY.getObjectById(3), 1)); return stack; }
Example 8
Source File: ShopkeeperTradesForSun.java From ToroQuest with GNU General Public License v3.0 | 4 votes |
private static ItemStack level2BlastProtection() { ItemStack stack = new ItemStack(Items.ENCHANTED_BOOK); ItemEnchantedBook.addEnchantment(stack, new EnchantmentData(Enchantment.REGISTRY.getObjectById(3), 2)); return stack; }
Example 9
Source File: ShopkeeperTradesForSun.java From ToroQuest with GNU General Public License v3.0 | 4 votes |
private static ItemStack level3BlastProtection() { ItemStack stack = new ItemStack(Items.ENCHANTED_BOOK); ItemEnchantedBook.addEnchantment(stack, new EnchantmentData(Enchantment.REGISTRY.getObjectById(3), 3)); return stack; }
Example 10
Source File: ShopkeeperTradesForSun.java From ToroQuest with GNU General Public License v3.0 | 4 votes |
private static ItemStack level4BlastProtection() { ItemStack stack = new ItemStack(Items.ENCHANTED_BOOK); ItemEnchantedBook.addEnchantment(stack, new EnchantmentData(Enchantment.REGISTRY.getObjectById(3), 4)); return stack; }