public abstract class ForgingScreenHandler extends ScreenHandler
| Modifier and Type | Field and Description |
|---|---|
protected ScreenHandlerContext |
context |
protected Inventory |
input |
protected Inventory |
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) |
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 Inventory 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 ScreenHandlerpublic ItemStack transferSlot(PlayerEntity player, int index)
transferSlot in class ScreenHandler