Package net.minecraft.src
Class ContainerPlayer
java.lang.Object
net.minecraft.src.Container
net.minecraft.src.ContainerPlayer
- Direct Known Subclasses:
PlayerContainer
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe crafting matrix inventory.booleanDetermines if inventory manipulation should be handled.Fields inherited from class net.minecraft.src.Container
crafters, inventoryItemStacks, inventorySlots, windowId -
Constructor Summary
ConstructorsConstructorDescriptionContainerPlayer(InventoryPlayer par1InventoryPlayer, boolean par2, EntityPlayer par3EntityPlayer) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanInteractWith(EntityPlayer par1EntityPlayer) booleanfunc_94530_a(ItemStack par1ItemStack, Slot par2Slot) voidonContainerClosed(EntityPlayer par1EntityPlayer) Called when the container is closed.voidonCraftMatrixChanged(IInventory par1IInventory) Callback for when the crafting matrix is changed.transferStackInSlot(EntityPlayer par1EntityPlayer, int par2) Called when a player shift-clicks on a slot.Methods inherited from class net.minecraft.src.Container
addSlotToContainer, attemptToMergeWithSlot, attemptToMergeWithSlotIfEmpty, calcRedstoneFromInventory, canDragIntoSlot, detectAndSendChanges, enchantItem, func_94525_a, func_94527_a, func_94528_d, func_94529_b, func_94532_c, func_94533_d, func_94534_d, getInventory, getNextTransactionID, getSlot, getSlotFromInventory, isPlayerNotUsingContainer, mergeItemStack, mergeItemStack, mergeItemStackFavoringHotbar, onCraftGuiOpened, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, retrySlotClick, setPlayerIsPresent, slotClick, updateProgressBar
-
Field Details
-
craftMatrix
The crafting matrix inventory. -
craftResult
-
isLocalWorld
public boolean isLocalWorldDetermines if inventory manipulation should be handled.
-
-
Constructor Details
-
ContainerPlayer
public ContainerPlayer(InventoryPlayer par1InventoryPlayer, boolean par2, EntityPlayer par3EntityPlayer)
-
-
Method Details
-
onCraftMatrixChanged
Callback for when the crafting matrix is changed.- Overrides:
onCraftMatrixChangedin classContainer
-
onContainerClosed
Called when the container is closed.- Overrides:
onContainerClosedin classContainer
-
canInteractWith
- Specified by:
canInteractWithin classContainer
-
transferStackInSlot
Called when a player shift-clicks on a slot. You must override this or you will crash when someone does that.- Overrides:
transferStackInSlotin classContainer
-
func_94530_a
- Overrides:
func_94530_ain classContainer
-
getPlayer
-