public abstract class ForgingScreenHandler extends ScreenHandler
| Modifier and Type | Field and Description |
|---|---|
protected ScreenHandlerContext |
context |
protected Inventory |
input |
protected CraftingResultInventory |
output |
protected PlayerEntity |
player |
slots, syncId| Constructor and Description |
|---|
ForgingScreenHandler(ScreenHandlerType<?> type,
int syncId,
PlayerInventory playerInventory,
ScreenHandlerContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
canTakeOutput(PlayerEntity player,
boolean present) |
protected abstract boolean |
canUse(BlockState state) |
boolean |
canUse(PlayerEntity player) |
void |
close(PlayerEntity player) |
protected boolean |
method_30025(ItemStack itemStack) |
void |
onContentChanged(Inventory inventory) |
protected abstract ItemStack |
onTakeOutput(PlayerEntity player,
ItemStack stack) |
ItemStack |
transferSlot(PlayerEntity player,
int index) |
abstract void |
updateResult() |
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, updateSlotStacksprotected final CraftingResultInventory output
protected final Inventory input
protected final ScreenHandlerContext context
protected final PlayerEntity player
public ForgingScreenHandler(@Nullable ScreenHandlerType<?> type, int syncId, PlayerInventory playerInventory, ScreenHandlerContext context)
protected abstract boolean canTakeOutput(PlayerEntity player, boolean present)
protected abstract ItemStack onTakeOutput(PlayerEntity player, ItemStack stack)
protected abstract boolean canUse(BlockState state)
public abstract void updateResult()
public void onContentChanged(Inventory inventory)
onContentChanged in class ScreenHandlerpublic void close(PlayerEntity player)
close in class ScreenHandlerpublic boolean canUse(PlayerEntity player)
canUse in class ScreenHandlerprotected boolean method_30025(ItemStack itemStack)
public ItemStack transferSlot(PlayerEntity player, int index)
transferSlot in class ScreenHandler