Class StarForgeMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
tech.anonymoushacker1279.immersiveweapons.menu.StarForgeMenu
public class StarForgeMenu
extends net.minecraft.world.inventory.AbstractContainerMenu
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<net.minecraft.world.item.crafting.RecipeHolder<StarForgeRecipe>> final List<StarForgeRecipe> final net.minecraft.world.ContainerFields 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
ConstructorsConstructorDescriptionStarForgeMenu(int containerID, net.minecraft.world.entity.player.Inventory inventory, List<net.minecraft.resources.ResourceKey<net.minecraft.world.item.crafting.Recipe<?>>> availableRecipeLocations) StarForgeMenu(int containerID, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.Container container, net.minecraft.world.inventory.ContainerData containerData) -
Method Summary
Modifier and TypeMethodDescriptionintintintbooleanstatic voidpopulateAvailableRecipes(List<net.minecraft.resources.ResourceKey<net.minecraft.world.item.crafting.Recipe<?>>> recipeLocations, net.minecraft.server.level.ServerLevel level, List<StarForgeRecipe> availableRecipes) net.minecraft.world.item.ItemStackquickMoveStack(net.minecraft.world.entity.player.Player player, int index) voidremoved(net.minecraft.world.entity.player.Player player) voidsetMenuSelectionIndex(int index, boolean beginCrafting) voidslotsChanged(net.minecraft.world.Container container) booleanstillValid(net.minecraft.world.entity.player.Player pPlayer) static voidupdateServer(net.minecraft.server.level.ServerPlayer player, int containerId, int menuSelectionIndex, boolean beginCrafting) 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, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotUnsafe, setSelectedBundleItemIndex, setSynchronizer, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
container
public final net.minecraft.world.Container container -
availableRecipes
-
ALL_RECIPES
public static final List<net.minecraft.world.item.crafting.RecipeHolder<StarForgeRecipe>> ALL_RECIPES
-
-
Constructor Details
-
StarForgeMenu
public StarForgeMenu(int containerID, net.minecraft.world.entity.player.Inventory inventory, List<net.minecraft.resources.ResourceKey<net.minecraft.world.item.crafting.Recipe<?>>> availableRecipeLocations) -
StarForgeMenu
public StarForgeMenu(int containerID, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.Container container, net.minecraft.world.inventory.ContainerData containerData)
-
-
Method Details
-
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
-
slotsChanged
public void slotsChanged(net.minecraft.world.Container container) - Overrides:
slotsChangedin classnet.minecraft.world.inventory.AbstractContainerMenu
-
removed
public void removed(net.minecraft.world.entity.player.Player player) - Overrides:
removedin classnet.minecraft.world.inventory.AbstractContainerMenu
-
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player pPlayer) - Specified by:
stillValidin classnet.minecraft.world.inventory.AbstractContainerMenu
-
setMenuSelectionIndex
public void setMenuSelectionIndex(int index, boolean beginCrafting) -
hasSolarEnergy
public boolean hasSolarEnergy() -
getTemperature
public int getTemperature() -
getSmeltTime
public int getSmeltTime() -
getMenuSelectionIndex
public int getMenuSelectionIndex() -
populateAvailableRecipes
public static void populateAvailableRecipes(List<net.minecraft.resources.ResourceKey<net.minecraft.world.item.crafting.Recipe<?>>> recipeLocations, net.minecraft.server.level.ServerLevel level, List<StarForgeRecipe> availableRecipes) -
updateServer
public static void updateServer(net.minecraft.server.level.ServerPlayer player, int containerId, int menuSelectionIndex, boolean beginCrafting)
-