An IBlockPos object represents a position in the game.

Импорт пакета

Link to импорт-пакета

It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.
import crafttweaker.world.IBlockPos;

ZenMethods without parameters

Link to zenmethods-without-parameters

ZenMethodZenGetter/CasterВозвращаемый типОписание
ZenMethod
getX()
ZenGetter/Caster
x
Возвращаемый тип
int
Описание
Returns the position's X value
ZenMethod
getY()
ZenGetter/Caster
y
Возвращаемый тип
int
Описание
Returns the position's Y value
ZenMethod
getZ()
ZenGetter/Caster
z
Возвращаемый тип
int
Описание
Returns the position's Z value
ZenMethod
asPosition3f
ZenGetter/Caster
as IPosition3f
Возвращаемый тип
IPosition3f
Описание
Returns the position as Position3f Object.

ZenMethods with parameters

Link to zenmethods-with-parameters

Returns a new IBlockPos that is offset blocks into the direction direction.

IBlockPos getOffset(IFacing direction, int offset);

Alternatively you can directly get the IFacing objects using the static methods provided there.

  • IFacing direction → The direction
  • int offset → how many blocks in that direction?