Class CreativeInventoryScreen.CreativeScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.client.gui.screen.ingame.CreativeInventoryScreen.CreativeScreenHandler
- Enclosing class:
- CreativeInventoryScreen
@Environment(CLIENT) public static class CreativeInventoryScreen.CreativeScreenHandler extends ScreenHandler
-
Field Summary
Fields Modifier and Type Field Description DefaultedList<ItemStack>itemListFields inherited from class net.minecraft.screen.ScreenHandler
slots, syncId -
Constructor Summary
Constructors Constructor Description CreativeScreenHandler(PlayerEntity playerEntity) -
Method Summary
Modifier and Type Method Description booleancanInsertIntoSlot(ItemStack stack, Slot slot)booleancanInsertIntoSlot(Slot slot)booleancanUse(PlayerEntity player)voidscrollItems(float position)booleanshouldShowScrollbar()ItemStacktransferSlot(PlayerEntity player, int index)Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertItemIntoSlot, 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
-
Field Details
-
itemList
-
-
Constructor Details
-
CreativeScreenHandler
-
-
Method Details
-
canUse
- Specified by:
canUsein classScreenHandler
-
scrollItems
public void scrollItems(float position) -
shouldShowScrollbar
public boolean shouldShowScrollbar() -
transferSlot
- Overrides:
transferSlotin classScreenHandler
-
canInsertIntoSlot
- Overrides:
canInsertIntoSlotin classScreenHandler
-
canInsertIntoSlot
- Overrides:
canInsertIntoSlotin classScreenHandler
-