465 Commits

Author SHA1 Message Date
blablubbabc
10f866759e
SPIGOT-6308: Deprecate the location name property of map items
This property does not have the expected effect.
2023-04-17 19:33:17 +10:00
Parker Hawke
50ee87fbcb SPIGOT-7333: Correctly handle null in ColorableArmorMeta#setColor() 2023-04-09 22:22:49 +00:00
Parker Hawke
1eb88374e1
#1147: Add experimental armor trim API 2023-04-07 16:51:00 +10:00
Parker Hawke
93813509b6
SPIGOT-7309: Add API for jukebox inventories
Also fixes a crash when inserting music discs into jukeboxes with a Dropper
2023-03-23 20:55:14 +11:00
md_5
bcedf28a1b
Update to Minecraft 1.19.4 2023-03-15 03:30:00 +11:00
blablubbabc
086d8dc8ac
SPIGOT-7268: CraftMetaPotion reads ShowParticles and ShowIcon properties incorrectly 2023-02-20 19:34:20 +11:00
md_5
7dcb59b8e2
Avoid switch on material in previous commit
See 9c7e65d17a4ed6c3d73935027bdbb9ea9d3c2965 for further info
2023-01-12 19:51:51 +11:00
byquanton
4768df7366
SPIGOT-7034: Add methods for set/get instrument in Goat Horn 2023-01-08 20:36:10 +11:00
Parker Hawke
941d7e954f
SPIGOT-7225: FireworkMeta#getPower() can throw a NullPointerException for items with no power set 2023-01-03 08:04:16 +11:00
Doc
ae8f5fc025
#1125: Add support for NoteBlock sounds in Skulls 2022-12-23 12:26:06 +11:00
md_5
0a1c89e4b1
SPIGOT-7212: Allow negative firework power 2022-12-23 11:46:35 +11:00
Doc
676441aac3
#1121: Handle additional missing SpawnEggs in MetaSpawnEgg 2022-12-08 17:50:40 +11:00
Doc
e85280e020
Handle missing SpawnEggs in MetaSpawnEgg 2022-12-07 19:27:20 -03:00
md_5
19e6be0209
Update to Minecraft 1.19.3 2022-12-08 03:00:00 +11:00
md_5
f43634ae43
SPIGOT-7170: Cannot set slots in custom smithing inventory 2022-10-28 20:33:21 +11:00
Doc
982364797f
SPIGOT-7174: Avoid adding air to CraftMetaBundle 2022-10-28 19:57:22 +11:00
md_5
aaf484f6fd
SPIGOT-7163: CraftMerchantRecipe doesn't copy demand and specialPrice from BukkitMerchantRecipe 2022-10-02 09:13:14 +11:00
Parker Hawke
b7e9f1c8b9
SPIGOT-7146: Reduce use of Material switch in ItemMeta
The Java compiler expands switch statements into a synthetic method that generates an int array with the enum's ordinal. For small enums this is fine, but with an enum as large as Material, this can add over one hundred thousand additional bytes of data. This unnecessarily increases CraftBukkit's overall file size by over 2MB. Where possible, simple conditions are returned. In cases where more than 2 constants are referenced, a HashSet is used (as opposed to an EnumSet which generates a large backing array into memory).
2022-09-11 10:26:21 +10:00
blablubbabc
d12768f755
#1090: Remove no longer needed world reference from CraftMerchantCustom 2022-07-25 18:00:57 +10:00
blablubbabc
7550f6854e
SPIGOT-7115: Support hex color codes in custom merchant inventory titles 2022-07-25 18:00:55 +10:00
md_5
64c15270e7
Update to Minecraft 1.19 2022-06-08 02:00:00 +10:00
Parker Hawke
d65d14307b
#975: Add method to read ItemStack input 2022-04-15 12:54:08 +10:00
md_5
e9f972d674
Improve CreativeCategory conversion 2022-03-19 09:59:56 +11:00
Parker Hawke
c269824921
#1034: Fix exception on init of CraftCreativeCategory 2022-03-19 09:59:56 +11:00
blablubbabc
2c47af0cb0
SPIGOT-6963: CraftMetaBlockState#getBlockState applied TileEntity ids without the minecraft namespace prefix.
This was able to cause issues when ItemStacks are being compared.
2022-03-15 07:30:53 +11:00
DerFrZocker
59733a2e9c
SPIGOT-6961: Actually return a copy of the ItemMeta 2022-03-13 06:58:41 +11:00
Parker Hawke
86292d3e08
#876: Add CreativeCategory API for Materials 2022-03-03 18:55:51 +11:00
DerFrZocker
6a54e5d374
#1012: Always save as skull owner and not as internal data 2022-02-14 08:20:37 +11:00
blablubbabc
8f361ecec0
#1002: Add Player Profile API
Slight changes may occur as this API is stabilized.

