Class CraftingRecipeWrapper
java.lang.Object
net.minecraft.world.inventory.CraftingContainer
info.u_team.u_team_core.inventory.CraftingRecipeWrapper
- All Implemented Interfaces:
net.minecraft.world.Clearable
,net.minecraft.world.Container
,net.minecraft.world.inventory.StackedContentsCompatible
public class CraftingRecipeWrapper
extends net.minecraft.world.inventory.CraftingContainer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final net.minecraftforge.items.IItemHandlerModifiable
Fields inherited from interface net.minecraft.world.Container
LARGE_MAX_STACK_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionCraftingRecipeWrapper
(net.minecraftforge.items.IItemHandlerModifiable inventory, int width, int height) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canPlaceItem
(int slot, net.minecraft.world.item.ItemStack stack) void
void
fillStackedContents
(net.minecraft.world.entity.player.StackedContents helper) int
net.minecraft.world.item.ItemStack
getItem
(int slot) boolean
isEmpty()
net.minecraft.world.item.ItemStack
removeItem
(int slot, int count) net.minecraft.world.item.ItemStack
removeItemNoUpdate
(int slot) void
setItem
(int slot, net.minecraft.world.item.ItemStack stack) Methods inherited from class net.minecraft.world.inventory.CraftingContainer
getHeight, getWidth, setChanged, stillValid
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.Container
countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, startOpen, stopOpen
-
Field Details
-
inventory
protected final net.minecraftforge.items.IItemHandlerModifiable inventory
-
-
Constructor Details
-
CraftingRecipeWrapper
public CraftingRecipeWrapper(net.minecraftforge.items.IItemHandlerModifiable inventory, int width, int height)
-
-
Method Details
-
getContainerSize
public int getContainerSize()- Specified by:
getContainerSize
in interfacenet.minecraft.world.Container
- Overrides:
getContainerSize
in classnet.minecraft.world.inventory.CraftingContainer
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfacenet.minecraft.world.Container
- Overrides:
isEmpty
in classnet.minecraft.world.inventory.CraftingContainer
-
getItem
public net.minecraft.world.item.ItemStack getItem(int slot) - Specified by:
getItem
in interfacenet.minecraft.world.Container
- Overrides:
getItem
in classnet.minecraft.world.inventory.CraftingContainer
-
removeItemNoUpdate
public net.minecraft.world.item.ItemStack removeItemNoUpdate(int slot) - Specified by:
removeItemNoUpdate
in interfacenet.minecraft.world.Container
- Overrides:
removeItemNoUpdate
in classnet.minecraft.world.inventory.CraftingContainer
-
removeItem
public net.minecraft.world.item.ItemStack removeItem(int slot, int count) - Specified by:
removeItem
in interfacenet.minecraft.world.Container
- Overrides:
removeItem
in classnet.minecraft.world.inventory.CraftingContainer
-
setItem
public void setItem(int slot, net.minecraft.world.item.ItemStack stack) - Specified by:
setItem
in interfacenet.minecraft.world.Container
- Overrides:
setItem
in classnet.minecraft.world.inventory.CraftingContainer
-
clearContent
public void clearContent()- Specified by:
clearContent
in interfacenet.minecraft.world.Clearable
- Overrides:
clearContent
in classnet.minecraft.world.inventory.CraftingContainer
-
canPlaceItem
public boolean canPlaceItem(int slot, net.minecraft.world.item.ItemStack stack) -
fillStackedContents
public void fillStackedContents(net.minecraft.world.entity.player.StackedContents helper) - Specified by:
fillStackedContents
in interfacenet.minecraft.world.inventory.StackedContentsCompatible
- Overrides:
fillStackedContents
in classnet.minecraft.world.inventory.CraftingContainer
-