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 Summary
Modifier and TypeMethodDescriptiondefault voiddamageTool(ConstructionTool tool) Damages the specified tool in the table if it is founddefault List<ConstructionTool>getMissingTools(List<ConstructionTool> requiredTools) getTool(ToolProperty tool) Attempts to get the tool item from the tile given the required tool property.getTools()insertTool(ItemInstance tool) Attempts to insert the givenItemInstanceinto the station.
-
Method Details
-
getTools
List<ItemInstance> getTools() -
getMissingTools
-
getTool
Attempts to get the tool item from the tile given the required tool property.- Parameters:
tool- TheToolPropertyto get.- Returns:
- The item in the tile. Null if the item doesn't exist.
-
insertTool
Attempts to insert the givenItemInstanceinto 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
Damages the specified tool in the table if it is found- Parameters:
tool- Tool to be damaged
-
getTileInventory
IFilteredInventory getTileInventory()
-