Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove possibly incorrect JEI Category import #214

Merged
merged 1 commit into from
Aug 3, 2024
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
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