public interface IToolStation
GameContent.Tiles.CONSTRUCTION_TABLE or GameContent.Tiles.SMITHING_TABLE| Modifier and Type | Method and Description |
|---|---|
default void |
damageTool(ConstructionTool tool)
Damages the specified tool in the table if it is found
|
default java.util.List<ConstructionTool> |
getMissingTools(java.util.List<ConstructionTool> requiredTools) |
IFilteredInventory |
getTileInventory() |
ItemInstance |
getTool(ToolProperty tool)
Attempts to get the tool item from the tile given the required tool property.
|
java.util.List<ItemInstance> |
getTools() |
ItemInstance |
insertTool(ItemInstance tool)
Attempts to insert the given
ItemInstance into the station. |
java.util.List<ItemInstance> getTools()
default java.util.List<ConstructionTool> getMissingTools(java.util.List<ConstructionTool> requiredTools)
ItemInstance getTool(ToolProperty tool)
tool - The ToolProperty to get.ItemInstance insertTool(ItemInstance tool)
ItemInstance into the station.tool - The item to try insertdefault void damageTool(ConstructionTool tool)
tool - Tool to be damagedIFilteredInventory getTileInventory()