public interface IRecipeTransferHandlerHelper
IRecipeTransferHandler
.
Get the instance from IJeiHelpers.recipeTransferHandlerHelper()
.Modifier and Type | Method and Description |
---|---|
IRecipeTransferError |
createInternalError()
Create an error with
IRecipeTransferError.Type.INTERNAL . |
IRecipeTransferError |
createUserErrorForSlots(java.lang.String tooltipMessage,
java.util.Collection<java.lang.Integer> missingItemSlots)
Create an error with type
IRecipeTransferError.Type.USER_FACING that shows a tooltip and highlights missing item slots. |
IRecipeTransferError |
createUserErrorWithTooltip(java.lang.String tooltipMessage)
Create an error with type
IRecipeTransferError.Type.USER_FACING that shows a tooltip. |
IRecipeTransferError createInternalError()
IRecipeTransferError.Type.INTERNAL
.
It is recommended that you also log a message to the console.IRecipeTransferError createUserErrorWithTooltip(java.lang.String tooltipMessage)
IRecipeTransferError.Type.USER_FACING
that shows a tooltip.tooltipMessage
- the message to show on the tooltip for the recipe transfer button.IRecipeTransferError createUserErrorForSlots(java.lang.String tooltipMessage, java.util.Collection<java.lang.Integer> missingItemSlots)
IRecipeTransferError.Type.USER_FACING
that shows a tooltip and highlights missing item slots.tooltipMessage
- the message to show on the tooltip for the recipe transfer button.missingItemSlots
- the slot indexes for items that are missing. Must not be empty.
Slots are indexed according to IGuiIngredientGroup.getGuiIngredients()
.