LiquidRegistry
Index
Classes
Storage
constructor
Parameters
tileEntity: TileEntity
Returns Storage
readonlyliquidAmountsinternal
Type declaration
[key string]: number
readonlyliquidLimitsinternal
Type declaration
[key string]: number
readonlytileEntity
_setContainerScale
- internal
Parameters
container: Container
scale: string
liquid: string
val: number
Returns void
addLiquid
Parameters
liquid: string
amount: number
optionalonlyFullAmount: boolean
Returns number
getAmount
Parameters
liquid: string
Returns number
getLimit
Parameters
liquid: string
Returns number
getLiquid
Parameters
liquid: string
amount: number
optionalonlyFullAmount: boolean
Returns number
getLiquidStored
Returns string
getParent
Returns TileEntity
getRelativeAmount
Parameters
liquid: string
Returns number
hasDataFor
Parameters
liquid: string
Returns boolean
isEmpty
Parameters
optionalliquid: string
Returns boolean
isFull
Parameters
optionalliquid: string
Returns boolean
setAmount
Parameters
liquid: string
amount: number
Returns void
setLimit
Parameters
liquid: string
limit: number
Returns void
setParent
Parameters
tileEntity: TileEntity
Returns void
updateUiScale
Parameters
scale: string
liquid: string
optionalcontainer: Container
Returns void
Interfaces
LiquidData
blockId
key
modelTextures
name
staticBlockId
uiCache
uiTextures
addModelTexture
Parameters
name: string
Returns void
addUITexture
Parameters
name: string
Returns void
Variables
constLiquidByBlockinternal
Type declaration
[blockId number]: string
constliquidsinternal
Type declaration
[key string]: LiquidData
Functions
getBlockByLiquid
Parameters
liquidId: string
Returns number
Numeric ID of the liquid block by given LiquidRegistry string ID.
getEmptyItem
Parameters
id: number
data: number
Returns { data: number; id: number; liquid: string }
data: number
id: number
liquid: string
getFullItem
Parameters
id: number
data: number
liquid: string
Returns { data: number; id: number }
data: number
id: number
getItemLiquid
Parameters
id: number
data: number
Returns string
getLiquidByBlock
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
Parameters
key: string
Returns LiquidData
getLiquidName
Parameters
key: string
Returns string
getLiquidUIBitmap
Parameters
key: string
width: number
height: number
Returns android.graphics.Bitmap
getLiquidUITexture
Parameters
key: string
width: number
height: number
Returns string
isExists
Parameters
key: string
Returns boolean
registerBlock
Parameters
liquid: string
blockId: number
isDynamic: boolean
Returns void
registerItem
Parameters
liquid: string
empty: { data: number; id: number }
data: number
id: number
full: { data: number; id: number }
data: number
id: number
Returns void
registerLiquid
Parameters
key: string
optionalname: string
optionaluiTextures: string[]
optionalmodelTextures: string[]
Returns void
2.2.1b103