565 Commits

Author SHA1 Message Date
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
DerFrZocker
9608279815
#1403, SPIGOT-4288, SPIGOT-6202: Add material rerouting in preparation for the switch to ItemType and BlockType
This also moves the conversion from and to legacy material to the method
calls of legacy plugins, and no longer allows them directly in the
server.

This has the side effect of fixing some legacy plugin issues, such as
SPIGOT-4288, SPIGOT-6161. Also fixes legacy items sometimes not stacking
in inventory when using addItem, a client disconnect when using legacy
items in recipes and probably some more.
2024-05-29 06:48:55 +10:00
md_5
4af0f22e8a
SPIGOT-7664: Item meta should prevail over block states 2024-05-10 19:33:23 +10:00
md_5
c2ccc46ec3
SPIGOT-7666: Fix access to llama and horse special slot 2024-05-10 19:23:01 +10:00
md_5
66f1f439aa
Restore null page behaviour of signed books even though not strictly allowed by API 2024-05-10 19:08:54 +10:00
md_5
12360a7ece
Remove unused imports 2024-05-06 20:30:27 +10:00
2008Choco
147b098b48
#1397: Add ItemMeta#getAsComponentString() 2024-05-06 20:23:39 +10:00
md_5
428aefe0e4
Largely restore deprecated PotionData API 2024-05-05 20:45:48 +10:00
Jishuna
afe5b5ee93
#1275: Add internal ItemType and BlockType, delegate Material methods to them
Co-authored-by: Bjarne Koll <lynxplay101@gmail.com>
Co-authored-by: DerFrZocker <derrieple@gmail.com>
Co-authored-by: md_5 <git@md-5.net>
2024-05-05 10:08:54 +10:00
md_5
4418807574
Support both entity_data and bucket_entity_data on axolotl/fish buckets 2024-05-04 14:25:29 +10:00
md_5
f2182ed473
SPIGOT-7659: TropicalFishBucketMeta should use BUCKET_ENTITY_DATA 2024-05-04 08:49:06 +10:00
DerFrZocker
2a6207fe15
#1393: Improve field rename handling and centralize conversion between bukkit and string more 2024-05-04 08:19:07 +10:00
md_5
ecfa4f9734
SPIGOT-7654: ItemStack#isSimilar does not work with empty BlockStateMeta 2024-05-02 21:22:32 +10:00
md_5
4460ecc49e
SPIGOT-7655: ItemMeta#addItemFlags(ItemFlag.HIDE_ATTRIBUTES) not working when no attribute modifiers set 2024-05-02 21:00:12 +10:00