类 CreativeModeInventoryScreen.SlotWrapper

java.lang.Object
net.minecraft.world.inventory.Slot
net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen.SlotWrapper
封闭类:
CreativeModeInventoryScreen

static class CreativeModeInventoryScreen.SlotWrapper extends Slot
  • 字段详细资料

    • target

      final Slot target
  • 构造器详细资料

    • SlotWrapper

      public SlotWrapper(Slot p_98657_, int p_98658_, int p_98659_, int p_98660_)
  • 方法详细资料

    • onTake

      public void onTake(Player p_169754_, ItemStack p_169755_)
      覆盖:
      onTake 在类中 Slot
    • mayPlace

      public boolean mayPlace(ItemStack p_98670_)
      覆盖:
      mayPlace 在类中 Slot
    • getItem

      public ItemStack getItem()
      覆盖:
      getItem 在类中 Slot
    • hasItem

      public boolean hasItem()
      覆盖:
      hasItem 在类中 Slot
    • setByPlayer

      public void setByPlayer(ItemStack p_271008_, ItemStack p_299458_)
      覆盖:
      setByPlayer 在类中 Slot
    • set

      public void set(ItemStack p_98679_)
      覆盖:
      set 在类中 Slot
    • setChanged

      public void setChanged()
      覆盖:
      setChanged 在类中 Slot
    • getMaxStackSize

      public int getMaxStackSize()
      覆盖:
      getMaxStackSize 在类中 Slot
    • getMaxStackSize

      public int getMaxStackSize(ItemStack p_98675_)
      覆盖:
      getMaxStackSize 在类中 Slot
    • getNoItemIcon

      @Nullable public ResourceLocation getNoItemIcon()
      覆盖:
      getNoItemIcon 在类中 Slot
    • remove

      public ItemStack remove(int p_98663_)
      覆盖:
      remove 在类中 Slot
    • isActive

      public boolean isActive()
      覆盖:
      isActive 在类中 Slot
    • mayPickup

      public boolean mayPickup(Player p_98665_)
      覆盖:
      mayPickup 在类中 Slot
    • getSlotIndex

      public int getSlotIndex()
      从类复制的说明: Slot
      Retrieves the index in the inventory for this slot, this value should typically not be used, but can be useful for some occasions.
      覆盖:
      getSlotIndex 在类中 Slot
      返回:
      Index in associated inventory for this slot.
    • isSameInventory

      public boolean isSameInventory(Slot other)
      从类复制的说明: Slot
      Checks if the other slot is in the same inventory, by comparing the inventory reference.
      覆盖:
      isSameInventory 在类中 Slot
      参数:
      other -
      返回:
      true if the other slot is in the same inventory
    • setBackground

      public Slot setBackground(ResourceLocation sprite)
      从类复制的说明: Slot
      Sets the background atlas and sprite location.
      覆盖:
      setBackground 在类中 Slot
      参数:
      sprite - The sprite located on that atlas.
      返回:
      this, to allow chaining.