Package net.minecraft.screen
Class Generic3x3ContainerScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.Generic3x3ContainerScreenHandler
public class Generic3x3ContainerScreenHandler extends ScreenHandler
-
Field Summary
Fields inherited from class net.minecraft.screen.ScreenHandler
slots, syncId
-
Constructor Summary
Constructors Constructor Description Generic3x3ContainerScreenHandler(int syncId, PlayerInventory playerInventory)
Generic3x3ContainerScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory)
-
Method Summary
Modifier and Type Method Description boolean
canUse(PlayerEntity player)
void
close(PlayerEntity player)
ItemStack
transferSlot(PlayerEntity player, int index)
Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, dropInventory, endQuickCraft, getNextActionId, getSlot, getStacks, getType, insertItem, isNotRestricted, onButtonClick, onContentChanged, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setPlayerRestriction, setProperty, setStackInSlot, shouldQuickCraftContinue, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks
-
Field Details
-
inventory
-
-
Constructor Details
-
Generic3x3ContainerScreenHandler
-
Generic3x3ContainerScreenHandler
public Generic3x3ContainerScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory)
-
-
Method Details
-
canUse
- Specified by:
canUse
in classScreenHandler
-
transferSlot
- Overrides:
transferSlot
in classScreenHandler
-
close
- Overrides:
close
in classScreenHandler
-