Class CommonPlayerMixin
java.lang.Object
johnsmith.enchantingoverhauled.mixin.entity.player.CommonPlayerMixin
- All Implemented Interfaces:
SavedItemsAccessor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a newSavedItemEntryto the list of items pending restoration.Retrieves the mutable list of items that were successfully saved and should be restored (e.g., items affected by a probabilistic Binding Curse that survived player death).
-
Constructor Details
-
CommonPlayerMixin
public CommonPlayerMixin()
-
-
Method Details
-
enchanting_overhauled$getSavedItems
Description copied from interface:SavedItemsAccessorRetrieves the mutable list of items that were successfully saved and should be restored (e.g., items affected by a probabilistic Binding Curse that survived player death).- Specified by:
enchanting_overhauled$getSavedItemsin interfaceSavedItemsAccessor- Returns:
- A
ListofSavedItemEntryobjects.
-
enchanting_overhauled$addSavedItem
Description copied from interface:SavedItemsAccessorAdds a newSavedItemEntryto the list of items pending restoration.This is typically called just before the inventory is dropped/cleared on death.
- Specified by:
enchanting_overhauled$addSavedItemin interfaceSavedItemsAccessor- Parameters:
entry- The item and its original slot index to be saved.
-