public class SmithingScreenHandler extends ForgingScreenHandler
Modifier and Type | Field and Description |
---|---|
private World |
field_25385 |
private SmithingRecipe |
field_25386 |
private List<SmithingRecipe> |
field_25668 |
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 |
---|---|
boolean |
canInsertIntoSlot(ItemStack stack,
Slot slot) |
protected boolean |
canTakeOutput(PlayerEntity player,
boolean present) |
protected boolean |
canUse(BlockState state) |
private void |
method_29539(int int2) |
protected boolean |
method_30025(ItemStack itemStack) |
protected ItemStack |
onTakeOutput(PlayerEntity player,
ItemStack stack) |
void |
updateResult() |
canUse, close, onContentChanged, transferSlot
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, 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
private final World field_25385
@Nullable private SmithingRecipe field_25386
private final List<SmithingRecipe> field_25668
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
private void method_29539(int int2)
public void updateResult()
updateResult
in class ForgingScreenHandler
protected boolean method_30025(ItemStack itemStack)
method_30025
in class ForgingScreenHandler
public boolean canInsertIntoSlot(ItemStack stack, Slot slot)
canInsertIntoSlot
in class ScreenHandler