Перейти к основному содержанию

StorageDescriptor

Hierarchy

Index

Properties

optionalliquidUnitRatio

liquidUnitRatio?: number

optionalslots

slots?: {}

Type declaration

Methods

optionaladdItem

  • addItem(item: ItemInstance, side?: number, maxCount?: number): number
  • Parameters

    • item: ItemInstance
    • optionalside: number
    • optionalmaxCount: number

    Returns number

optionalcanReceiveLiquid

  • canReceiveLiquid(liquid: string, side: number): boolean
  • Parameters

    • liquid: string
    • side: number

    Returns boolean

optionalcanTransportLiquid

  • canTransportLiquid(liquid: string, side: number): boolean
  • Parameters

    • liquid: string
    • side: number

    Returns boolean

optionalextractLiquid

  • extractLiquid(liquidStorage: ILiquidStorage, liquid: string, amount: number): number
  • Parameters

    Returns number

optionalgetInputSlots

  • getInputSlots(side?: number): string[] | number[]
  • Parameters

    • optionalside: number

    Returns string[] | number[]

optionalgetInputTank

optionalgetOutputSlots

  • getOutputSlots(side?: number): string[] | number[]
  • Parameters

    • optionalside: number

    Returns string[] | number[]

optionalgetOutputTank

optionalisValidInput

  • isValidInput(item: ItemInstance, side: number, tileEntity: TileEntity): boolean
  • Parameters

    • item: ItemInstance
    • side: number
    • tileEntity: TileEntity

    Returns boolean

optionalreceiveLiquid

  • receiveLiquid(liquidStorage: ILiquidStorage, liquid: string, amount: number): number
  • Parameters

    Returns number