public class RecipeTransferHandlerHelper extends java.lang.Object implements IRecipeTransferHandlerHelper
| Constructor and Description |
|---|
RecipeTransferHandlerHelper() |
| Modifier and Type | Method and Description |
|---|---|
IRecipeTransferError |
createInternalError()
Create an error with
IRecipeTransferError.Type.INTERNAL. |
IRecipeTransferError |
createUserErrorForSlots(net.minecraft.util.text.ITextComponent 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 |
createUserErrorForSlots(java.lang.String tooltipMessage,
java.util.Collection<java.lang.Integer> missingItemSlots)
Deprecated.
|
IRecipeTransferError |
createUserErrorWithTooltip(net.minecraft.util.text.ITextComponent tooltipMessage)
Create an error with type
IRecipeTransferError.Type.USER_FACING that shows a tooltip. |
IRecipeTransferError |
createUserErrorWithTooltip(java.lang.String tooltipMessage)
Deprecated.
|
public IRecipeTransferError createInternalError()
IRecipeTransferHandlerHelperIRecipeTransferError.Type.INTERNAL.
It is recommended that you also log a message to the console.createInternalError in interface IRecipeTransferHandlerHelper@Deprecated public IRecipeTransferError createUserErrorWithTooltip(java.lang.String tooltipMessage)
IRecipeTransferHandlerHelperIRecipeTransferError.Type.USER_FACING that shows a tooltip.createUserErrorWithTooltip in interface IRecipeTransferHandlerHelpertooltipMessage - the message to show on the tooltip for the recipe transfer button.public IRecipeTransferError createUserErrorWithTooltip(net.minecraft.util.text.ITextComponent tooltipMessage)
IRecipeTransferHandlerHelperIRecipeTransferError.Type.USER_FACING that shows a tooltip.createUserErrorWithTooltip in interface IRecipeTransferHandlerHelpertooltipMessage - the message to show on the tooltip for the recipe transfer button.@Deprecated public IRecipeTransferError createUserErrorForSlots(java.lang.String tooltipMessage, java.util.Collection<java.lang.Integer> missingItemSlots)
IRecipeTransferHandlerHelperIRecipeTransferError.Type.USER_FACING that shows a tooltip and highlights missing item slots.createUserErrorForSlots in interface IRecipeTransferHandlerHelpertooltipMessage - 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().public IRecipeTransferError createUserErrorForSlots(net.minecraft.util.text.ITextComponent tooltipMessage, java.util.Collection<java.lang.Integer> missingItemSlots)
IRecipeTransferHandlerHelperIRecipeTransferError.Type.USER_FACING that shows a tooltip and highlights missing item slots.createUserErrorForSlots in interface IRecipeTransferHandlerHelpertooltipMessage - 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().