summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/ItemStack.java
Commit message (Collapse)AuthorAgeLines
* Update to Minecraft 1.8Thinkofdeath2014-11-28-593/+0
| | | | For more information please see http://www.spigotmc.org/
* Update CraftBukkit to Minecraft 1.7.10Travis Watkins2014-07-08-9/+9
|
* Improve ItemStack filtering.Travis Watkins2014-06-01-0/+10
|
* Fix ItemStack state during BlockPlaceEvent. Fixes BUKKIT-5632Nate Mortensen2014-05-26-3/+14
|
* Refactored BlockPlaceEvent and BlockChangeDelegate. Adds BUKKIT-5558bloodshot2014-04-23-2/+85
| | | | | | | | | | | | | | | | | | | | | | | | | 23 classes have been removed as they are no longer needed using the new capture logic. This should help quite a bit with future MC updates. BlockPlaceEvent Refactor Before calling Item.interactWith, a recording flag is turned on for setTypeAndData to capture a blockstate for each block that attempts to be set. When a block place event is cancelled, the recorded blockstate, stack size, and metadata will revert back to the captured state. If the event is not cancelled, a notification will be sent to clients and block physics will be updated. BlockChangeDelegate Refactor Now that we have the ability to capture blockstates through world, there is no need to modify world gen classes with BlockChangeDelegate. Instead we will simply capture blocks during world generation in order to "replay" all of the captured blockstates to send back to delegates. StructureGrowDelegate and BlockSapling.TreeGenerator have also been removed as part of this change. BlockSapling and BlockMushroom will capture blockstates the same as block placement and revert back any grow events if needed.
* Update CraftBukkit to Minecraft 1.7.5Nate Mortensen2014-03-21-9/+9
|
* Only filter data from block items, not all of them. Fixes BUKKIT-5047Travis Watkins2013-12-13-7/+8
|
* Update CraftBukkit to Minecraft 1.7.2mbax2013-11-30-71/+86
|
* Force item data to use a tag name. Fixes BUKKIT-4809feildmaster2013-10-12-2/+7
| | | | | | | The recent Minecraft update rendered the e20e50f85083dc53cb5456254bcf5781ef750daa fix incorrect by adding a compound name to the base tag in some code. This fix changes all uses of tag changes to explicitly use a name.
* Update CraftBukkit to 1.6.4feildmaster2013-09-19-2/+2
|
* Update CraftBukkit to 1.6.2mbax2013-07-08-2/+2
|
* Update CraftBukkit to 1.6.1Nate Mortensen2013-07-01-31/+70
|
* Update CraftBukkit to Minecraft 1.5.2Travis Watkins2013-04-27-1/+1
|
* Cleanup comments, formatting, etcTravis Watkins2013-03-25-2/+2
|
* Really don't filter out -1 data in ItemStack.Travis Watkins2013-03-20-4/+6
|
* Don't filter out -1 data in ItemStack. Fixes BUKKIT-3824Travis Watkins2013-03-20-2/+2
|
* Only filter data on block items, not all items.Travis Watkins2013-03-18-1/+1
|
* Allow special crafting data value on items. Fixes BUKKIT-3780Travis Watkins2013-03-16-0/+6
|
* Allow data on tool items. Fixes BUKKIT-3773Travis Watkins2013-03-16-1/+1
|
* Filter negative values for all items.Travis Watkins2013-03-16-4/+2
|
* Filter data for items that shouldn't have it and filter wool.Travis Watkins2013-03-16-0/+13
| | | | | | | | We used to fall Item.filterData() for this but that method is meant for converting item data to block data during placement and does the wrong thing for this case. Instead we just see if the item should have data and if not set it to zero. We also have to filter wool data explicitly because clients crash when given invalid wool data.
* Update CraftBukkit to Minecraft 1.5Travis Watkins2013-03-15-42/+61
|
* Update CraftBukkit to Minecraft 1.4.7feildmaster2013-01-17-1/+1
|
* [Bleeding] Fix corruption due to thread safety issues. Fixes BUKKIT-3333Mike Primm2012-12-30-3/+3
| | | | | | | | | | | | | | | | | | | | The 'tag' NBTTagCompound field of the ItemStack assumes that it is OK to save a reference to an NBT supplied via load() and assumes it is OK to supply a reference to the internal field during a save(). Neither is true, as Chunk NBT structures are required to be read-only once created (due to being written asynchronously off the server thread AND due to the potential to be passed to a new Chunk if the same chunk is reloaded before the writing of the NBT is completed by the File I/O thread). Keeping a live reference to the NBT copy passed in, or to the NBT value passed back during saving, creates serious thread safety issues which can result in corrupted data being written to the world data files. The specific issue here was uncovered by the recent change to use setName("") on the ItemStack.tag object. When a chunk is being loaded again before its save is completed, this results in name of the field in the NBT being set to "". This causes it to be saved as "" instead of "tag" resulting in it not being properly reloaded in the future which results in the itemstack losing all of its metadata.
* Fix discrepancies in NBT and ItemMeta. Fixes BUKKIT-3279feildmaster2012-12-27-1/+2
| | | | | | | | | | | An ItemStack gains the tag name "tag" when the stack is serialized to NBT, however items don't have a tag *until* they are serialized at least once. So to solve this, we remove the tag name when loading the NBT data. Another problem with NBT are TagLists, when transferring tag lists between the server and the client the names are lost, and so we simply don't add a name to the tag.
* Update CraftBukkit to Minecraft 1.4.6feildmaster2012-12-20-7/+15
|
* Implement ItemFactory and ItemMeta values. Adds BUKKIT-15Wesley Wolfe2012-12-17-15/+0
|
* Don't filter item data for anvils. Fixes BUKKIT-2640Travis Watkins2012-10-28-1/+1
| | | | | | | Filtering item data is usually a good idea to make sure we don't have invalid data or data on items that shouldn't have it. However, anvils use item data in slightly different way and so running its code for filtering here causes the data to be corrupted.
* Update CraftBukkit to Minecraft 1.4(.2).Travis Watkins2012-10-27-12/+67
|
* Made books less powerful, though you should still read them!EvilSeph2012-10-27-0/+10
|
* Update CraftBukkit to Minecraft 1.3.1feildmaster2012-08-02-30/+29
|
* Fire PlayerItemBreakEvent. Addresses BUKKIT-1600Travis Ralston2012-06-21-0/+6
|
* Revert filtering by dynamic block rangeTahg2012-03-01-1/+1
|
* Updated CraftBukkit to 1.2Nathan Adams2012-03-01-4/+4
|
* Updated to rename revision 02Erik Broes2012-03-01-3/+3
|
* Update for 1.1_01 renames.Erik Broes2012-01-15-2/+2
| | | | | We know these updates (can) break plugins bypassing Bukkit. They are needed for smooth updates however. There will be another one right before before 1.1-R1.
* Updated to Minecraft 1.1Erik Broes2012-01-12-6/+6
|
* Fix balance of CraftBukkit start/end.Erik Broes2012-01-12-1/+1
|
* ... Fixed dispensers again!Nathan Adams2011-12-12-1/+1
|
* Fixed crash with dispensers dispensing dispensablesNathan Adams2011-12-12-4/+6
|
* Teach nms ItemStack constructor how to take enchantmentsAndrew Ardill2011-12-13-0/+12
|
* Updated to use mc-dev rename revision 1Nathan Adams2011-11-30-27/+27
|
* Update for 1.0.0Erik Broes2011-11-20-11/+88
|
* fixed build issues, code cleanupTahg2011-09-26-2/+2
|
* data improvementsTahg2011-09-26-3/+3
|
* Update to mcdev rename revision 01 for 1.8.1Dinnerbone2011-09-24-2/+2
|
* Update for Minecraft 1.8Dinnerbone2011-09-15-7/+33
|
* Massive renaming update in nms. If you bypassed Bukkit, you will likely break.Erik Broes2011-06-27-7/+7
| | | | Also minimized all the nms diffs and generic cleanups all around.
* Implemented 1.6!Dinnerbone2011-05-26-5/+26
|
* Whitespace + general cleanupErik Broes2011-05-15-1/+1
|