public class PlayerContainer extends RecipeBookContainer<CraftingInventory>
| Modifier and Type | Field and Description |
|---|---|
private static ResourceLocation[] |
ARMOR_SLOT_TEXTURES |
private CraftingInventory |
craftMatrix |
private CraftResultInventory |
craftResult |
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 |
private PlayerEntity |
player |
private static EquipmentSlotType[] |
VALID_EQUIPMENT_SLOTS |
inventorySlots, windowId| Constructor and Description |
|---|
PlayerContainer(PlayerInventory playerInventory,
boolean localWorld,
PlayerEntity playerIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canInteractWith(PlayerEntity playerIn) |
boolean |
canMergeSlot(ItemStack stack,
Slot slotIn) |
void |
clear() |
void |
fillStackedContents(RecipeItemHelper itemHelperIn) |
int |
getHeight() |
int |
getOutputSlot() |
int |
getSize() |
int |
getWidth() |
boolean |
matches(IRecipe<? super CraftingInventory> recipeIn) |
void |
onContainerClosed(PlayerEntity playerIn) |
void |
onCraftMatrixChanged(IInventory inventoryIn) |
ItemStack |
transferStackInSlot(PlayerEntity playerIn,
int index) |
func_217056_a, getRecipeBookCategoriesaddListener, 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, updateProgressBarpublic 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
private static final ResourceLocation[] ARMOR_SLOT_TEXTURES
private static final EquipmentSlotType[] VALID_EQUIPMENT_SLOTS
private final CraftingInventory craftMatrix
private final CraftResultInventory craftResult
public final boolean isLocalWorld
private final PlayerEntity player
public PlayerContainer(PlayerInventory playerInventory, boolean localWorld, PlayerEntity playerIn)
public void fillStackedContents(RecipeItemHelper itemHelperIn)
fillStackedContents in class RecipeBookContainer<CraftingInventory>public void clear()
clear in class RecipeBookContainer<CraftingInventory>public boolean matches(IRecipe<? super CraftingInventory> recipeIn)
matches in class RecipeBookContainer<CraftingInventory>public void onCraftMatrixChanged(IInventory inventoryIn)
onCraftMatrixChanged in class Containerpublic void onContainerClosed(PlayerEntity playerIn)
onContainerClosed in class Containerpublic boolean canInteractWith(PlayerEntity playerIn)
canInteractWith in class Containerpublic ItemStack transferStackInSlot(PlayerEntity playerIn, int index)
transferStackInSlot in class Containerpublic boolean canMergeSlot(ItemStack stack, Slot slotIn)
canMergeSlot in class Containerpublic int getOutputSlot()
getOutputSlot in class RecipeBookContainer<CraftingInventory>public int getWidth()
getWidth in class RecipeBookContainer<CraftingInventory>public int getHeight()
getHeight in class RecipeBookContainer<CraftingInventory>public int getSize()
getSize in class RecipeBookContainer<CraftingInventory>