Skip to content

Commit

Permalink
Added .item:serializer module to automatically load and save item o…
Browse files Browse the repository at this point in the history
…bjects.

Added parsers:
- [EnchantmentParser](item/serializer/src/main/java/it/angrybear/serializers/EnchantmentParser.java);
- [ItemParser](item/serializer/src/main/java/it/angrybear/serializers/ItemParser.java);
- [ShapeParser](item/serializer/src/main/java/it/angrybear/serializers/ShapeParser.java);
- [ShapedRecipeParser](item/serializer/src/main/java/it/angrybear/serializers/ShapedRecipeParser.java);
- [ShapelessRecipeParser](item/serializer/src/main/java/it/angrybear/serializers/ShapelessRecipeParser.java);
- [FurnaceRecipeParser](item/serializer/src/main/java/it/angrybear/serializers/FurnaceRecipeParser.java).
Added [YAGLParser](item/serializer/src/main/java/it/angrybear/serializers/YAGLParser.java) to automatically load parsers.
Moved everything to package `it.angrybear.yagl`.
Reworked `Item#copy()` method: it will try to get a default empty constructor from the current class. If it fails, it defaults to `ItemImpl`.
Fixed `Item#copy(Class)` with automatic resolution of interfaces: passing `Item` or `BukkitItem` will convert them into `ItemImpl` and `BukkitItemImpl`.
Fixed `Item#copy(Class)` not checking if current item has field of receiving class.
Fixed various bugs in **ShapedRecipe**.
Fixed recipes not copying items in their most default state (Item).
Updated FulmiCollection to version 1.4.1.
  • Loading branch information
fulminazzo committed Mar 5, 2024
1 parent 64ba6a2 commit 912b18f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
shadow = "8.1.1"
delombok = "8.4"

fulmicollection = "1.4"
fulmicollection = "1.4.1"
yamlparser = "1.5.9"

spigot = "1.14-R0.1-SNAPSHOT"
Expand Down

0 comments on commit 912b18f

Please sign in to comment.