Class TeslaSynthesizerMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
tech.anonymoushacker1279.immersiveweapons.menu.TeslaSynthesizerMenu
- All Implemented Interfaces:
net.minecraft.world.inventory.StackedContentsCompatible
public class TeslaSynthesizerMenu
extends net.minecraft.world.inventory.AbstractContainerMenu
implements net.minecraft.world.inventory.StackedContentsCompatible
-
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
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 TypeMethodDescriptionvoidfillStackedContents(net.minecraft.world.entity.player.StackedContents helper) intGet 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.booleanisIngredient(net.minecraft.world.item.crafting.RecipeManager recipeManager, net.minecraft.world.item.ItemStack stack) Check if the given ItemStack is a valid ingredient for any recipe.booleanisIngredient(net.minecraft.world.item.crafting.RecipeManager recipeManager, net.minecraft.world.item.ItemStack stack, int slot) Check if the given ItemStack is a valid ingredient for the given recipe in the given slot.net.minecraft.world.item.ItemStackquickMoveStack(net.minecraft.world.entity.player.Player player, int index) booleanstillValid(net.minecraft.world.entity.player.Player playerIn) 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
-
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 playerIn) - 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
-
fillStackedContents
public void fillStackedContents(net.minecraft.world.entity.player.StackedContents helper) - Specified by:
fillStackedContentsin interfacenet.minecraft.world.inventory.StackedContentsCompatible
-
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
-
isIngredient
public boolean isIngredient(net.minecraft.world.item.crafting.RecipeManager recipeManager, net.minecraft.world.item.ItemStack stack) Check if the given ItemStack is a valid ingredient for any recipe.- Parameters:
recipeManager- theRecipeManagerinstancestack- theItemStackbeing checked- Returns:
- boolean
-
isIngredient
public boolean isIngredient(net.minecraft.world.item.crafting.RecipeManager recipeManager, net.minecraft.world.item.ItemStack stack, int slot) Check if the given ItemStack is a valid ingredient for the given recipe in the given slot.- Parameters:
recipeManager- theRecipeManagerinstancestack- theItemStackbeing checkedslot- the slot index
-
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
-