Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace LiquidRegistry

Index

Variables

EmptyByFull: object
FullByEmpty: object
liquidStorageSaverId: number
liquids: object

Functions

  • getBlockByLiquid(liquidId: string, isStatic?: boolean): number
  • Parameters

    • liquidId: string
    • Optional isStatic: boolean

    Returns number

    numeric id of the liquid block by given LiquidRegistry string id. If isStatic param is passed and it is true, the static liquid block id will be returned, otherwise the dynamic block id will be returned. This function will return 0 if no liquid with given string id exists

  • getEmptyItem(id: number, data: number): { data: number; id: number; liquid: string }
  • Parameters

    • id: number
    • data: number

    Returns { data: number; id: number; liquid: string }

    • data: number
    • id: number
    • liquid: string
  • getFullItem(id: number, data: number, liquid: string): { data: number; id: number }
  • Parameters

    • id: number
    • data: number
    • liquid: string

    Returns { data: number; id: number }

    • data: number
    • id: number
  • getItemLiquid(id: number, data: number): string
  • getLiquidByBlock(id: number): Nullable<string>
  • Parameters

    • id: number

    Returns Nullable<string>

    string id of a liquid for given block, or null, if a block with given id is not a liquid

  • getLiquidData(key: string): any
  • getLiquidName(key: string): string
  • getLiquidUIBitmap(key: string, width: number, height: number): android.graphics.Bitmap
  • Parameters

    • key: string
    • width: number
    • height: number

    Returns android.graphics.Bitmap

  • getLiquidUITexture(key: string, width: number, height: number): string
  • isExists(key: string): boolean
  • registerItem(liquid: string, empty: { data: number; id: number }, full: { data: number; id: number }): void
  • Parameters

    • liquid: string
    • empty: { data: number; id: number }
      • data: number
      • id: number
    • full: { data: number; id: number }
      • data: number
      • id: number

    Returns void

  • registerLiquid(key: string, name: string, uiTextures: string[], modelTextures?: string[]): void
  • Parameters

    • key: string
    • name: string
    • uiTextures: string[]
    • Optional modelTextures: string[]

    Returns void

Generated using TypeDoc