summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/ContainerEnchantTable.java
Commit message (Collapse)AuthorAgeLines
* Update to Minecraft 1.8Thinkofdeath2014-11-28-284/+0
| | | | For more information please see http://www.spigotmc.org/
* Allow plugins to enchant normally unenchantable items. Adds BUKKIT-1849Andre LeBlanc2014-04-18-1/+7
| | | | | | | | | | It's currently not possible for a plugin to allow enchanting of an otherwise un-enchantable item using the enchanting table. This commit causes EnchantItemEvent to be called with an empty list of enchantments, allowing a plugin to provide it's own set of enchantments when vanilla Minecraft would not allow any. It also bypasses the unsafe enchantment check since a plugin should be permitted to apply any enchantments they like, and vanilla should not generate unsafe enchantments of its own.
* Update CraftBukkit to Minecraft 1.7.5Nate Mortensen2014-03-21-2/+2
|
* [Bleeding] Correctly enchant books. Fixes BUKKIT-5302t00thpick12014-02-06-9/+6
| | | | | | | | | | | | | | Books can now recieve more than one enchantment. As such, breaking out of the loop after only 1 enchantment is applied is not the correct behavior. This commit also reworks some of the logic surrounding the application of enchantments to the item. By checking if the event doesn't add any enchantments rather than if the original enchantments list is empty, the application code is only reached if enchantments are applied, rendering the "applied" boolean no longer necessary. The ItemStack's Item should only be set once, so it is now set outside of the loop based upon whether or not "flag" is true (with "flag" being whether or not the ItemStack's Item is a book).
* Update CraftBukkit to Minecraft 1.7.2mbax2013-11-30-12/+12
|
* Update CraftBukkit to 1.6.1Nate Mortensen2013-07-01-4/+4
|
* Add missing semicolonriking2013-03-25-1/+1
| | | | | | | | I should try to compile before I say "this change is okay". I should try to compile before I say "this change is okay". I should try to compile before I say "this change is okay". I should try to compile before I say "this change is okay". for i in range(100)
* Allow plugins to enchant already enchanted items. Fixes BUKKIT-1956Kristofer Henriksson2013-03-25-1/+2
| | | | | | This causes the server to generate PrepareItemEnchantEvent even in the case that an item is already enchanted or otherwise would normally not be enchantable.
* Update CraftBukkit to Minecraft 1.5Travis Watkins2013-03-15-2/+2
|
* Add the ability to make Enchanted Books. Fixes BUKKIT-3220feildmaster2012-12-20-4/+21
|
* Update CraftBukkit to Minecraft 1.4.6feildmaster2012-12-20-1/+2
|
* Implement ItemFactory and ItemMeta values. Adds BUKKIT-15Wesley Wolfe2012-12-17-2/+2
|
* Update CraftBukkit to Minecraft 1.4.4.Travis Watkins2012-11-13-10/+9
|
* Update CraftBukkit to Minecraft 1.4(.2).Travis Watkins2012-10-27-4/+4
|
* Update CraftBukkit to Minecraft 1.3.1feildmaster2012-08-02-22/+37
|
* Cleaned up CraftBukkit comments in NMS.Wesley Wolfe2012-07-23-3/+2
| | | | | | | | | | | | | Added newlines at the end of files Fixed improper line endings on some files Matched start - end comments Added some missing comments for diffs Fixed syntax on some spots Minimized some diff Removed some no longer used files Added comment on some required files with no changes Fixed imports of items used once Added imports for items used more than once
* [Bleeding] Make crafting and enchanting inventories keep track of their ↵Celtic Minstrel2012-03-20-1/+4
| | | | owner rather than returning null. Addresses BUKKIT-1209
* Fixed enchanting in Creative. Fixes BUKKIT-1119EvilSeph2012-03-10-3/+2
|
* Added missing null check for enchantments. Fixes BUKKIT-897Tahg2012-03-03-14/+14
|
* Updated CraftBukkit to 1.2Nathan Adams2012-03-01-4/+4
|
* Updated to rename revision 02Erik Broes2012-03-01-54/+56
|
* [Bleeding] Implementation of inventory framework. Addresses BUKKIT-856Celtic Minstrel2012-02-29-5/+24
| | | | | | | | | | | | See the corresponding Bukkit commit for details. Implementation details: - Any packets that include an itemstack will send air stacks as null; maybe this will even eliminate the client crash that occurs if the client receives an air stack - Better handling of null itemstacks in general (ie less converting them to air stacks) - Inventory.setContents() can now take an array smaller than the inventory without error - Player.updateInventory() should now correctly update the result slot in a crafting inventory Some small credit goes to Afforess (initial implementation of openInventory() methods) and Drakia (initial implementation of InventoryOpenEvent and InventoryCloseEvent).
* [Bleeding] Implemented EnchantmentTable API.Mike Primm2012-01-24-0/+226