@Environment(value=CLIENT) public static class CreativeInventoryScreen.CreativeScreenHandler extends ScreenHandler
Modifier and Type | Field and Description |
---|---|
DefaultedList<ItemStack> |
itemList |
slots, syncId
Constructor and Description |
---|
CreativeScreenHandler(PlayerEntity playerEntity) |
Modifier and Type | Method and Description |
---|---|
boolean |
canInsertIntoSlot(ItemStack stack,
Slot slot) |
boolean |
canInsertIntoSlot(Slot slot) |
boolean |
canUse(PlayerEntity player) |
void |
scrollItems(float position) |
boolean |
shouldShowScrollbar() |
ItemStack |
transferSlot(PlayerEntity player,
int index) |
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertItemIntoSlot, canStacksCombine, canUse, checkDataCount, checkSize, close, dropInventory, endQuickCraft, getNextActionId, getSlot, getStacks, getType, insertItem, isNotRestricted, onButtonClick, onContentChanged, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setPlayerRestriction, setProperty, setStackInSlot, shouldQuickCraftContinue, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks
public final DefaultedList<ItemStack> itemList
public CreativeScreenHandler(PlayerEntity playerEntity)
public boolean canUse(PlayerEntity player)
canUse
in class ScreenHandler
public void scrollItems(float position)
public boolean shouldShowScrollbar()
public ItemStack transferSlot(PlayerEntity player, int index)
transferSlot
in class ScreenHandler
public boolean canInsertIntoSlot(ItemStack stack, Slot slot)
canInsertIntoSlot
in class ScreenHandler
public boolean canInsertIntoSlot(Slot slot)
canInsertIntoSlot
in class ScreenHandler