IBlockPos
Link to iblockpos
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 mods.contenttweaker.BlockPos;
ZenMethods without parameters
Link to zenmethods-without-parameters
ZenMethod | ZenGetter | Возвращаемый тип | Описание |
---|---|---|---|
ZenMethod getX() | ZenGetter x | Возвращаемый тип int | Описание Returns the position's X value |
ZenMethod getY() | ZenGetter y | Возвращаемый тип int | Описание Returns the position's Y value |
ZenMethod getZ() | ZenGetter z | Возвращаемый тип int | Описание Returns the position's Z value |
ZenMethods with parameters
Link to zenmethods-with-parameters
Get Offset
Link to get-offset
Returns a new IBlockPos that is offset
blocks into the directionName
or facing
direction.
IBlockPos getOffset(String directionName, int offset);
directionName
can take these values:
- "down"
- "up"
- "north"
- "south"
- "east"
- "west"
IBlockPos getOffset(Facing facing, int offset)
Parameters:
- Facing facing → The direction
- int offset → how many blocks in that direction?