Class TeslaSynthesizerMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
tech.anonymoushacker1279.immersiveweapons.menu.TeslaSynthesizerMenu
public class TeslaSynthesizerMenu
extends net.minecraft.world.inventory.AbstractContainerMenu
-
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, SLOT_SIZE, slots, SLOTS_PER_ROW -
Constructor Summary
ConstructorsConstructorDescriptionTeslaSynthesizerMenu(int id, net.minecraft.world.entity.player.Inventory inventory) Constructor for TeslaSynthesizerMenu.TeslaSynthesizerMenu(int id, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.Container container, net.minecraft.world.inventory.ContainerData containerData) Constructor for TeslaSynthesizerMenu. -
Method Summary
Modifier and TypeMethodDescriptionintGet the scaled burn time left.intGet the current progression.booleanCheck if the fuel is currently burning.booleanisFuel(net.minecraft.world.item.ItemStack stack) Check if the given ItemStack is a fuel item.net.minecraft.world.item.ItemStackquickMoveStack(net.minecraft.world.entity.player.Player player, int index) booleanstillValid(net.minecraft.world.entity.player.Player player) Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addSlot, addSlotListener, addStandardInventorySlots, 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, setRemoteSlotUnsafe, setSelectedBundleItemIndex, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
Constructor Details
-
TeslaSynthesizerMenu
public TeslaSynthesizerMenu(int id, net.minecraft.world.entity.player.Inventory inventory) Constructor for TeslaSynthesizerMenu.- Parameters:
id- the ID of the containerinventory- theInventoryinstance
-
TeslaSynthesizerMenu
public TeslaSynthesizerMenu(int id, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.Container container, net.minecraft.world.inventory.ContainerData containerData) Constructor for TeslaSynthesizerMenu.- Parameters:
id- the ID of the containerinventory- the player inventorycontainer- the containercontainerData- the container data
-
-
Method Details
-
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player player) - Specified by:
stillValidin classnet.minecraft.world.inventory.AbstractContainerMenu
-
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
-
isFuel
public boolean isFuel(net.minecraft.world.item.ItemStack stack) Check if the given ItemStack is a fuel item.- Parameters:
stack- theItemStackbeing checked- Returns:
- boolean
-
getCookProgressionScaled
public int getCookProgressionScaled()Get the current progression.- Returns:
- int
-
getBurnLeftScaled
public int getBurnLeftScaled()Get the scaled burn time left.- Returns:
- int
-
isBurning
public boolean isBurning()Check if the fuel is currently burning.- Returns:
- boolean
-