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 TypeFieldDescriptionfinal net.minecraft.world.Containerfinal net.minecraft.world.inventory.ContainerDatafinal net.minecraft.world.inventory.Slotfinal net.minecraft.world.entity.player.Playerfinal net.minecraft.world.inventory.SlotFields 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
ConstructorsConstructorDescriptionStarForgeMenu(int containerID, net.minecraft.world.entity.player.Inventory inventory, List<net.minecraft.resources.ResourceLocation> 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.ResourceLocation> recipeLocations, net.minecraft.world.level.Level 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, 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, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
container
public final net.minecraft.world.Container container -
containerData
public final net.minecraft.world.inventory.ContainerData containerData -
player
public final net.minecraft.world.entity.player.Player player -
ingotInputSlot
public final net.minecraft.world.inventory.Slot ingotInputSlot -
secondaryInputSlot
public final net.minecraft.world.inventory.Slot secondaryInputSlot -
availableRecipes
-
-
Constructor Details
-
StarForgeMenu
public StarForgeMenu(int containerID, net.minecraft.world.entity.player.Inventory inventory, List<net.minecraft.resources.ResourceLocation> 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.ResourceLocation> recipeLocations, net.minecraft.world.level.Level level, List<StarForgeRecipe> availableRecipes) -
updateServer
public static void updateServer(net.minecraft.server.level.ServerPlayer player, int containerId, int menuSelectionIndex, boolean beginCrafting)
-