summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/Container.java
Commit message (Collapse)AuthorAgeLines
* Update to Minecraft 1.8Thinkofdeath2014-11-28-615/+0
| | | | For more information please see http://www.spigotmc.org/
* Update CraftBukkit to Minecraft 1.7.10Travis Watkins2014-07-08-1/+1
|
* Some assumptions are better than others.Nate Mortensen2014-06-01-5/+3
|
* Handle inventory max stack sizes even better. Fixes BUKKIT-5595Travis Watkins2014-05-13-1/+6
| | | | | | | | | | | | In 7e37cf96 we modified the container logic to handle custom max stack sizes better and ensure the client stays in sync with this scenario. This had the effect of sending an extra set slot packet for every inventory click a player did which was not wanted. These extra packets also cause the client to recalculate recipes which breaks the result slot for custom recipes. To avoid the extra packets in general we now only send them if the max stack is not the one we started with. In the case of a setting a custom max stack size on a workbench this is still not enough so we also now send another extra packet to make sure the result slot is always correct.
* Handle inventory max stack sizes better. Fixes BUKKIT-5564Travis Watkins2014-04-23-8/+33
| | | | | | | | Make sure we check the inventory's max stack size where appropriate and don't assume the inventory slot is able to take our entire stack just because it is empty. We also ensure the client is updated with the correct slot contents and cursor contents in cases where the max stack changes result in different behavior than the client expected.
* Update CraftBukkit to Minecraft 1.7.5Nate Mortensen2014-03-21-25/+25
|
* Update CraftBukkit to Minecraft 1.7.2mbax2013-11-30-11/+12
|
* Update CraftBukkit to 1.6.1Nate Mortensen2013-07-01-18/+15
|
* Fix cancellation for InventoryDragEvent. Fixes BUKKIT-4332Nate Mortensen2013-06-13-0/+2
| | | | | | | | | | | Cancelling InventoryDragEvent causes the placed items to be lost. This is because the cursor is set to the result prior to the event taking place, so the items are removed from the cursor. When the event is cancelled, the items removed from the cursor aren't placed in the inventory, and are just lost. This change sets the cursor back to the original cursor when the event is cancelled.
* Improve events for new inventory features. Adds BUKKIT-3859riking2013-06-03-6/+42
| | | | | | | | | | | | | | | | | | | | | | | | | This commit brings the InventoryClickEvent up to date with the new Minecraft changes in 1.5. InventoryDragEvent (thanks to @YLivay for his PR) is added to represent the new "dragging" or "painting" functionality, where if you hold an itemstack and click-drag over several slots, the items will be split evenly (left click) or 1 each (right click). The ClickType enum is used to represent what the client did to trigger the event. The InventoryAction enum is reserved for future expansion, but will be used to indicate the approximate result of the action. Additionally, handling of creative inventory editing is improved with the new InventoryCreativeEvent, and handling of numberkey presses is also improved within InventoryClickEvent and CraftItemEvent. Also, cancelling a creative click now displays properly on the client. Adresses BUKKIT-3692, BUKKIT-4035, BUKKIT-3859 (new 1.5 events), BUKKIT-2659, BUKKIT-3043, BUKKIT-2659, and BUKKIT-2897 (creative click events).
* Update CraftBukkit to Minecraft 1.5.2Travis Watkins2013-04-27-2/+2
|
* Perform anvil calculations when using 1.5 drop feature.riking2013-04-13-1/+1
| | | | | | When using the new feature in 1.5 to drop the item in any highlighted slot, the anvil result slot does not apply the full anvil calculation that picking up the item does, including the experience calculation.
* Cleanup comments, formatting, etcTravis Watkins2013-03-25-1/+1
|
* Update CraftBukkit to Minecraft 1.5Travis Watkins2013-03-15-123/+302
|
* Update CraftBukkit to Minecraft 1.4.6feildmaster2012-12-20-1/+3
|
* Update CraftBukkit to Minecraft 1.4.4.Travis Watkins2012-11-13-42/+31
|
* Update CraftBukkit to Minecraft 1.4(.2).Travis Watkins2012-10-27-90/+124
|
* Update CraftBukkit to Minecraft 1.3.1feildmaster2012-08-02-47/+62
|
* Cleaned up CraftBukkit comments in NMS.Wesley Wolfe2012-07-23-2/+1
| | | | | | | | | | | | | 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
* Fix a NullPointerException.feildmaster2012-06-04-5/+7
|
* [Bleeding] Improve handling of ItemStacks. Addresses BUKKIT-1697md_52012-05-23-3/+10
|
* Updated CraftBukkit to 1.2Nathan Adams2012-03-01-3/+3
|
* Updated to rename revision 02Erik Broes2012-03-01-31/+32
|
* [Bleeding] Implementation of inventory framework. Addresses BUKKIT-856Celtic Minstrel2012-02-29-1/+18
| | | | | | | | | | | | 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).
* Imported from mc-dev:Celtic Minstrel2012-02-29-0/+306
| | | | | | | | | | | - TileEntity - Container - ContainerFurnace - ContainerDispenser - ContainerChest - ContainerEnchantTableSubcontainer - ContainerEnchantTableInventory - ContainerBrewingStand
* Updated to Minecraft 1.1Erik Broes2012-01-12-310/+0
|
* Another fix for enchantments when moving around inventory. (Still glitches ↵Tahg2011-12-05-0/+310
visually at times)