578 Commits

Author SHA1 Message Date
md_5
459c38af30
Update to Minecraft 1.21.2 2024-10-23 02:15:00 +11:00
Doc
ded1836741
Fix HIDE_ENCHANTS flag in items without enchantments 2024-10-07 14:16:09 -03:00
Miles Holder
72ce823cda
#1487: Add specific getTopInventory methods for InventoryView derivatives 2024-10-06 18:45:12 +11:00
blablubbabc
11a5e840ca
SPIGOT-7907, #1484: Improve merchant recipe item matching behavior to more closely align with older versions
Before the update for MC 1.20.5 (item components), merchant recipes
would accept items with additional NBT tags. Since 1.20.5, merchant
recipes created via the Bukkit API no longer accept additional
components.

This changes which component types we pick for merchant recipes created
via the API to more closely match the behavior from before the MC 1.20.5
update, i.e. ignore any empty / default components again.
2024-10-06 18:32:00 +11:00
md_5
45b66f7e4c
SPIGOT-7909: Always set HIDE_ENCHANTS flag to item if flag is set 2024-10-06 18:25:07 +11:00
James Perry
527041ab59
SPIGOT-7902, #1477: Fix CraftMetaPotion#hasCustomEffects() does not check if customEffects (List) is empty 2024-09-27 08:35:25 +10:00
Miles Holder
d25e1e7225
#1481: Fix BeaconView#set[X]Effect(null) 2024-09-25 07:52:14 +10:00
md_5
f35bae9ec8
Fix missing hasJukeboxPlayable 2024-09-17 21:09:21 +10:00
md_5
8a6f8b6d8c
SPIGOT-7881: CTRL+Pick Block saves position data into item 2024-09-15 17:17:10 +10:00
md_5
7913b3be72
SPIGOT-7899: Smithing recipes don't require inputs 2024-09-15 16:50:24 +10:00
md_5
8150664496
SPIGOT-7891: Can't remove second ingredient of MerchantRecipe 2024-09-07 18:57:55 +10:00
Miles Holder
45c206f2c5
#1458: Add MenuType API 2024-09-07 18:52:00 +10:00
Miles Holder
19c8ef9ae3
SPIGOT-7867: Merchant instanceof AbstractVillager always returns false 2024-09-07 18:14:09 +10:00
md_5
8679620b5d
SPIGOT-7889: Fix tool component deserialisation without speed and/or correct-for-drops 2024-08-31 08:49:31 +10:00
Doc
8d52226914
SPIGOT-7882, #1467: Fix conversion of name in Profile Component to empty if it is missing 2024-08-31 08:40:57 +10:00
Doc
7ccb86cc08
#1465: Add FireworkMeta#hasPower 2024-08-24 07:44:52 +10:00
Doc
93480d5d61
SPIGOT-7868, #1463: Fix default and max power in FireworkMeta 2024-08-17 08:37:46 +10:00
blablubbabc
8ee6fd1b8d
SPIGOT-7857: Improve ItemMeta block data deserialization 2024-08-08 07:44:52 +10:00
md_5
8f26c30c69
SPIGOT-7857: Fix spurious internal NBT tag when deserializing BlockStateMeta 2024-08-06 19:07:10 +10:00
Miles Holder
00fc9fb641
SPIGOT-7853: AnvilInventory#getRepairCost() always returns 0 2024-07-30 07:11:55 +10:00
ploppyperson
7501e2e049
#1450: Add CrafterCraftEvent
Co-authored-by: md_5 <git@md-5.net>
2024-07-30 07:07:10 +10:00
Miles Holder
d53d0d0b19
#1456: Fix inverted logic in CraftCrafterView#setSlotDisabled 2024-07-28 08:34:00 +10:00
Miles Holder
9c3bd43905
#1431: Add API for InventoryView derivatives 2024-07-27 10:01:29 +10:00
Doc
0cc6acbc4e
SPIGOT-7849: Fix FoodComponent serialize with "using-converts-to" using null 2024-07-26 07:25:02 +10:00
md_5
2c54749524
Don't rely on tags for CraftItemMetas 2024-07-24 19:40:55 +10:00
md_5
20d107e467
SPIGOT-7846: Fix ItemMeta for hanging signs 2024-07-24 19:40:50 +10:00
Doc
2c12b2187e
SPIGOT-7809: Add ShieldMeta and fix setting shield base colours
Co-authored-by: md_5 <git@md-5.net>
2024-07-20 10:15:22 +10:00
Doc
8fd64b0912
SPIGOT-7806: Handle both loot and inventory item drop behaviour in PlayerDeathEvent 2024-07-06 17:25:39 +10:00
md_5
fd2ef563a0
SPIGOT-7812: Revert "SPIGOT-7809: Restore shield/banner conversion for base colours"
This reverts commit 19335f69e308f6993e9641d0a0e1c38488483736.
2024-07-04 07:01:08 +10:00
md_5
19335f69e3
SPIGOT-7809: Restore shield/banner conversion for base colours 2024-07-03 20:21:13 +10:00
blablubbabc
ae4f5a0be5
SPIGOT-7805: Fix jukebox deserialization 2024-07-01 07:08:06 +10:00
blablubbabc
62e3b73a49
SPIGOT-7804: Fix written book serialization
* Account for null/missing values when deserializing the 'resolved' and
  'generation' fields.
