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
Fields 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
ConstructorDescriptionInfuserContainer
(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 TypeMethodDescriptionvoid
Looks for changes made in the container, sends them to every listener.void
void
fillCraftSlotsStackedContents
(net.minecraft.world.entity.player.StackedContents stackedContents) int
int
List<net.minecraft.client.RecipeBookCategories>
net.minecraft.world.inventory.RecipeBookType
int
int
getSize()
net.minecraft.world.item.ItemStack
quickMoveStack
(net.minecraft.world.entity.player.Player player, int slotIndex) Called when a player shift-clicks on a slot.boolean
recipeMatches
(net.minecraft.world.item.crafting.RecipeHolder<? extends net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>> recipeHolder) void
setData
(int p_75137_1_, int p_75137_2_) boolean
shouldMoveToInventory
(int p_150635_) boolean
stillValid
(net.minecraft.world.entity.player.Player player) Methods inherited from class net.minecraft.world.inventory.RecipeBookMenu
handlePlacement
Methods 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:
broadcastChanges
in classnet.minecraft.world.inventory.AbstractContainerMenu
-
setData
public void setData(int p_75137_1_, int p_75137_2_) - Overrides:
setData
in classnet.minecraft.world.inventory.AbstractContainerMenu
-
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player player) - Specified by:
stillValid
in 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:
quickMoveStack
in classnet.minecraft.world.inventory.AbstractContainerMenu
-
fillCraftSlotsStackedContents
public void fillCraftSlotsStackedContents(net.minecraft.world.entity.player.StackedContents stackedContents) - Specified by:
fillCraftSlotsStackedContents
in classnet.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
-
clearCraftingContent
public void clearCraftingContent()- Specified by:
clearCraftingContent
in 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:
recipeMatches
in classnet.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
-
getResultSlotIndex
public int getResultSlotIndex()- Specified by:
getResultSlotIndex
in classnet.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
-
getGridWidth
public int getGridWidth()- Specified by:
getGridWidth
in classnet.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
-
getGridHeight
public int getGridHeight()- Specified by:
getGridHeight
in classnet.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
-
getSize
public int getSize()- Specified by:
getSize
in classnet.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
-
getRecipeBookType
public net.minecraft.world.inventory.RecipeBookType getRecipeBookType()- Specified by:
getRecipeBookType
in classnet.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
-
shouldMoveToInventory
public boolean shouldMoveToInventory(int p_150635_) - Specified by:
shouldMoveToInventory
in classnet.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
-
getRecipeBookCategories
- Overrides:
getRecipeBookCategories
in classnet.minecraft.world.inventory.RecipeBookMenu<net.minecraft.world.Container>
-