repo for my hex addons :3
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cc shorthand

+9 -12
+7
plugin/src/main/kotlin/org/eu/net/pool/mc_plugin/FabricModBuilder.kt
··· 43 43 inline fun contact(action: JsonDsl.Object.() -> Unit) = contact.run(action) 44 44 inline fun contact(name: String, url: String) = contact { put(name, url) } 45 45 inline fun custom(action: JsonDsl.Object.() -> Unit) = custom.run(action) 46 + fun cardinalComponents(vararg ids: String) = custom { 47 + array("cardinal-components") { 48 + ids.forEach { 49 + put(if (it.contains(':')) id else "$id:$it") 50 + } 51 + } 52 + } 46 53 fun author(name: String) { 47 54 authors.put(name) 48 55 }
+1 -6
project/hexic/build.gradle.kts
··· 234 234 entrypoint("cardinal-components", "org.eu.net.pool.hexic.ComponentInit") 235 235 mixins("hexic.mixins.json") 236 236 mixins("hexic.client.mixins.json", Environment.Client) 237 - custom { 238 - array("cardinal-components") { 239 - put("hexic:player_wisp") 240 - put("hexic:server_info") 241 - } 242 - } 237 + cardinalComponents("player_wisp", "server_info") 243 238 } 244 239 } 245 240
+1 -6
project/hexxytounge/build.gradle.kts
··· 49 49 entrypoint("org.eu.net.pool.hexxytounge.main\$package::init") 50 50 entrypoint("cardinal-components", "org.eu.net.pool.hexxytounge.Components") 51 51 mixins("hexxytongge.mixins.json") 52 - custom { 53 - array("cardinal-components") { 54 - put("hexxytounge:murmur") 55 - put("hexxytounge:reveal") 56 - } 57 - } 52 + cardinalComponents("murmur", "reveal") 58 53 } 59 54 } 60 55