Class AstronomyTableMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.simibubi.create.foundation.gui.menu.MenuBase<AstronomyTableBlockEntity>
com.lightning.northstar.block.tech.astronomy_table.AstronomyTableMenu
public class AstronomyTableMenu
extends com.simibubi.create.foundation.gui.menu.MenuBase<AstronomyTableBlockEntity>
-
Field Summary
FieldsModifier and TypeFieldDescriptionnet.minecraft.network.chat.Componentprotected net.minecraft.world.SimpleContainerprotected net.minecraft.world.inventory.ResultContainerFields inherited from class com.simibubi.create.foundation.gui.menu.MenuBase
contentHolder, player, playerInventoryFields 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
ConstructorsConstructorDescriptionAstronomyTableMenu(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, AstronomyTableBlockEntity contentHolder) AstronomyTableMenu(net.minecraft.world.inventory.MenuType<AstronomyTableMenu> type, int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.RegistryFriendlyByteBuf extraData) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSlots()static AstronomyTableMenucreate(int id, net.minecraft.world.entity.player.Inventory inv, AstronomyTableBlockEntity be) protected AstronomyTableBlockEntitycreateOnClient(net.minecraft.network.RegistryFriendlyByteBuf extraData) protected voidinitAndReadInventory(AstronomyTableBlockEntity contentHolder) net.minecraft.world.item.ItemStackquickMoveStack(net.minecraft.world.entity.player.Player player, int index) voidremoved(net.minecraft.world.entity.player.Player player) protected voidsaveData(AstronomyTableBlockEntity contentHolder) voidMethods inherited from class com.simibubi.create.foundation.gui.menu.MenuBase
addPlayerSlots, createPlayerSlot, init, stillValidMethods 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, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
errorMessage
public net.minecraft.network.chat.Component errorMessage -
inputSlots
protected net.minecraft.world.SimpleContainer inputSlots -
resultSlots
protected net.minecraft.world.inventory.ResultContainer resultSlots
-
-
Constructor Details
-
AstronomyTableMenu
public AstronomyTableMenu(net.minecraft.world.inventory.MenuType<AstronomyTableMenu> type, int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.RegistryFriendlyByteBuf extraData) -
AstronomyTableMenu
public AstronomyTableMenu(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, AstronomyTableBlockEntity contentHolder)
-
-
Method Details
-
create
public static AstronomyTableMenu create(int id, net.minecraft.world.entity.player.Inventory inv, AstronomyTableBlockEntity be) -
createOnClient
protected AstronomyTableBlockEntity createOnClient(net.minecraft.network.RegistryFriendlyByteBuf extraData) - Specified by:
createOnClientin classcom.simibubi.create.foundation.gui.menu.MenuBase<AstronomyTableBlockEntity>
-
initAndReadInventory
- Specified by:
initAndReadInventoryin classcom.simibubi.create.foundation.gui.menu.MenuBase<AstronomyTableBlockEntity>
-
addSlots
protected void addSlots()- Specified by:
addSlotsin classcom.simibubi.create.foundation.gui.menu.MenuBase<AstronomyTableBlockEntity>
-
saveData
- Specified by:
saveDatain classcom.simibubi.create.foundation.gui.menu.MenuBase<AstronomyTableBlockEntity>
-
removed
public void removed(net.minecraft.world.entity.player.Player player) - Overrides:
removedin classcom.simibubi.create.foundation.gui.menu.MenuBase<AstronomyTableBlockEntity>
-
updateResult
public void updateResult() -
quickMoveStack
public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player player, int index) - Specified by:
quickMoveStackin classnet.minecraft.world.inventory.AbstractContainerMenu
-