public class StonecutterContainer extends Container
| 修飾子とタイプ | フィールドと説明 |
|---|---|
IInventory |
inputInventory |
inventorySlots, windowId| コンストラクタと説明 |
|---|
StonecutterContainer(int windowIdIn,
PlayerInventory playerInventoryIn) |
StonecutterContainer(int windowIdIn,
PlayerInventory playerInventoryIn,
IWorldPosCallable worldPosCallableIn) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
canInteractWith(PlayerEntity playerIn)
Determines whether supplied player can use this container
|
boolean |
canMergeSlot(ItemStack stack,
Slot slotIn)
Called to determine if the current slot is valid for the stack merging (double-click) code.
|
boolean |
enchantItem(PlayerEntity playerIn,
int id)
Handles the given Button-click on the server, currently only used by enchanting.
|
java.util.List<StonecuttingRecipe> |
getRecipeList() |
int |
getRecipeListSize() |
int |
getSelectedRecipe()
Returns the index of the selected recipe.
|
ContainerType<?> |
getType() |
boolean |
hasItemsinInputSlot() |
void |
onContainerClosed(PlayerEntity playerIn)
Called when the container is closed.
|
void |
onCraftMatrixChanged(IInventory inventoryIn)
Callback for when the crafting matrix is changed.
|
void |
setInventoryUpdateListener(java.lang.Runnable listenerIn) |
ItemStack |
transferStackInSlot(PlayerEntity playerIn,
int index)
Handle when the stack in slot
index is shift-clicked. |
addListener, addSlot, areItemsAndTagsEqual, assertIntArraySize, assertInventorySize, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, clearContainer, computeStackSize, detectAndSendChanges, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, isValidDragMode, isWithinUsableDistance, mergeItemStack, putStackInSlot, removeListener, resetDrag, setAll, setCanCraft, slotClick, trackInt, trackIntArray, updateProgressBarpublic final IInventory inputInventory
public StonecutterContainer(int windowIdIn,
PlayerInventory playerInventoryIn)
public StonecutterContainer(int windowIdIn,
PlayerInventory playerInventoryIn,
IWorldPosCallable worldPosCallableIn)
public int getSelectedRecipe()
public java.util.List<StonecuttingRecipe> getRecipeList()
public int getRecipeListSize()
public boolean hasItemsinInputSlot()
public boolean canInteractWith(PlayerEntity playerIn)
canInteractWith クラス内 Containerpublic boolean enchantItem(PlayerEntity playerIn, int id)
enchantItem クラス内 Containerpublic void onCraftMatrixChanged(IInventory inventoryIn)
onCraftMatrixChanged クラス内 Containerpublic ContainerType<?> getType()
public void setInventoryUpdateListener(java.lang.Runnable listenerIn)
public boolean canMergeSlot(ItemStack stack, Slot slotIn)
canMergeSlot クラス内 Containerpublic ItemStack transferStackInSlot(PlayerEntity playerIn, int index)
index is shift-clicked. Normally this moves the stack between the player
inventory and the other inventory(s).transferStackInSlot クラス内 Containerpublic void onContainerClosed(PlayerEntity playerIn)
onContainerClosed クラス内 Container