Package net.minecraft.screen
Class GrindstoneScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.GrindstoneScreenHandler
public class GrindstoneScreenHandler extends ScreenHandler
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GrindstoneScreenHandler(int syncId, PlayerInventory playerInventory)GrindstoneScreenHandler(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context) -
Method Summary
Modifier and Type Method Description booleancanUse(PlayerEntity player)voidclose(PlayerEntity player)private ItemStackgrind(ItemStack item, int damage, int amount)voidonContentChanged(Inventory inventory)private ItemStacktransferEnchantments(ItemStack target, ItemStack source)ItemStacktransferSlot(PlayerEntity player, int index)private voidupdateResult()Methods inherited from class net.minecraft.screen.ScreenHandler
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, updateSlotStacks
-
Field Details
-
Constructor Details
-
GrindstoneScreenHandler
-
GrindstoneScreenHandler
public GrindstoneScreenHandler(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context)
-
-
Method Details
-
onContentChanged
- Overrides:
onContentChangedin classScreenHandler
-
updateResult
private void updateResult() -
transferEnchantments
-
grind
-
close
- Overrides:
closein classScreenHandler
-
canUse
- Specified by:
canUsein classScreenHandler
-
transferSlot
- Overrides:
transferSlotin classScreenHandler
-