Class InfuserContainer
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
com.pixelmonmod.pixelmon.client.gui.machines.infuser.InfuserContainer
public class InfuserContainer
extends net.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
-
Field Summary
FieldsFields inherited from class net.minecraft.world.inventory.AbstractContainerMenu
CARRIED_SLOT_SIZE, containerId, containerListeners, QUICKCRAFT_HEADER_CONTINUE, QUICKCRAFT_HEADER_END, QUICKCRAFT_HEADER_START, QUICKCRAFT_TYPE_CHARITABLE, QUICKCRAFT_TYPE_CLONE, QUICKCRAFT_TYPE_GREEDY, SLOT_CLICKED_OUTSIDE, slots -
Constructor Summary
ConstructorsConstructorDescriptionInfuserContainer(int windowId, net.minecraft.world.entity.player.Inventory inventoryPlayer, InfuserTileEntity tileInfuser) InfuserContainer(int windowId, net.minecraft.world.entity.player.Inventory inventoryPlayer, net.minecraft.network.FriendlyByteBuf buffer) -
Method Summary
Modifier and TypeMethodDescriptionvoidLooks for changes made in the container, sends them to every listener.voidvoidfillCraftSlotsStackedContents(net.minecraft.world.entity.player.StackedContents stackedContents) intintList<net.minecraft.client.RecipeBookCategories>net.minecraft.world.inventory.RecipeBookTypeintintgetSize()net.minecraft.world.item.ItemStackquickMoveStack(net.minecraft.world.entity.player.Player player, int slotIndex) Called when a player shift-clicks on a slot.booleanrecipeMatches(net.minecraft.world.item.crafting.RecipeHolder<? extends net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>> recipeHolder) voidsetData(int p_75137_1_, int p_75137_2_) booleanshouldMoveToInventory(int p_150635_) booleanstillValid(net.minecraft.world.entity.player.Player player) Methods inherited from class net.minecraft.world.inventory.RecipeBookMenu
handlePlacementMethods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastFullState, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clicked, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftPlaceCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, moveItemStackTo, removed, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
tileInfuser
-
-
Constructor Details
-
InfuserContainer
public InfuserContainer(int windowId, net.minecraft.world.entity.player.Inventory inventoryPlayer, InfuserTileEntity tileInfuser) -
InfuserContainer
public InfuserContainer(int windowId, net.minecraft.world.entity.player.Inventory inventoryPlayer, net.minecraft.network.FriendlyByteBuf buffer)
-
-
Method Details
-
broadcastChanges
public void broadcastChanges()Looks for changes made in the container, sends them to every listener.- Overrides:
broadcastChangesin classnet.minecraft.world.inventory.AbstractContainerMenu
-
setData
public void setData(int p_75137_1_, int p_75137_2_) - Overrides:
setDatain classnet.minecraft.world.inventory.AbstractContainerMenu
-
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player player) - Specified by:
stillValidin classnet.minecraft.world.inventory.AbstractContainerMenu
-
quickMoveStack
public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player player, int slotIndex) Called when a player shift-clicks on a slot. You must override this or you will crash when someone does that.- Specified by:
quickMoveStackin classnet.minecraft.world.inventory.AbstractContainerMenu
-
fillCraftSlotsStackedContents
public void fillCraftSlotsStackedContents(net.minecraft.world.entity.player.StackedContents stackedContents) - Specified by:
fillCraftSlotsStackedContentsin classnet.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
-
clearCraftingContent
public void clearCraftingContent()- Specified by:
clearCraftingContentin classnet.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
-
recipeMatches
public boolean recipeMatches(net.minecraft.world.item.crafting.RecipeHolder<? extends net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>> recipeHolder) - Specified by:
recipeMatchesin classnet.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
-
getResultSlotIndex
public int getResultSlotIndex()- Specified by:
getResultSlotIndexin classnet.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
-
getGridWidth
public int getGridWidth()- Specified by:
getGridWidthin classnet.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
-
getGridHeight
public int getGridHeight()- Specified by:
getGridHeightin classnet.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
-
getSize
public int getSize()- Specified by:
getSizein classnet.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
-
getRecipeBookType
public net.minecraft.world.inventory.RecipeBookType getRecipeBookType()- Specified by:
getRecipeBookTypein classnet.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
-
shouldMoveToInventory
public boolean shouldMoveToInventory(int p_150635_) - Specified by:
shouldMoveToInventoryin classnet.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
-
getRecipeBookCategories
- Overrides:
getRecipeBookCategoriesin classnet.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
-