545 Commits

Author SHA1 Message Date
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
md_5
bb9a6e9904
SPIGOT-7646: Don't duplicate PDC in customTag / retain old values 2024-04-29 07:38:24 +10:00
md_5
91b1fc3f1c
SPIGOT-7644: Fix ItemMeta#getAsString 2024-04-28 07:41:53 +10:00
md_5
7c7ac5eb24
SPIGOT-7636: Fix clearing ItemMeta 2024-04-25 16:15:01 +10:00
md_5
6f00f0608a
SPIGOT-7632: Control middle clicking chest does not copy contents 2024-04-25 08:41:39 +10:00
DerFrZocker
0297f87bb0
SPIGOT-7355: More field renames and fixes
- Rename MapCursor Types to match their Minecraft names
- SPIGOT-7355: Rename ItemFlag#HIDE_POTION_EFFECTS to better reflect its function
- Fix Attribute rename (CraftBukkit only)
- Add rename routing validation (CraftBukkit only)
2024-04-25 07:49:44 +10:00
md_5
e77951fac9
Fix equality of deserialized display names 2024-04-25 07:26:05 +10:00
md_5
c66f3e4fdb
SPIGOT-7631: Fix deserialisation of BlockStateMeta 2024-04-25 07:26:03 +10:00
DerFrZocker
c77362caeb
SPIGOT-7625: ItemStack with lore cannot be serialized in 1.20.5 2024-04-24 17:53:14 +10:00
md_5
062d2bb13b
SPIGOT-7621: Fix empty strings in item lore 2024-04-24 08:12:08 +10:00
2008Choco
48f96fbbbd
#1379: Rename FoodMeta#get/setSaturationModifier() to #get/setSaturation() 2024-04-24 02:32:48 +10:00
md_5
735b2d0d7f
Update to Minecraft 1.20.5 2024-04-24 01:15:00 +10:00
Miles Holder
ca3bc37075
#1361: Add more translation keys 2024-03-17 10:26:55 +11:00
DerFrZocker
3c1b778713
SPIGOT-6911, #1349: Change max book length in CraftMetaBook 2024-01-31 19:59:28 +11:00
Doc
b44bf5aa87
SPIGOT-7575: SuspiciousStewMeta creates invalid PotionEffect data 2024-01-24 21:45:52 +11:00
DerFrZocker
161784713a
#1340: Centralize the conversion from and to Minecraft / Bukkit registry items even more and add a test case for them 2024-01-22 20:36:36 +11:00
Nothixal
c8b4da803d
SPIGOT-6921, #1330: Add methods to remove all enchantments on an ItemStack 2024-01-16 07:38:55 +11:00
Miles Holder
9fde4c037c
#1324: Improve ItemFactory#enchantItem consistency 2024-01-06 16:07:58 +11:00
Bjarne Koll
4e419c774c
#1295: Define native persistent data types for lists 2024-01-06 16:03:58 +11:00
DerFrZocker
2e88514ad3
#1325: Use CraftBlockType and CraftItemType instead of CraftMagicNumbers to convert between minecraft and bukkit block / item representation 2023-12-29 08:36:38 +11:00
BlackHole
53ebb05e39
SPIGOT-7554, #1323: Add DecoratedPotInventory 2023-12-28 08:07:06 +11:00