use of com.codetaylor.mc.artisanworktables.api.internal.recipe.ICraftingContext in project artisan-worktables by codetaylor.
the class Container method updateRecipeOutput.
public void updateRecipeOutput() {
if (this.tile == null) {
return;
}
IArtisanRecipe recipe = this.tile.getRecipe(this.player);
if (recipe != null) {
ICraftingContext context = this.tile.getCraftingContext(this.player);
this.resultHandler.setStackInSlot(0, recipe.getBaseOutput(context).toItemStack());
} else {
this.resultHandler.setStackInSlot(0, ItemStack.EMPTY);
}
}
Aggregations