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, playerslots, 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, transferSlotaddListener, 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, updateSlotStacksprivate 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 ForgingScreenHandlerprotected boolean canTakeOutput(PlayerEntity player, boolean present)
canTakeOutput in class ForgingScreenHandlerprotected ItemStack onTakeOutput(PlayerEntity player, ItemStack stack)
onTakeOutput in class ForgingScreenHandlerprivate void method_29539(int int2)
public void updateResult()
updateResult in class ForgingScreenHandlerprotected boolean method_30025(ItemStack itemStack)
method_30025 in class ForgingScreenHandlerpublic boolean canInsertIntoSlot(ItemStack stack, Slot slot)
canInsertIntoSlot in class ScreenHandler