public class SmithingScreenHandler extends ForgingScreenHandler
| Modifier and Type | Field and Description |
|---|---|
private static Map<Item,Item> |
RECIPES |
context, input, output, playerslots, 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, transferSlotaddListener, 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, updateSlotStackspublic SmithingScreenHandler(int syncId,
PlayerInventory playerInventory)
public SmithingScreenHandler(int syncId,
PlayerInventory playerInventory,
ScreenHandlerContext context)
protected boolean canUse(BlockState state)
canUse in class ForgingScreenHandlerprotected boolean canTakeOutput(PlayerEntity player, boolean present)
canTakeOutput in class ForgingScreenHandlerprotected ItemStack onTakeOutput(PlayerEntity player, ItemStack stack)
onTakeOutput in class ForgingScreenHandlerpublic void updateResult()
updateResult in class ForgingScreenHandler