The IBlockSource interface contains some information when a dispenser is activated.

It might be required to import the class to avoid errors.

import crafttweaker.dispenser.IBlockSource;

ZenGetters类型描述
ZenGetters
x
类型
double
描述
The x coordinate of the dispenser.
ZenGetters
y
类型
double
描述
The y coordinate of the dispenser.
ZenGetters
z
类型
double
描述
The z coordinate of the dispenser.
ZenGetters
world
类型
IWorld
描述
The world of the dispenser.
ZenGetters
blockState
类型
IBlockState
描述
The block state of the dispenser.
ZenGetters
类型
IBlockPos
描述
The position of the dispenser.
ZenGetters
方向
类型
IFacing
描述
The facing of the dispenser.