public class SmithingScreenHandler extends ForgingScreenHandler
Modifier and Type | Field and Description |
---|---|
private static Map<Item,Item> |
RECIPES |
context, input, output, player
slots, syncId
Constructor and Description |
---|
SmithingScreenHandler(int syncId,
PlayerInventory playerInventory) |
SmithingScreenHandler(int syncId,
PlayerInventory playerInventory,
ScreenHandlerContext context) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canTakeOutput(PlayerEntity player,
boolean present) |
protected boolean |
canUse(BlockState state) |
protected ItemStack |
onTakeOutput(PlayerEntity player,
ItemStack stack) |
void |
updateResult() |
canUse, close, onContentChanged, transferSlot
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canStacksCombine, canUse, checkDataCount, checkSize, dropInventory, endQuickCraft, getNextActionId, getSlot, getStacks, getType, insertItem, isNotRestricted, onButtonClick, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setPlayerRestriction, setProperty, setStackInSlot, shouldQuickCraftContinue, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks
public SmithingScreenHandler(int syncId, PlayerInventory playerInventory)
public SmithingScreenHandler(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context)
protected boolean canUse(BlockState state)
canUse
in class ForgingScreenHandler
protected boolean canTakeOutput(PlayerEntity player, boolean present)
canTakeOutput
in class ForgingScreenHandler
protected ItemStack onTakeOutput(PlayerEntity player, ItemStack stack)
onTakeOutput
in class ForgingScreenHandler
public void updateResult()
updateResult
in class ForgingScreenHandler