@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, updateSlotStackspublic final DefaultedList<ItemStack> itemList
public CreativeScreenHandler(PlayerEntity playerEntity)
public boolean canUse(PlayerEntity player)
canUse in class ScreenHandlerpublic void scrollItems(float position)
public boolean shouldShowScrollbar()
public ItemStack transferSlot(PlayerEntity player, int index)
transferSlot in class ScreenHandlerpublic boolean canInsertIntoSlot(ItemStack stack, Slot slot)
canInsertIntoSlot in class ScreenHandlerpublic boolean canInsertIntoSlot(Slot slot)
canInsertIntoSlot in class ScreenHandler