524 Commits

Author SHA1 Message Date
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
blablubbabc
7df18510f6
SPIGOT-7555: Don't cast ItemFlags to byte
This fixes an issue with the HIDE_ARMOR_TRIM flag being lost during item
deserialization.
2023-12-27 11:15:24 +11:00
drXor
57d7ef433c
Preserve empty enchantment tags for glow effect
Adapted from Spigot commit cc9a1a417f1ac95a7957db8636e31c8fc2baf4e9.
2023-12-23 12:50:04 +11:00
md_5
b3b43a6ad2
Add Checkstyle check for unused imports 2023-12-17 10:26:49 +11:00
md_5
0fd734950f
SPIGOT-7528: Fix certain custom shaped recipes 2023-12-06 20:23:28 +11:00
DerFrZocker
8232a74cf8
SPIGOT-6026: Pull PotionEffectType and Enchantment from registry 2023-12-06 03:40:00 +11:00
md_5
07e5dd5d59
Update to Minecraft 1.20.3 2023-12-06 03:40:00 +11:00
Jishuna
0478e0417b
#1266: Add support for virtual entities 2023-11-19 19:03:35 +13:00
DerFrZocker
7c6bf15d44
Fix SkullMeta configuration serialization / deserialization with note block sound 2023-11-09 07:30:14 +01:00
Miles Holder
2c1b5f78fc
SPIGOT-7514, #1289: Add "Enchantment Roll" API to enchant items according to Minecraft mechanics 2023-11-09 06:30:23 +11:00
md_5
6aa644ae98
#992: Add API to get full result of crafting items 2023-11-06 20:37:34 +11:00
DerFrZocker
5a72c3c040
SPIGOT-7510: Try to fix broken reflection usage of plugins 2023-10-26 07:46:30 +02:00
Jishuna
224f733ac1
Fix NPE introduced in #f4d977e 2023-10-22 20:36:35 -04:00
md_5
f4d977e794
Simplify texture updating in CraftMetaSkull 2023-10-21 13:39:52 +11:00
DerFrZocker
71b0135cc7
SPIGOT-5753: Back PotionType by a minecraft registry 2023-10-09 20:22:53 +11:00
md_5
ad0e574345
SPIGOT-7502: CraftMetaItem - cannot deserialize BlockStateTag 2023-10-09 07:16:14 +11:00
Bjarne Koll
f0661c3514
#1230: Move unstructured PDC NBT serialisation to SNBT
The initial implementation of the CraftNBTTagConfigSerialiser attempted
to represent the entire NBT tree in yaml. While the tree structure
itself is nicely represented, the values and their respective types
become increasingly difficult to properly store in the context of
snakeyml/yml in general.

This is mainly due to the fact that nbt offers a lot of different types
compared to yaml, specifically the primitive arrays and different
floating point values are troublesome as they require parsing via mojang
parsers due to their custom format.

To build a future proof system for unstructured nbt in spigot yml,
this commit moves the entire serialisation fully into SNBT,
producing a single string as output rather than a full yml tree.
SNBT remains easily readable and editable for server owners, which was
one of the main criteria during the initial implementation of the
serialiser (preventing the use of bas64ed gzipped nbt bytes), while also
completely using mojangs parsing, eliminating any need for custom
parsing logic in spigot.

Additionally, a string allows for very straight forward handling of
legacy data by simply parsing strings as SNBT and maps/yml trees as
legacy content, depending on what type snakeyml produces after parsing
the yml content, removing the need for a versioning schema.
2023-09-24 10:12:19 +10:00
md_5
f0702775c3
SPIGOT-7486: Alternate approach to null profile names 2023-09-22 07:36:30 +10:00
DerFrZocker
02d4907887
#1250: Standardize and centralize Bukkit / Minecraft registry conversion 2023-09-22 03:02:16 +10:00
md_5
28c1023286
Update to Minecraft 1.20.2 2023-09-22 02:40:00 +10:00
DerFrZocker
10219df3a6
#1248: Load GameEvent and MusicInstrument from registry 2023-09-02 12:55:23 +10:00
md_5
4be756ecb4
SPIGOT-7445: Fix opening smithing inventory 2023-07-31 07:04:27 +10:00