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.
The new merge_nbt boolean field in the replace_inventory entity action type determines if the NBT of the affected item stack should be merged with the NBT of the replacement item stack; it has a default value of false.
The new amount integer field in the drop_inventory entity action type determines how many of the affected items should be dropped; it has a default value of 0, which indicates that all items will be dropped.
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
This PR adds a new field to the
replace_inventory
anddrop_inventory
entity action types:merge_nbt
boolean field and theamount
integer field respectively.merge_nbt
boolean field in thereplace_inventory
entity action type determines if the NBT of the affected item stack should be merged with the NBT of the replacement item stack; it has a default value offalse
.amount
integer field in thedrop_inventory
entity action type determines how many of the affected items should be dropped; it has a default value of0
, which indicates that all items will be dropped.This PR also changes the accessor for the
SLOT_NAMES_TO_SLOT_COMMAND_ID
map inItemSlotArgumentType
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: