Package net.minheur.mhm_bitsnbobs.screen
Class MysteriousAltarMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minheur.mhm_bitsnbobs.screen.MysteriousAltarMenu
public class MysteriousAltarMenu
extends net.minecraft.world.inventory.AbstractContainerMenu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final net.minecraft.world.inventory.ContainerDataprivate static final intprivate final net.minecraft.world.level.Levelprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intFields 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
ConstructorsConstructorDescriptionMysteriousAltarMenu(int pContainerId, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.FriendlyByteBuf extraData) MysteriousAltarMenu(int pContainerId, net.minecraft.world.entity.player.Inventory inv, net.minecraft.world.level.block.entity.BlockEntity entity, net.minecraft.world.inventory.ContainerData data) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddPlayerHotbar(net.minecraft.world.entity.player.Inventory playerInventory) private voidaddPlayerInventory(net.minecraft.world.entity.player.Inventory playerInventory) intintbooleanhasPower()booleannet.minecraft.world.item.ItemStackquickMoveStack(net.minecraft.world.entity.player.Player playerIn, int pIndex) booleanstillValid(net.minecraft.world.entity.player.Player pPlayer) 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, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
blockEntity
-
level
private final net.minecraft.world.level.Level level -
data
private final net.minecraft.world.inventory.ContainerData data -
HOTBAR_SLOT_COUNT
private static final int HOTBAR_SLOT_COUNT- See Also:
-
PLAYER_INVENTORY_ROW_COUNT
private static final int PLAYER_INVENTORY_ROW_COUNT- See Also:
-
PLAYER_INVENTORY_COLUMN_COUNT
private static final int PLAYER_INVENTORY_COLUMN_COUNT- See Also:
-
PLAYER_INVENTORY_SLOT_COUNT
private static final int PLAYER_INVENTORY_SLOT_COUNT- See Also:
-
VANILLA_SLOT_COUNT
private static final int VANILLA_SLOT_COUNT- See Also:
-
VANILLA_FIRST_SLOT_INDEX
private static final int VANILLA_FIRST_SLOT_INDEX- See Also:
-
TE_INVENTORY_FIRST_SLOT_INDEX
private static final int TE_INVENTORY_FIRST_SLOT_INDEX- See Also:
-
TE_INVENTORY_SLOT_COUNT
private static final int TE_INVENTORY_SLOT_COUNT- See Also:
-
-
Constructor Details
-
MysteriousAltarMenu
public MysteriousAltarMenu(int pContainerId, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.FriendlyByteBuf extraData) -
MysteriousAltarMenu
public MysteriousAltarMenu(int pContainerId, net.minecraft.world.entity.player.Inventory inv, net.minecraft.world.level.block.entity.BlockEntity entity, net.minecraft.world.inventory.ContainerData data)
-
-
Method Details
-
isCrafting
public boolean isCrafting() -
hasPower
public boolean hasPower() -
getScaledProgress
public int getScaledProgress() -
getScaledPower
public int getScaledPower() -
quickMoveStack
public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player playerIn, int pIndex) - Specified by:
quickMoveStackin classnet.minecraft.world.inventory.AbstractContainerMenu
-
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player pPlayer) - Specified by:
stillValidin classnet.minecraft.world.inventory.AbstractContainerMenu
-
addPlayerInventory
private void addPlayerInventory(net.minecraft.world.entity.player.Inventory playerInventory) -
addPlayerHotbar
private void addPlayerHotbar(net.minecraft.world.entity.player.Inventory playerInventory)
-