类 ModCraftContainer

java.lang.Object
net.minecraft.world.inventory.TransientCraftingContainer
committee.nova.mods.avaritia.common.container.ModCraftContainer
所有已实现的接口:
net.minecraft.world.Clearable, net.minecraft.world.Container, net.minecraft.world.inventory.CraftingContainer, net.minecraft.world.inventory.StackedContentsCompatible

public class ModCraftContainer extends net.minecraft.world.inventory.TransientCraftingContainer
Description:
  • 字段概要

    从接口继承的字段 net.minecraft.world.Container

    DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
  • 构造器概要

    构造器
    构造器
    说明
    ModCraftContainer(net.minecraft.world.inventory.AbstractContainerMenu menu, ItemStackWrapper inventory, int size)
     
    ModCraftContainer(net.minecraft.world.inventory.AbstractContainerMenu menu, ItemStackWrapper inventory, int size, boolean autoTable)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
     
    int
     
    @NotNull net.minecraft.world.item.ItemStack
    getItem(int slot)
     
    boolean
     
    @NotNull net.minecraft.world.item.ItemStack
    removeItem(int slot, int amount)
     
    @NotNull net.minecraft.world.item.ItemStack
     
    void
     
    void
    setItem(int slot, @NotNull net.minecraft.world.item.ItemStack stack)
     
    boolean
    stillValid(@NotNull net.minecraft.world.entity.player.Player player)
     

    从类继承的方法 net.minecraft.world.inventory.TransientCraftingContainer

    fillStackedContents, getHeight, getItems, getWidth

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    从接口继承的方法 net.minecraft.world.Container

    canPlaceItem, canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, startOpen, stopOpen
  • 构造器详细资料

    • ModCraftContainer

      public ModCraftContainer(net.minecraft.world.inventory.AbstractContainerMenu menu, ItemStackWrapper inventory, int size)
    • ModCraftContainer

      public ModCraftContainer(net.minecraft.world.inventory.AbstractContainerMenu menu, ItemStackWrapper inventory, int size, boolean autoTable)
  • 方法详细资料

    • getContainerSize

      public int getContainerSize()
      指定者:
      getContainerSize 在接口中 net.minecraft.world.Container
      覆盖:
      getContainerSize 在类中 net.minecraft.world.inventory.TransientCraftingContainer
    • isEmpty

      public boolean isEmpty()
      指定者:
      isEmpty 在接口中 net.minecraft.world.Container
      覆盖:
      isEmpty 在类中 net.minecraft.world.inventory.TransientCraftingContainer
    • getItem

      @NotNull public @NotNull net.minecraft.world.item.ItemStack getItem(int slot)
      指定者:
      getItem 在接口中 net.minecraft.world.Container
      覆盖:
      getItem 在类中 net.minecraft.world.inventory.TransientCraftingContainer
    • removeItem

      @NotNull public @NotNull net.minecraft.world.item.ItemStack removeItem(int slot, int amount)
      指定者:
      removeItem 在接口中 net.minecraft.world.Container
      覆盖:
      removeItem 在类中 net.minecraft.world.inventory.TransientCraftingContainer
    • removeItemNoUpdate

      @NotNull public @NotNull net.minecraft.world.item.ItemStack removeItemNoUpdate(int slot)
      指定者:
      removeItemNoUpdate 在接口中 net.minecraft.world.Container
      覆盖:
      removeItemNoUpdate 在类中 net.minecraft.world.inventory.TransientCraftingContainer
    • setItem

      public void setItem(int slot, @NotNull @NotNull net.minecraft.world.item.ItemStack stack)
      指定者:
      setItem 在接口中 net.minecraft.world.Container
      覆盖:
      setItem 在类中 net.minecraft.world.inventory.TransientCraftingContainer
    • setChanged

      public void setChanged()
      指定者:
      setChanged 在接口中 net.minecraft.world.Container
      覆盖:
      setChanged 在类中 net.minecraft.world.inventory.TransientCraftingContainer
    • stillValid

      public boolean stillValid(@NotNull @NotNull net.minecraft.world.entity.player.Player player)
      指定者:
      stillValid 在接口中 net.minecraft.world.Container
      覆盖:
      stillValid 在类中 net.minecraft.world.inventory.TransientCraftingContainer
    • clearContent

      public void clearContent()
      指定者:
      clearContent 在接口中 net.minecraft.world.Clearable
      覆盖:
      clearContent 在类中 net.minecraft.world.inventory.TransientCraftingContainer