public class CartographyTableScreenHandler extends ScreenHandler
Modifier and Type | Field and Description |
---|---|
private ScreenHandlerContext |
context |
Inventory |
inventory |
private long |
lastTakeResultTime |
private CraftingResultInventory |
resultSlot |
slots, syncId
Constructor and Description |
---|
CartographyTableScreenHandler(int syncId,
PlayerInventory inventory) |
CartographyTableScreenHandler(int syncId,
PlayerInventory inventory,
ScreenHandlerContext context) |
Modifier and Type | Method and Description |
---|---|
boolean |
canInsertIntoSlot(ItemStack stack,
Slot slot) |
boolean |
canUse(PlayerEntity player) |
void |
close(PlayerEntity player) |
void |
onContentChanged(Inventory inventory) |
ItemStack |
transferSlot(PlayerEntity player,
int index) |
private void |
updateResult(ItemStack map,
ItemStack item,
ItemStack oldResult) |
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 ScreenHandlerContext context
private long lastTakeResultTime
public final Inventory inventory
private final CraftingResultInventory resultSlot
public CartographyTableScreenHandler(int syncId, PlayerInventory inventory)
public CartographyTableScreenHandler(int syncId, PlayerInventory inventory, ScreenHandlerContext context)
public boolean canUse(PlayerEntity player)
canUse
in class ScreenHandler
public void onContentChanged(Inventory inventory)
onContentChanged
in class ScreenHandler
public boolean canInsertIntoSlot(ItemStack stack, Slot slot)
canInsertIntoSlot
in class ScreenHandler
public ItemStack transferSlot(PlayerEntity player, int index)
transferSlot
in class ScreenHandler
public void close(PlayerEntity player)
close
in class ScreenHandler