Class PlayerContainer
- java.lang.Object
-
- net.minecraft.inventory.container.Container
-
- net.minecraft.inventory.container.RecipeBookContainer<CraftingInventory>
-
- net.minecraft.inventory.container.PlayerContainer
-
public class PlayerContainer extends RecipeBookContainer<CraftingInventory>
-
-
Field Summary
Fields Modifier and Type Field Description booleanactivestatic ResourceLocationBLOCK_ATLASprivate CraftingInventorycraftSlotsstatic ResourceLocationEMPTY_ARMOR_SLOT_BOOTSstatic ResourceLocationEMPTY_ARMOR_SLOT_CHESTPLATEstatic ResourceLocationEMPTY_ARMOR_SLOT_HELMETstatic ResourceLocationEMPTY_ARMOR_SLOT_LEGGINGSstatic ResourceLocationEMPTY_ARMOR_SLOT_SHIELDprivate PlayerEntityownerprivate CraftResultInventoryresultSlotsprivate static EquipmentSlotType[]SLOT_IDSprivate static ResourceLocation[]TEXTURE_EMPTY_SLOTS-
Fields inherited from class net.minecraft.inventory.container.Container
containerId, slots
-
-
Constructor Summary
Constructors Constructor Description PlayerContainer(PlayerInventory p_i1819_1_, boolean p_i1819_2_, PlayerEntity p_i1819_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanTakeItemForPickAll(ItemStack p_94530_1_, Slot p_94530_2_)voidclearCraftingContent()voidfillCraftSlotsStackedContents(RecipeItemHelper p_201771_1_)CraftingInventorygetCraftSlots()intgetGridHeight()intgetGridWidth()RecipeBookCategorygetRecipeBookType()intgetResultSlotIndex()intgetSize()ItemStackquickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)booleanrecipeMatches(IRecipe<? super CraftingInventory> p_201769_1_)voidremoved(PlayerEntity p_75134_1_)voidslotsChanged(IInventory p_75130_1_)booleanstillValid(PlayerEntity p_75145_1_)-
Methods inherited from class net.minecraft.inventory.container.RecipeBookContainer
getRecipeBookCategories, handlePlacement
-
Methods inherited from class net.minecraft.inventory.container.Container
addDataSlot, addDataSlots, addSlot, addSlotListener, backup, broadcastChanges, canDragTo, canItemQuickReplace, checkContainerDataCount, checkContainerSize, clearContainer, clicked, clickMenuButton, consideredTheSameItem, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getType, isSynched, isValidQuickcraftType, moveItemStackTo, removeSlotListener, resetQuickCraft, setAll, setData, setItem, setSynched, stillValid
-
-
-
-
Field Detail
-
BLOCK_ATLAS
public static final ResourceLocation BLOCK_ATLAS
-
EMPTY_ARMOR_SLOT_HELMET
public static final ResourceLocation EMPTY_ARMOR_SLOT_HELMET
-
EMPTY_ARMOR_SLOT_CHESTPLATE
public static final ResourceLocation EMPTY_ARMOR_SLOT_CHESTPLATE
-
EMPTY_ARMOR_SLOT_LEGGINGS
public static final ResourceLocation EMPTY_ARMOR_SLOT_LEGGINGS
-
EMPTY_ARMOR_SLOT_BOOTS
public static final ResourceLocation EMPTY_ARMOR_SLOT_BOOTS
-
EMPTY_ARMOR_SLOT_SHIELD
public static final ResourceLocation EMPTY_ARMOR_SLOT_SHIELD
-
TEXTURE_EMPTY_SLOTS
private static final ResourceLocation[] TEXTURE_EMPTY_SLOTS
-
SLOT_IDS
private static final EquipmentSlotType[] SLOT_IDS
-
craftSlots
private final CraftingInventory craftSlots
-
resultSlots
private final CraftResultInventory resultSlots
-
active
public final boolean active
-
owner
private final PlayerEntity owner
-
-
Constructor Detail
-
PlayerContainer
public PlayerContainer(PlayerInventory p_i1819_1_, boolean p_i1819_2_, PlayerEntity p_i1819_3_)
-
-
Method Detail
-
fillCraftSlotsStackedContents
public void fillCraftSlotsStackedContents(RecipeItemHelper p_201771_1_)
- Specified by:
fillCraftSlotsStackedContentsin classRecipeBookContainer<CraftingInventory>
-
clearCraftingContent
public void clearCraftingContent()
- Specified by:
clearCraftingContentin classRecipeBookContainer<CraftingInventory>
-
recipeMatches
public boolean recipeMatches(IRecipe<? super CraftingInventory> p_201769_1_)
- Specified by:
recipeMatchesin classRecipeBookContainer<CraftingInventory>
-
slotsChanged
public void slotsChanged(IInventory p_75130_1_)
- Overrides:
slotsChangedin classContainer
-
removed
public void removed(PlayerEntity p_75134_1_)
-
stillValid
public boolean stillValid(PlayerEntity p_75145_1_)
- Specified by:
stillValidin classContainer
-
quickMoveStack
public ItemStack quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
- Overrides:
quickMoveStackin classContainer
-
canTakeItemForPickAll
public boolean canTakeItemForPickAll(ItemStack p_94530_1_, Slot p_94530_2_)
- Overrides:
canTakeItemForPickAllin classContainer
-
getResultSlotIndex
public int getResultSlotIndex()
- Specified by:
getResultSlotIndexin classRecipeBookContainer<CraftingInventory>
-
getGridWidth
public int getGridWidth()
- Specified by:
getGridWidthin classRecipeBookContainer<CraftingInventory>
-
getGridHeight
public int getGridHeight()
- Specified by:
getGridHeightin classRecipeBookContainer<CraftingInventory>
-
getSize
public int getSize()
- Specified by:
getSizein classRecipeBookContainer<CraftingInventory>
-
getCraftSlots
public CraftingInventory getCraftSlots()
-
getRecipeBookType
public RecipeBookCategory getRecipeBookType()
- Specified by:
getRecipeBookTypein classRecipeBookContainer<CraftingInventory>
-
-