File Details
1.7.0: drawable / layout helpers
- R
- Dec 4, 2024
- 80.52 KB
- 21
- 1.16.5
- Forge
File Name
kube_jei-1.7.0.jar
Supported Versions
- 1.16.5
Curse Maven Snippet
KubeJS 1.6.0 -> 1.7.0
drawable / layout helpers
- helper method for creating TickTimer
- helper method for creating an arrow drawable, the same as those displayed in JEI cooking recipe. The arrow drawable can be both static or animated
- helper method for caching animated drawables
- fix ingredient type wrapping on JS side
- add type-specific ingredient drawable for items and fluids to make use of type wrapper
- the
IRecipeLayoutused inrecipeSetHandleris now expanded intoWrappedLayout, with builder-style methods to make working with slot layout easier
builder-style layout setup example:
.handleLookup((layout, recipe, ingredients) => {
const itemBuilder = layout.itemGroupBuilder;
itemBuilder.addSlot(0, 0)
itemBuilder.addSlot(20, 0).addIngredient(Item.of("minecraft:bedrock").itemStack)
itemBuilder.addSlot(60, 0).setInput(false).setHeight(18)
layout.getItemStacks().set(ingredients)
})

