diff options
author | nea <nea@nea.moe> | 2023-05-05 00:02:13 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-05-05 00:02:13 +0200 |
commit | dc4866fe01abf7b33829bbfcd9d266c381c6c6af (patch) | |
tree | 89e8709a8781e943bd4eb6459564608b8cf4c4c6 /src/main/kotlin/moe/nea/notenoughupdates/rei/NEUReiPlugin.kt | |
parent | 57885f1f71774a79ee08af024b872b73cadc05bd (diff) | |
download | firmament-dc4866fe01abf7b33829bbfcd9d266c381c6c6af.tar.gz firmament-dc4866fe01abf7b33829bbfcd9d266c381c6c6af.tar.bz2 firmament-dc4866fe01abf7b33829bbfcd9d266c381c6c6af.zip |
Add very bad forge recipes
Diffstat (limited to 'src/main/kotlin/moe/nea/notenoughupdates/rei/NEUReiPlugin.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/notenoughupdates/rei/NEUReiPlugin.kt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/main/kotlin/moe/nea/notenoughupdates/rei/NEUReiPlugin.kt b/src/main/kotlin/moe/nea/notenoughupdates/rei/NEUReiPlugin.kt index 647862e..34d98fa 100644 --- a/src/main/kotlin/moe/nea/notenoughupdates/rei/NEUReiPlugin.kt +++ b/src/main/kotlin/moe/nea/notenoughupdates/rei/NEUReiPlugin.kt @@ -14,6 +14,7 @@ import net.minecraft.item.ItemStack import net.minecraft.text.Text import net.minecraft.util.Identifier import moe.nea.notenoughupdates.recipes.SBCraftingRecipe +import moe.nea.notenoughupdates.recipes.SBForgeRecipe import moe.nea.notenoughupdates.repo.ItemCache.asItemStack import moe.nea.notenoughupdates.repo.RepoManager import moe.nea.notenoughupdates.util.SkyblockId @@ -23,7 +24,7 @@ class NEUReiPlugin : REIClientPlugin { companion object { fun EntryStack<NEUItem>.asItemEntry(): EntryStack<ItemStack> { - return EntryStack.of(VanillaEntryTypes.ITEM, value?.asItemStack()) + return EntryStack.of(VanillaEntryTypes.ITEM, value.asItemStack()) } val SKYBLOCK_ITEM_TYPE_ID = Identifier("notenoughupdates", "skyblockitems") @@ -35,10 +36,18 @@ class NEUReiPlugin : REIClientPlugin { override fun registerCategories(registry: CategoryRegistry) { registry.add(SBCraftingRecipe.Category) + registry.add(SBForgeRecipe.Category) } override fun registerDisplays(registry: DisplayRegistry) { - registry.registerDisplayGenerator(SBCraftingRecipe.Category.catIdentifier, SkyblockRecipeDynamicGenerator) + registry.registerDisplayGenerator( + SBCraftingRecipe.Category.catIdentifier, + SkyblockCraftingRecipeDynamicGenerator + ) + registry.registerDisplayGenerator( + SBForgeRecipe.Category.categoryIdentifier, + SkyblockForgeRecipeDynamicGenerator + ) } override fun registerCollapsibleEntries(registry: CollapsibleEntryRegistry) { |