Skip to content

Commit

Permalink
remove erroring jei category import from example (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
WaitingIdly authored Aug 3, 2024
1 parent 8087f71 commit 098abf0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions examples/postInit/jei.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Auto generated groovyscript example file
// MODS_LOADED: jei

import classes.GenericRecipeCategory
import mezz.jei.api.ingredients.VanillaTypes

log.info 'mod \'jei\' detected, running script'
Expand All @@ -23,10 +22,10 @@ mods.jei.category.hideCategory('minecraft.fuel')
// mods.jei.category.hideAll()

/*mods.jei.category.categoryBuilder()
.id(GenericRecipeCategory.UID) // Note that `GenericRecipeCategory` must be defined elsewhere, and this example presumes certain fields and methods exist.
.category(guiHelper -> new GenericRecipeCategory(guiHelper))
.id(classes.GenericRecipeCategory.UID) // Note that `classes.GenericRecipeCategory` must be defined elsewhere, and this example presumes certain fields and methods exist.
.category(guiHelper -> new classes.GenericRecipeCategory(guiHelper))
.catalyst(item('minecraft:clay'))
.wrapper(GenericRecipeCategory.getRecipeWrappers())
.wrapper(classes.GenericRecipeCategory.getRecipeWrappers())
.register()*/


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void applyCustomRecipeCategoryProperties(IModRegistry registry) {
}
}

@RecipeBuilderDescription(example = @Example(value = ".id(GenericRecipeCategory.UID)/*()!*/.category(guiHelper -> new GenericRecipeCategory(guiHelper)).catalyst(item('minecraft:clay')).wrapper(GenericRecipeCategory.getRecipeWrappers())", imports = "classes.GenericRecipeCategory", commented = true, annotations = "groovyscript.wiki.jei.category.annotation"))
@RecipeBuilderDescription(example = @Example(value = ".id(classes.GenericRecipeCategory.UID)/*()!*/.category(guiHelper -> new classes.GenericRecipeCategory(guiHelper)).catalyst(item('minecraft:clay')).wrapper(classes.GenericRecipeCategory.getRecipeWrappers())", commented = true, annotations = "groovyscript.wiki.jei.category.annotation"))
public CategoryBuilder categoryBuilder() {
return new CategoryBuilder();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/groovyscript/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,7 @@ groovyscript.wiki.jei.catalyst.removeByType=Removes all catalyst items from the
groovyscript.wiki.jei.category.title=Categories
groovyscript.wiki.jei.category.description=Modify the Categories visible in JEI, each of which contain recipes and are associated with specific blocks, typically machines.
groovyscript.wiki.jei.category.note0=Hidden Categories will still take up load time, and recipes contained within can still be processed. This only prevents seeing Categories.
groovyscript.wiki.jei.category.annotation=Note that `GenericRecipeCategory` must be defined elsewhere, and this example presumes certain fields and methods exist.
groovyscript.wiki.jei.category.annotation=Note that `classes.GenericRecipeCategory` must be defined elsewhere, and this example presumes certain fields and methods exist.
groovyscript.wiki.jei.category.id.value=Sets the ID of the Category, which must be unique among all other Categories
groovyscript.wiki.jei.category.wrapper.value=Sets the `IRecipeWrapper`s used by the Category to generate entries
groovyscript.wiki.jei.category.catalyst.value=Sets the catalyst ingredients of the Category, which must belong to a class that has ingredient handling in JEI
Expand Down

0 comments on commit 098abf0

Please sign in to comment.