Class NullContainer
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.hammy275.immersivemc.common.util.NullContainer
public class NullContainer
extends net.minecraft.world.inventory.AbstractContainerMenu
Used so slotsChanged() calls can be ignored
-
Field Summary
Fields inherited from class net.minecraft.world.inventory.AbstractContainerMenu
CARRIED_SLOT_SIZE, containerId, QUICKCRAFT_HEADER_CONTINUE, QUICKCRAFT_HEADER_END, QUICKCRAFT_HEADER_START, QUICKCRAFT_TYPE_CHARITABLE, QUICKCRAFT_TYPE_CLONE, QUICKCRAFT_TYPE_GREEDY, SLOT_CLICKED_OUTSIDE, slots
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStack
quickMoveStack
(net.minecraft.world.entity.player.Player player, int i) void
slotsChanged
(net.minecraft.world.Container p_75130_1_) boolean
stillValid
(net.minecraft.world.entity.player.Player p_75145_1_) Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, 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, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, stillValid, suppressRemoteUpdates, transferState
-
Constructor Details
-
NullContainer
public NullContainer()
-
-
Method Details
-
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player p_75145_1_) - 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 i) - Specified by:
quickMoveStack
in classnet.minecraft.world.inventory.AbstractContainerMenu
-
slotsChanged
public void slotsChanged(net.minecraft.world.Container p_75130_1_) - Overrides:
slotsChanged
in classnet.minecraft.world.inventory.AbstractContainerMenu
-