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

Импорт класса

Link to импорт-класса

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
pos
Тип
IBlockPos
Описание
The position of the dispenser.
ZenGetters
facing
Тип
IFacing
Описание
The facing of the dispenser.