Interface IPurifierAction
- All Known Implementing Classes:
CollectPotionPurifyAction,DisenchantPurifyAction,ToolBadEnchantPurifyAction
public interface IPurifierAction
Actions that can be registered in the
IPurifierActionRegistry.-
Method Summary
Modifier and TypeMethodDescriptionbooleancanWork(BlockEntityPurifier tile) Check if he Purifier can work in the current state.booleanisItemValidForAdditionalSlot(net.minecraft.world.item.ItemStack itemStack) Check if the given item can be inserted into the additional slot of the Purifier.booleanisItemValidForMainSlot(net.minecraft.world.item.ItemStack itemStack) Check if the given item can be inserted into the Purifier to purify.booleanwork(BlockEntityPurifier tile) Execute a valid Purifier action for the given Purifier tile.
-
Method Details
-
isItemValidForMainSlot
boolean isItemValidForMainSlot(net.minecraft.world.item.ItemStack itemStack) Check if the given item can be inserted into the Purifier to purify.- Parameters:
itemStack- TheItemStackthat could be inserted.- Returns:
- If the given item can be inserted into the Purifier.
-
isItemValidForAdditionalSlot
boolean isItemValidForAdditionalSlot(net.minecraft.world.item.ItemStack itemStack) Check if the given item can be inserted into the additional slot of the Purifier.- Parameters:
itemStack- TheItemStackthat could be inserted.- Returns:
- If the given item can be inserted into the additional slot of the Purifier.
-
canWork
Check if he Purifier can work in the current state.- Parameters:
tile- The Purifier tile.- Returns:
- If the Purifier can work in the current state.
-
work
Execute a valid Purifier action for the given Purifier tile.- Parameters:
tile- The Purifier tile.- Returns:
- If work is done
-