map To Recipe Map
fun mapToRecipeMap(source: Map<CMatter, Set<CoordinateComponent>>): Map<CoordinateComponent, CMatter>
Returns CoordinateComponent and CMatter map from map
val source = mapOf(
CMatterImpl.of(Material.GOLD_BLOCK) to setOf(
CoordinateComponent(0, 0),
CoordinateComponent(1, 0),
CoordinateComponent(2, 0),
CoordinateComponent(0, 1),
CoordinateComponent(2, 1),
CoordinateComponent(0, 2),
CoordinateComponent(1, 2),
CoordinateComponent(2, 2),
),
CMatterImpl.of(Material.APPLE) to setOf(CoordinateComponent(1, 1)
)
val map = CoordinateComponent.mapToRecipeMap(source)
// G: GOLD_BLOCK, A: APPLE
// G,G,G
// G,A,G
// G,G,GContent copied to clipboard
Return
Map Mapping of coordinates and matters
Since
5.0.17-p1
Parameters
source
Source map