IAura Chunk
Import
Static ZenMethod
方法名
返回值类型
方法描述
drainAura(pos as IBlockPos, amount as int, aimForZero as bool, simulate as bool)
int
消耗给定 pos 的灵气数量, 返回消耗的灵气 (aimForZero
为 true
时如果灵气被消耗至负数则返回值为消耗前的灵气量)
drainAura(pos as IBlockPos, amount as int)
int
同上只不过后两个参数是 false
storeAura(pos as IBlockPos, amount as int, aimForZero as bool, simulate as bool)
int
增加给定 pos 的灵气数量, 返回增加的灵气 (aimForZero
为 true
时如果灵气被增加至正数则返回值为增加前的灵气量)
storeAura(pos as IBlockPos, amount as int)
int
同上只不过后两个参数为 false
getDrainSpot(pos as IBlockPos)
int
返回 pos
的灵气量
Example
Last updated