java.lang.Object
net.minecraft.world.inventory.Slot
net.minecraftforge.items.SlotItemHandler
committee.nova.mods.avaritia.api.common.slot.ForbidSlot

public class ForbidSlot extends net.minecraftforge.items.SlotItemHandler
  • 字段概要

    从类继承的字段 net.minecraft.world.inventory.Slot

    container, x, y
  • 构造器概要

    构造器
    构造器
    说明
    ForbidSlot(net.minecraftforge.items.IItemHandler itemHandler, int index, int xPosition, int yPosition)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    mayPickup(net.minecraft.world.entity.player.Player player)
     
    boolean
    mayPlace(@NotNull net.minecraft.world.item.ItemStack stack)
     

    从类继承的方法 net.minecraftforge.items.SlotItemHandler

    getItem, getItemHandler, getMaxStackSize, getMaxStackSize, initialize, onQuickCraft, remove, set

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

    allowModification, checkTakeAchievements, getContainerSlot, getNoItemIcon, getSlotIndex, hasItem, isActive, isHighlightable, isSameInventory, onQuickCraft, onSwapCraft, onTake, safeInsert, safeInsert, safeTake, setBackground, setByPlayer, setChanged, tryRemove

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

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • ForbidSlot

      public ForbidSlot(net.minecraftforge.items.IItemHandler itemHandler, int index, int xPosition, int yPosition)
  • 方法详细资料

    • mayPlace

      public boolean mayPlace(@NotNull @NotNull net.minecraft.world.item.ItemStack stack)
      覆盖:
      mayPlace 在类中 net.minecraftforge.items.SlotItemHandler
    • mayPickup

      public boolean mayPickup(net.minecraft.world.entity.player.Player player)
      覆盖:
      mayPickup 在类中 net.minecraftforge.items.SlotItemHandler