Class TelescopeMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.simibubi.create.foundation.gui.menu.MenuBase<TelescopeBlockEntity>
com.lightning.northstar.block.tech.telescope.TelescopeMenu
public class TelescopeMenu
extends com.simibubi.create.foundation.gui.menu.MenuBase<TelescopeBlockEntity>
-
Field Summary
Fields 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
ConstructorsConstructorDescriptionTelescopeMenu(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, TelescopeBlockEntity contentHolder) TelescopeMenu(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.RegistryFriendlyByteBuf extraData) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSlots()static TelescopeMenucreate(int id, net.minecraft.world.entity.player.Inventory inventory, TelescopeBlockEntity data) protected TelescopeBlockEntitycreateOnClient(net.minecraft.network.RegistryFriendlyByteBuf extraData) protected voidinitAndReadInventory(TelescopeBlockEntity contentHolder) net.minecraft.world.item.ItemStackquickMoveStack(net.minecraft.world.entity.player.Player player, int index) protected voidsaveData(TelescopeBlockEntity contentHolder) booleanstillValid(net.minecraft.world.entity.player.Player player) Methods inherited from class com.simibubi.create.foundation.gui.menu.MenuBase
addPlayerSlots, createPlayerSlot, init, removedMethods 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
-
Constructor Details
-
TelescopeMenu
public TelescopeMenu(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.RegistryFriendlyByteBuf extraData) -
TelescopeMenu
public TelescopeMenu(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, TelescopeBlockEntity contentHolder)
-
-
Method Details
-
create
public static TelescopeMenu create(int id, net.minecraft.world.entity.player.Inventory inventory, TelescopeBlockEntity data) -
createOnClient
protected TelescopeBlockEntity createOnClient(net.minecraft.network.RegistryFriendlyByteBuf extraData) - Specified by:
createOnClientin classcom.simibubi.create.foundation.gui.menu.MenuBase<TelescopeBlockEntity>
-
initAndReadInventory
- Specified by:
initAndReadInventoryin classcom.simibubi.create.foundation.gui.menu.MenuBase<TelescopeBlockEntity>
-
addSlots
protected void addSlots()- Specified by:
addSlotsin classcom.simibubi.create.foundation.gui.menu.MenuBase<TelescopeBlockEntity>
-
saveData
- Specified by:
saveDatain classcom.simibubi.create.foundation.gui.menu.MenuBase<TelescopeBlockEntity>
-
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
-
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player player) - Overrides:
stillValidin classcom.simibubi.create.foundation.gui.menu.MenuBase<TelescopeBlockEntity>
-