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 crafttweaker.world.IBlockPos;
ZenMethods without parameters
Link to zenmethods-without-parameters
ZenMethod | ZenGetter/Caster | 반환 타입 | Description |
---|---|---|---|
ZenMethod getX() | ZenGetter/Caster x | 반환 타입 int | Description Returns the position's X value |
ZenMethod getY() | ZenGetter/Caster y | 반환 타입 int | Description Returns the position's Y value |
ZenMethod getZ() | ZenGetter/Caster z | 반환 타입 int | Description Returns the position's Z value |
ZenMethod asPosition3f | ZenGetter/Caster as IPosition3f | 반환 타입 IPosition3f | Description Returns the position as Position3f Object. |
ZenMethods with parameters
Link to zenmethods-with-parameters
Get Offset
Link to get-offset
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?