26 Commits

Author SHA1 Message Date
md_5
07e5dd5d59
Update to Minecraft 1.20.3 2023-12-06 03:40:00 +11:00
DerFrZocker
38c599f9de
#1272: Only allow one entity in CraftItem instead of two
This pr reverts a change made in 2012 which allowed CraftItem to be a also other entities such as an arrow.
I don't see any practical reason why the original change was done, other than to allow plugin developers to do some stuff in a cursed way.
With the introduction of the PlayerPickupArrowEvent in 2016 there is also a way to access the arrow involved in a better way.
Generally I think the current behavior is a bit strange and should be reverted.
2023-10-06 07:16:11 +11:00
DerFrZocker
b76ceb4f5d
#1235: Move EntityType return to base Entity class 2023-08-13 07:52:40 +10:00
md_5
bcedf28a1b
Update to Minecraft 1.19.4 2023-03-15 03:30:00 +11:00
Gero
e19ddabd08
#1011: Add Item Unlimited Lifetime APIs 2022-03-12 09:26:16 +11:00
md_5
a7b8b0270a
Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
md_5
90d6905b15
Repackage NMS 2021-03-16 09:00:00 +11:00
Shane Bee
055870c4bc
#758: Item - add getters/setters for owner/thrower 2020-10-14 19:56:14 +11:00
md_5
e3df3d5cda Add Override annotations where appropriate 2019-04-28 11:38:01 +10:00
md_5
5fea790398 Apply import ordering rules to CraftBukkit classes 2019-04-23 14:56:58 +10:00
md_5
b54b9409e0 SPIGOT-2864: Make Arrow / Item setTicksLived behave like FallingBlock 2018-12-27 12:02:17 +11:00
BlackyPaw
8cc1683e83 SPIGOT-989: Cap assignment of pickup delays to Short.MAX_VALUE due to storage implementation constraints.
Changed assignment of pickup delays in such a way that they may not be larger than the value actually stored inside the NBT format that is Short.MAX_VALUE. Did not change method signature in order not to produce any shortening cast warnings in existing code. All values larger than 32767 are generally used to indicate that an item should never be picked up. Shortening this to 32767 will actually cause the pickup delay to never decrease, thus resulting in non-pickupable item stacks.
2015-09-30 08:48:28 +10:00
feildmaster
23b6764374 Update CraftBukkit to Minecraft 1.4.6 2012-12-20 10:43:00 -06:00
Wesley Wolfe
78f48258d8 Implement ItemFactory and ItemMeta values. Adds BUKKIT-15 2012-12-17 01:31:41 -06:00
Wesley Wolfe
e2b1514daf Bulk pending cleanup. 2012-09-09 23:19:28 -05:00
feildmaster
c16bf07e85 [Bleeding] Allow CraftItem to be backed by non-EntityItems. Fixes BUKKIT-1351 2012-03-26 16:36:31 -04:00
Celtic Minstrel
af51313ffb [Bleeding] Added EntityType to replace CreatureType. 2012-02-22 22:06:29 -05:00
Andrew Ardill
82965eb10f Stop converting ItemStack to nms ItemStack by hand
This should fix many issues with enchantments being lost, as the method used takes care of enchantments.
Additionally, use the new nms ItemStack constructor in places where appropriate.

Fixes (at least part of) BUKKIT-7. Need to identify any further places to fix.
2011-12-13 01:46:55 +11:00
Andrew Ardill
2759809ecb Fix Craft Entity constructors and toStrings.
Also, standardise getHandle and clean up in general.
getHandle is now using the 'entity' member variable instead of
super.getHandle, as this reduces the number of chained calls needed.
2011-11-29 21:22:35 +11:00
Dinnerbone
6c6eef8759 Implemented get/setPickupDelay on Item entities, thanks robin0van0der0v 2011-09-25 03:40:28 +01:00
Erik Broes
483a878b8b Update for 1.4_00_01 -- if you bypassed Bukkit, you will most likely break. 2011-04-20 19:05:14 +02:00
Dinnerbone
92cbb2fc23 Fixed CraftItem NPEs 2011-02-23 16:08:28 +00:00
Tahg
96435cfc76 refactor Items 2011-02-21 19:57:23 -05:00
Dinnerbone
1c9e7f9aee toString! 2011-01-30 22:02:23 +00:00
Dinnerbone
46e1b54a74 Fixed blockcache being inaccurate 2011-01-20 00:17:44 +00:00
Andrew Ardill
431f2f62cf New Entity Classes implementing the new Bukkit interfaces. 2011-01-18 00:13:33 +08:00