Class DummyCraftingContainer
java.lang.Object
net.minecraft.world.inventory.TransientCraftingContainer
com.simibubi.create.foundation.recipe.DummyCraftingContainer
- All Implemented Interfaces:
net.minecraft.world.Clearable,net.minecraft.world.Container,net.minecraft.world.inventory.CraftingContainer,net.minecraft.world.inventory.StackedContentsCompatible
public class DummyCraftingContainer
extends net.minecraft.world.inventory.TransientCraftingContainer
-
Field Summary
Fields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_BUFFER -
Constructor Summary
ConstructorsConstructorDescriptionDummyCraftingContainer(net.neoforged.neoforge.items.IItemHandler itemHandler, int[] extractedItemsFromSlot) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidfillStackedContents(@NotNull net.minecraft.world.entity.player.StackedContents helper) int@NotNull net.minecraft.world.item.ItemStackgetItem(int slot) booleanisEmpty()@NotNull net.minecraft.world.item.ItemStackremoveItem(int slot, int count) @NotNull net.minecraft.world.item.ItemStackremoveItemNoUpdate(int slot) voidsetItem(int slot, @NotNull net.minecraft.world.item.ItemStack stack) Methods inherited from class net.minecraft.world.inventory.TransientCraftingContainer
getHeight, getItems, getWidth, setChanged, stillValidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.Container
canPlaceItem, canTakeItem, countItem, getMaxStackSize, getMaxStackSize, hasAnyMatching, hasAnyOf, startOpen, stopOpenMethods inherited from interface net.minecraft.world.inventory.CraftingContainer
asCraftInput, asPositionedCraftInput
-
Constructor Details
-
DummyCraftingContainer
public DummyCraftingContainer(net.neoforged.neoforge.items.IItemHandler itemHandler, int[] extractedItemsFromSlot)
-
-
Method Details
-
getContainerSize
public int getContainerSize()- Specified by:
getContainerSizein interfacenet.minecraft.world.Container- Overrides:
getContainerSizein classnet.minecraft.world.inventory.TransientCraftingContainer
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacenet.minecraft.world.Container- Overrides:
isEmptyin classnet.minecraft.world.inventory.TransientCraftingContainer
-
getItem
@NotNull public @NotNull net.minecraft.world.item.ItemStack getItem(int slot) - Specified by:
getItemin interfacenet.minecraft.world.Container- Overrides:
getItemin classnet.minecraft.world.inventory.TransientCraftingContainer
-
removeItemNoUpdate
@NotNull public @NotNull net.minecraft.world.item.ItemStack removeItemNoUpdate(int slot) - Specified by:
removeItemNoUpdatein interfacenet.minecraft.world.Container- Overrides:
removeItemNoUpdatein classnet.minecraft.world.inventory.TransientCraftingContainer
-
removeItem
@NotNull public @NotNull net.minecraft.world.item.ItemStack removeItem(int slot, int count) - Specified by:
removeItemin interfacenet.minecraft.world.Container- Overrides:
removeItemin classnet.minecraft.world.inventory.TransientCraftingContainer
-
setItem
public void setItem(int slot, @NotNull @NotNull net.minecraft.world.item.ItemStack stack) - Specified by:
setItemin interfacenet.minecraft.world.Container- Overrides:
setItemin classnet.minecraft.world.inventory.TransientCraftingContainer
-
clearContent
public void clearContent()- Specified by:
clearContentin interfacenet.minecraft.world.Clearable- Overrides:
clearContentin classnet.minecraft.world.inventory.TransientCraftingContainer
-
fillStackedContents
public void fillStackedContents(@NotNull @NotNull net.minecraft.world.entity.player.StackedContents helper) - Specified by:
fillStackedContentsin interfacenet.minecraft.world.inventory.StackedContentsCompatible- Overrides:
fillStackedContentsin classnet.minecraft.world.inventory.TransientCraftingContainer
-