Interface IPurifierAction

All Known Implementing Classes:
CollectPotionPurifyAction, DisenchantPurifyAction, MobHeadDowngradePurifyAction, ToolBadEnchantPurifyAction

public interface IPurifierAction
Actions that can be registered in the IPurifierActionRegistry.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check if he Purifier can work in the current state.
    boolean
    isItemValidForAdditionalSlot(net.minecraft.world.item.ItemStack itemStack)
    Check if the given item can be inserted into the additional slot of the Purifier.
    boolean
    isItemValidForMainSlot(net.minecraft.world.item.ItemStack itemStack)
    Check if the given item can be inserted into the Purifier to purify.
    boolean
    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 - The ItemStack that 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 - The ItemStack that could be inserted.
      Returns:
      If the given item can be inserted into the additional slot of the Purifier.
    • canWork

      boolean canWork(BlockEntityPurifier tile)
      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

      boolean work(BlockEntityPurifier tile)
      Execute a valid Purifier action for the given Purifier tile.
      Parameters:
      tile - The Purifier tile.
      Returns:
      If work is done