Package net.minecraft.screen
Class PlayerScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.AbstractRecipeScreenHandler<CraftingInventory>
net.minecraft.screen.PlayerScreenHandler
public class PlayerScreenHandler extends AbstractRecipeScreenHandler<CraftingInventory>
-
Field Summary
Fields Modifier and Type Field Description static IdentifierBLOCK_ATLAS_TEXTUREprivate CraftingInventorycraftingInputprivate CraftingResultInventorycraftingResultprivate static Identifier[]EMPTY_ARMOR_SLOT_TEXTURESstatic IdentifierEMPTY_BOOTS_SLOT_TEXTUREstatic IdentifierEMPTY_CHESTPLATE_SLOT_TEXTUREstatic IdentifierEMPTY_HELMET_SLOT_TEXTUREstatic IdentifierEMPTY_LEGGINGS_SLOT_TEXTUREstatic IdentifierEMPTY_OFFHAND_ARMOR_SLOTprivate static EquipmentSlot[]EQUIPMENT_SLOT_ORDERbooleanonServerprivate PlayerEntityownerFields inherited from class net.minecraft.screen.ScreenHandler
slots, syncId -
Constructor Summary
Constructors Constructor Description PlayerScreenHandler(PlayerInventory inventory, boolean onServer, PlayerEntity owner) -
Method Summary
Modifier and Type Method Description booleancanInsertIntoSlot(ItemStack stack, Slot slot)booleancanUse(PlayerEntity player)voidclearCraftingSlots()voidclose(PlayerEntity player)RecipeBookCategorygetCategory()intgetCraftingHeight()intgetCraftingResultSlotIndex()intgetCraftingSlotCount()intgetCraftingWidth()booleanmatches(Recipe<? super CraftingInventory> recipe)CraftingInventorymethod_29281()booleanmethod_32339(int int2)voidonContentChanged(Inventory inventory)voidpopulateRecipeFinder(RecipeFinder finder)ItemStacktransferSlot(PlayerEntity player, int index)Methods inherited from class net.minecraft.screen.AbstractRecipeScreenHandler
fillInputSlotsMethods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, dropInventory, endQuickCraft, getNextActionId, getSlot, getStacks, getType, insertItem, isNotRestricted, onButtonClick, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setPlayerRestriction, setProperty, setStackInSlot, shouldQuickCraftContinue, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks
-
Field Details
-
BLOCK_ATLAS_TEXTURE
-
EMPTY_HELMET_SLOT_TEXTURE
-
EMPTY_CHESTPLATE_SLOT_TEXTURE
-
EMPTY_LEGGINGS_SLOT_TEXTURE
-
EMPTY_BOOTS_SLOT_TEXTURE
-
EMPTY_OFFHAND_ARMOR_SLOT
-
EMPTY_ARMOR_SLOT_TEXTURES
-
EQUIPMENT_SLOT_ORDER
-
craftingInput
-
craftingResult
-
onServer
public final boolean onServer -
owner
-
-
Constructor Details
-
PlayerScreenHandler
-
-
Method Details
-
populateRecipeFinder
- Specified by:
populateRecipeFinderin classAbstractRecipeScreenHandler<CraftingInventory>
-
clearCraftingSlots
public void clearCraftingSlots()- Specified by:
clearCraftingSlotsin classAbstractRecipeScreenHandler<CraftingInventory>
-
matches
- Specified by:
matchesin classAbstractRecipeScreenHandler<CraftingInventory>
-
onContentChanged
- Overrides:
onContentChangedin classScreenHandler
-
close
- Overrides:
closein classScreenHandler
-
canUse
- Specified by:
canUsein classScreenHandler
-
transferSlot
- Overrides:
transferSlotin classScreenHandler
-
canInsertIntoSlot
- Overrides:
canInsertIntoSlotin classScreenHandler
-
getCraftingResultSlotIndex
public int getCraftingResultSlotIndex()- Specified by:
getCraftingResultSlotIndexin classAbstractRecipeScreenHandler<CraftingInventory>
-
getCraftingWidth
public int getCraftingWidth()- Specified by:
getCraftingWidthin classAbstractRecipeScreenHandler<CraftingInventory>
-
getCraftingHeight
public int getCraftingHeight()- Specified by:
getCraftingHeightin classAbstractRecipeScreenHandler<CraftingInventory>
-
getCraftingSlotCount
public int getCraftingSlotCount()- Specified by:
getCraftingSlotCountin classAbstractRecipeScreenHandler<CraftingInventory>
-
method_29281
-
getCategory
- Specified by:
getCategoryin classAbstractRecipeScreenHandler<CraftingInventory>
-
method_32339
public boolean method_32339(int int2)- Specified by:
method_32339in classAbstractRecipeScreenHandler<CraftingInventory>
-