Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/main/kotlin/com/steelextractor/SteelExtractor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import com.steelextractor.extractors.PoiTypesExtractor
import com.steelextractor.extractors.Potions
import com.steelextractor.extractors.StructureStarts
import com.steelextractor.extractors.Tags
import com.steelextractor.extractors.Waxables
import kotlinx.io.IOException
import net.fabricmc.api.ModInitializer
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents
Expand Down Expand Up @@ -91,6 +92,7 @@ object SteelExtractor : ModInitializer {
LevelEvents(),
Tags(),
StructureStarts(),
Waxables(),
Weathering(),
PoiTypesExtractor()
)
Expand Down
27 changes: 27 additions & 0 deletions src/main/kotlin/com/steelextractor/extractors/Waxables.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package com.steelextractor.extractors

import com.google.gson.JsonElement
import com.google.gson.JsonObject
import com.steelextractor.SteelExtractor
import net.minecraft.core.registries.BuiltInRegistries
import net.minecraft.server.MinecraftServer
import net.minecraft.world.item.HoneycombItem

class Waxables : SteelExtractor.Extractor {
override fun fileName(): String {
return "steel-core/build/waxables.json"
}

override fun extract(server: MinecraftServer): JsonElement {
val topLevelJson = JsonObject()

for ((normal, waxed) in HoneycombItem.WAXABLES.get()) {
topLevelJson.addProperty(
BuiltInRegistries.BLOCK.getKey(normal).path,
BuiltInRegistries.BLOCK.getKey(waxed).path
)
}

return topLevelJson
}
}
Loading