Package com.github.liachmodded.kayak.ui
Class InventoryScreenHandler
- java.lang.Object
-
- net.minecraft.screen.ScreenHandler
-
- com.github.liachmodded.kayak.ui.InventoryScreenHandler
-
- Direct Known Subclasses:
FurnaceBoatScreenHandler
public abstract class InventoryScreenHandler extends net.minecraft.screen.ScreenHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
InventoryScreenHandler(int syncId, net.minecraft.entity.player.PlayerInventory playerInventory, net.minecraft.inventory.Inventory inventory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
canUse(net.minecraft.entity.player.PlayerEntity playerEntity_1)
void
close(net.minecraft.entity.player.PlayerEntity playerEntity_1)
net.minecraft.entity.player.PlayerInventory
getPlayerInventory()
protected abstract int
getSize()
net.minecraft.item.ItemStack
transferSlot(net.minecraft.entity.player.PlayerEntity playerEntity_1, int int_1)
-
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, onContentChanged, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setPlayerRestriction, setProperty, setStackInSlot, shouldQuickCraftContinue, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks
-
-
-
-
Method Detail
-
getPlayerInventory
public net.minecraft.entity.player.PlayerInventory getPlayerInventory()
-
getSize
protected abstract int getSize()
-
canUse
public boolean canUse(net.minecraft.entity.player.PlayerEntity playerEntity_1)
- Specified by:
canUse
in classnet.minecraft.screen.ScreenHandler
-
transferSlot
public net.minecraft.item.ItemStack transferSlot(net.minecraft.entity.player.PlayerEntity playerEntity_1, int int_1)
- Overrides:
transferSlot
in classnet.minecraft.screen.ScreenHandler
-
close
public void close(net.minecraft.entity.player.PlayerEntity playerEntity_1)
- Overrides:
close
in classnet.minecraft.screen.ScreenHandler
-
-