Companion
object Companion
Functions
Link copied to clipboard
returns CoordinateComponent from the given index.
Link copied to clipboard
fun getComponentsShapeString(list: Collection<CoordinateComponent>, existsSlotChar: Char = '#', notExistsSlotChar: Char = '_'): String
※ This is a high cost function.
Link copied to clipboard
fun mapToRecipeMap(source: Map<CMatter, Set<CoordinateComponent>>): Map<CoordinateComponent, CMatter>
Builds a Map<CoordinateComponent, CMatter> from an inverted mapping of matter to coordinates.
Link copied to clipboard
fun recipeMapFromStringList(lines: List<String>, map: Map<String, CMatter>): Map<CoordinateComponent, CMatter>
Builds a Map<CoordinateComponent, CMatter> from a list of comma-separated rows and a token-to-matter mapping.
Link copied to clipboard
returns specified size square frame coordinates set.
Link copied to clipboard
fun squareFill(size: Int, dx: Int = 0, dy: Int = 0, safeTrim: Boolean = true): Set<CoordinateComponent>
returns specified size square coordinates set.