接口 IItemHandlerModifiable

所有超级接口:
IItemHandler
所有已知实现类:
CombinedInvWrapper, EmptyHandler, EntityArmorInvWrapper, EntityEquipmentInvWrapper, EntityHandsInvWrapper, InvWrapper, ItemStackHandler, PlayerArmorInvWrapper, PlayerInvWrapper, PlayerMainInvWrapper, PlayerOffhandInvWrapper, RangedWrapper, SidedInvWrapper, VanillaHopperItemHandler

public interface IItemHandlerModifiable extends IItemHandler
  • 方法详细资料

    • setStackInSlot

      void setStackInSlot(int slot, @NotNull @NotNull ItemStack stack)
      Overrides the stack in the given slot. This method is used by the standard Forge helper methods and classes. It is not intended for general use by other mods, and the handler may throw an error if it is called unexpectedly.
      参数:
      slot - Slot to modify
      stack - ItemStack to set slot to (may be empty).
      抛出:
      RuntimeException - if the handler is called in a way that the handler was not expecting.