apace100 / apoli

MIT License
40 stars 46 forks source link

Add a new field to `replace_inventory` and `drop_inventory` entity action types #69

Closed eggohito closed 1 year ago

eggohito commented 2 years ago

This PR adds a new field to the replace_inventory and drop_inventory entity action types: merge_nbt boolean field and the amount integer field respectively.

This PR also changes the accessor for the SLOT_NAMES_TO_SLOT_COMMAND_ID map in ItemSlotArgumentType to a static method, as it should have been (oops). This change should get rid of this message that can be found in the logs:

[XX:XX:XX] [main/INFO]: apoli.mixins.json:ItemSlotArgumentTypeAccessor from mod apoli->@Accessor[FIELD_GETTER]::getSlotNamesToSlotCommandId()Ljava/util/Map; should be static as its target is