类 RecipeWrapper

java.lang.Object
net.minecraftforge.items.wrapper.RecipeWrapper
所有已实现的接口:
Clearable, Container

public class RecipeWrapper extends Object implements Container
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • getContainerSize

      public int getContainerSize()
      Returns the size of this inventory.
      指定者:
      getContainerSize 在接口中 Container
    • getItem

      public ItemStack getItem(int slot)
      Returns the stack in this slot. This stack should be a modifiable reference, not a copy of a stack in your inventory.
      指定者:
      getItem 在接口中 Container
    • removeItem

      public ItemStack removeItem(int slot, int count)
      Attempts to remove n items from the specified slot. Returns the split stack that was removed. Modifies the inventory.
      指定者:
      removeItem 在接口中 Container
    • setItem

      public void setItem(int slot, ItemStack stack)
      Sets the contents of this slot to the provided stack.
      指定者:
      setItem 在接口中 Container
    • removeItemNoUpdate

      public ItemStack removeItemNoUpdate(int index)
      Removes the stack contained in this slot from the underlying handler, and returns it.
      指定者:
      removeItemNoUpdate 在接口中 Container
    • isEmpty

      public boolean isEmpty()
      指定者:
      isEmpty 在接口中 Container
    • canPlaceItem

      public boolean canPlaceItem(int slot, ItemStack stack)
      指定者:
      canPlaceItem 在接口中 Container
    • clearContent

      public void clearContent()
      指定者:
      clearContent 在接口中 Clearable
    • getMaxStackSize

      public int getMaxStackSize()
      指定者:
      getMaxStackSize 在接口中 Container
    • setChanged

      public void setChanged()
      指定者:
      setChanged 在接口中 Container
    • stillValid

      public boolean stillValid(Player player)
      指定者:
      stillValid 在接口中 Container
    • startOpen

      public void startOpen(Player player)
      指定者:
      startOpen 在接口中 Container
    • stopOpen

      public void stopOpen(Player player)
      指定者:
      stopOpen 在接口中 Container