Interface IToolStation


public interface IToolStation
Implement this if you want your tile entity to contain and use construction tools similar to GameContent.Tiles.CONSTRUCTION_TABLE or GameContent.Tiles.SMITHING_TABLE
  • Method Details

    • getTools

      List<ItemInstance> getTools()
    • getMissingTools

      default List<ConstructionTool> getMissingTools(List<ConstructionTool> requiredTools)
    • getTool

      ItemInstance getTool(ToolProperty tool)
      Attempts to get the tool item from the tile given the required tool property.
      Parameters:
      tool - The ToolProperty to get.
      Returns:
      The item in the tile. Null if the item doesn't exist.
    • insertTool

      ItemInstance insertTool(ItemInstance tool)
      Attempts to insert the given ItemInstance into the station.
      Parameters:
      tool - The item to try insert
      Returns:
      The remaining item after insertion, or the tool if it couldn't be inserted.
    • damageTool

      default void damageTool(ConstructionTool tool)
      Damages the specified tool in the table if it is found
      Parameters:
      tool - Tool to be damaged
    • getTileInventory

      IFilteredInventory getTileInventory()