* Serialize the book pages as JSON strings.
* Avoid redundant conversion from strings to components to JSON and back to
  components during deserialization.
  Add CraftChatMessage.fromJSONOrString that accepts a maxLength argument
  and remove the no longer used fromJSONOrStringToJSON, fromStringToJSON,
  and fromJSONComponent helper methods.
2024-06-30 16:27:23 +10:00
blablubbabc
ee3d7258a5
SPIGOT-7789: Fix NPE in CraftMetaFirework applyToItem 2024-06-20 07:04:11 +10:00
2008Choco
b2b08f68cf
SPIGOT-7770: Fix certain shaped recipes not registering 2024-06-18 19:06:07 +10:00
md_5
2c9dd879e7
SPIGOT-7771: Material.getDefaultAttributes always returns an empty map 2024-06-17 19:44:14 +10:00
Miles Holder
eae9f760c9
#1414: Convert InventoryView to interface 2024-06-16 08:47:38 +10:00
md_5
28287259c0
Remove unused import 2024-06-15 12:52:01 +10:00
md_5
eb9a7dde02
SPIGOT-7757: Cannot set item in Stonecutter Inventory 2024-06-15 12:48:38 +10:00
md_5
f8be9d7521
Move deserialized removed unhandled tags to dedicated removedTags 2024-06-15 10:09:35 +10:00
md_5
a7e576186d
Fix potential mutability issue with CraftMetaItem copy constructor 2024-06-15 07:03:03 +10:00
md_5
9958854527
SPIGOT-7741: Vanilla ItemComponent in commands can't remove components 2024-06-15 07:03:03 +10:00
DerFrZocker
9ef69aa0b2
#1284: Move ItemType <-> ItemMeta linking to a centralized place 2024-06-15 06:53:46 +10:00
md_5
a4c2ee70db
Update to Minecraft 1.21 2024-06-14 01:05:00 +10:00
md_5
0dae4c62c3
Fix spawn egg equality check and copy constructor 2024-06-11 06:59:14 +10:00
md_5
ab59e847ca
Fix spawn eggs with no entity creating invalid stacks and disconnect creative clients
Example: /give @s minecraft:cat_spawn_egg[minecraft:max_stack_size=1,minecraft:max_damage=100,minecraft:damage=10] 1
2024-06-10 14:06:38 +10:00
Doc
c6b4d5a87f
SPIGOT-7731: Spawn eggs cannot have damage 2024-06-10 14:06:34 +10:00
blablubbabc
340ccd57f7
SPIGOT-7735: Fix serialization of player heads with note block sound 2024-06-10 08:35:53 +10:00
mfnalex
7189ba6362
#1360: Add Material#isCompostable and Material#getCompostChance 2024-06-05 07:15:52 +10:00
blablubbabc
d6607c7dd6
SPIGOT-7675: Fix FoodComponent config deserialization
Be more lenient when converting floating point numbers during config
deserialization of item data.
2024-05-31 07:14:09 +10:00
2008Choco
3ec31ca75e
#1405: Add a tool component to ItemMeta
Co-authored-by: md_5 <git@md-5.net>
2024-05-29 06:53:59 +10:00