public class GrindstoneScreenHandler extends ScreenHandler
| Modifier and Type | Field and Description |
|---|---|
private ScreenHandlerContext |
context |
private Inventory |
input |
private Inventory |
result |
slots, syncId| Constructor and Description |
|---|
GrindstoneScreenHandler(int syncId,
PlayerInventory playerInventory) |
GrindstoneScreenHandler(int syncId,
PlayerInventory playerInventory,
ScreenHandlerContext context) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canUse(PlayerEntity player) |
void |
close(PlayerEntity player) |
private ItemStack |
grind(ItemStack item,
int damage,
int amount) |
void |
onContentChanged(Inventory inventory) |
private ItemStack |
transferEnchantments(ItemStack target,
ItemStack source) |
ItemStack |
transferSlot(PlayerEntity player,
int index) |
private 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, updateSlotStacksprivate final Inventory result
private final Inventory input
private final ScreenHandlerContext context
public GrindstoneScreenHandler(int syncId,
PlayerInventory playerInventory)
public GrindstoneScreenHandler(int syncId,
PlayerInventory playerInventory,
ScreenHandlerContext context)
public void onContentChanged(Inventory inventory)
onContentChanged in class ScreenHandlerprivate void updateResult()
public 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