类 RecipeWrapper
java.lang.Object
net.minecraftforge.items.wrapper.RecipeWrapper
-
字段概要
字段从接口继承的字段 net.minecraft.world.Container
DEFAULT_DISTANCE_BUFFER
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
canPlaceItem
(int slot, ItemStack stack) void
int
Returns the size of this inventory.getItem
(int slot) Returns the stack in this slot.int
boolean
isEmpty()
removeItem
(int slot, int count) Attempts to remove n items from the specified slot.removeItemNoUpdate
(int index) Removes the stack contained in this slot from the underlying handler, and returns it.void
void
Sets the contents of this slot to the provided stack.void
boolean
stillValid
(Player player) void
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.Container
canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf
-
字段详细资料
-
inv
-
-
构造器详细资料
-
RecipeWrapper
-
-
方法详细资料
-
getContainerSize
public int getContainerSize()Returns the size of this inventory.- 指定者:
getContainerSize
在接口中Container
-
getItem
Returns the stack in this slot. This stack should be a modifiable reference, not a copy of a stack in your inventory. -
removeItem
Attempts to remove n items from the specified slot. Returns the split stack that was removed. Modifies the inventory.- 指定者:
removeItem
在接口中Container
-
setItem
Sets the contents of this slot to the provided stack. -
removeItemNoUpdate
Removes the stack contained in this slot from the underlying handler, and returns it.- 指定者:
removeItemNoUpdate
在接口中Container
-
isEmpty
public boolean isEmpty() -
canPlaceItem
- 指定者:
canPlaceItem
在接口中Container
-
clearContent
public void clearContent()- 指定者:
clearContent
在接口中Clearable
-
getMaxStackSize
public int getMaxStackSize()- 指定者:
getMaxStackSize
在接口中Container
-
setChanged
public void setChanged()- 指定者:
setChanged
在接口中Container
-
stillValid
- 指定者:
stillValid
在接口中Container
-
startOpen
-
stopOpen
-