public class PlayerContainer extends RecipeBookContainer<CraftingInventory>
修飾子とタイプ | フィールドと説明 |
---|---|
static ResourceLocation |
EMPTY_ARMOR_SLOT_BOOTS |
static ResourceLocation |
EMPTY_ARMOR_SLOT_CHESTPLATE |
static ResourceLocation |
EMPTY_ARMOR_SLOT_HELMET |
static ResourceLocation |
EMPTY_ARMOR_SLOT_LEGGINGS |
static ResourceLocation |
EMPTY_ARMOR_SLOT_SHIELD |
boolean |
isLocalWorld |
static ResourceLocation |
LOCATION_BLOCKS_TEXTURE |
inventorySlots, windowId
コンストラクタと説明 |
---|
PlayerContainer(PlayerInventory playerInventory,
boolean localWorld,
PlayerEntity playerIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
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.
|
void |
clear() |
void |
fillStackedContents(RecipeItemHelper itemHelperIn) |
int |
getHeight() |
int |
getOutputSlot() |
int |
getSize() |
int |
getWidth() |
boolean |
matches(IRecipe<? super CraftingInventory> recipeIn) |
void |
onContainerClosed(PlayerEntity playerIn)
Called when the container is closed.
|
void |
onCraftMatrixChanged(IInventory inventoryIn)
Callback for when the crafting matrix is changed.
|
ItemStack |
transferStackInSlot(PlayerEntity playerIn,
int index)
Handle when the stack in slot
index is shift-clicked. |
func_217056_a, getRecipeBookCategories
addListener, addSlot, areItemsAndTagsEqual, assertIntArraySize, assertInventorySize, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, clearContainer, computeStackSize, detectAndSendChanges, enchantItem, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getType, isValidDragMode, isWithinUsableDistance, mergeItemStack, putStackInSlot, removeListener, resetDrag, setAll, setCanCraft, slotClick, trackInt, trackIntArray, updateProgressBar
public static final ResourceLocation LOCATION_BLOCKS_TEXTURE
public static final ResourceLocation EMPTY_ARMOR_SLOT_HELMET
public static final ResourceLocation EMPTY_ARMOR_SLOT_CHESTPLATE
public static final ResourceLocation EMPTY_ARMOR_SLOT_LEGGINGS
public static final ResourceLocation EMPTY_ARMOR_SLOT_BOOTS
public static final ResourceLocation EMPTY_ARMOR_SLOT_SHIELD
public final boolean isLocalWorld
public PlayerContainer(PlayerInventory playerInventory, boolean localWorld, PlayerEntity playerIn)
public void fillStackedContents(RecipeItemHelper itemHelperIn)
public void clear()
clear
クラス内 RecipeBookContainer<CraftingInventory>
public boolean matches(IRecipe<? super CraftingInventory> recipeIn)
matches
クラス内 RecipeBookContainer<CraftingInventory>
public void onCraftMatrixChanged(IInventory inventoryIn)
onCraftMatrixChanged
クラス内 Container
public void onContainerClosed(PlayerEntity playerIn)
onContainerClosed
クラス内 Container
public boolean canInteractWith(PlayerEntity playerIn)
canInteractWith
クラス内 Container
public 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
クラス内 Container
public boolean canMergeSlot(ItemStack stack, Slot slotIn)
canMergeSlot
クラス内 Container
public int getOutputSlot()
public int getWidth()
getWidth
クラス内 RecipeBookContainer<CraftingInventory>
public int getHeight()
getHeight
クラス内 RecipeBookContainer<CraftingInventory>
public int getSize()
getSize
クラス内 RecipeBookContainer<CraftingInventory>