This PR is based on work previously done by DerFrZocker in #938.
2022-02-03 09:25:39 +11:00
Doc
13670b4426
SPIGOT-6890: Add repair cost amount in AnvilInventory 2022-01-26 09:30:35 +11:00
md_5
b8a25cbd20
Fix map colour not being marked as a handled tag 2021-12-30 10:14:08 +11:00
Doc
86c91bab1f
SPIGOT-6836: Add more API methods in MerchantRecipe 2021-12-18 11:44:34 +11:00
md_5
d181e1edd9
Fix serializing unhandled NBT + add unit test with unhandled NBT 2021-11-23 12:35:42 +11:00
md_5
a7b8b0270a
Update to Minecraft 1.18-pre5 2021-11-22 09:00:00 +11:00
md_5
eb19161294
SPIGOT-6783: Items do not appear in custom anvil inventories 2021-11-04 18:17:58 +11:00
Doc
cef1fda37b
#947: Add missing spawn eggs for SpawnEggMeta 2021-10-30 18:34:04 +11:00
blablubbabc
dc764e7a2f
#877: Improve and simplify CraftBlockState 2021-09-29 18:56:16 +10:00
DerFrZocker
a0a37f416c
SPIGOT-6630: Replacing an enchantment on an item creates a conflict error 2021-08-24 18:10:30 +02:00
blablubbabc
7c8bbcbee7
SPIGOT-6716: Preserve the order of stored enchantments of enchanted books.
In some cases, differences in this order can result in item stack
comparisons to fails.
2021-08-20 19:41:17 +10:00
md_5
82f0955b3b
SPIGOT-6666: NPE when deserializing bundle 2021-07-23 16:38:51 +10:00
md_5
fb556bfa14
Update to Minecraft 1.17.1 2021-07-07 00:00:00 +10:00
Doc
07ed44a415
SPIGOT-6527: Add AxolotlBucketMeta 2021-07-04 09:32:25 +10:00
Doc
7aa02e3a31
SPIGOT-6615 Fix Glow Item Frame to use EntityTagMeta 2021-07-03 09:33:04 +10:00
md_5
470050ad1e
SPIGOT-6587: Update documentation/error of drop chance API 2021-06-20 12:15:28 +10:00
md_5
ded19075b1
SPIGOT-6570: Missing InventoryType: COMPOSTER 2021-06-17 08:29:15 +10:00
md_5
d7ef1e91fa
SPIGOT-6558: Attempt to improve SkullMeta 2021-06-16 10:28:42 +10:00
md_5
622cf61119
SPIGOT-6555: Cannot access shield BlockStateMeta 2021-06-15 13:06:23 +10:00
md_5
d9c69b44da
SPIGOT-6529: Fix BundleMeta#setItems 2021-06-13 08:48:13 +10:00
md_5
74575d4888
SPIGOT-6506: Fix crash with custom inventories 2021-06-11 19:20:20 +10:00
md_5
e2f5ea34e9
Update to Minecraft 1.17 2021-06-11 15:00:00 +10:00