Class PosUtil
- Namespace
- Vintagestory.API.Util
- Assembly
- VintagestoryAPI.dll
public static class PosUtil
- Inheritance
-
PosUtil
- Inherited Members
-
Methods
GetBlockAbove(IBlockAccessor, BlockPos, int, int)
public static Block GetBlockAbove(this IBlockAccessor accessor, BlockPos pos, int dy = 1, int layer = 0)
Parameters
accessor
IBlockAccessor
pos
BlockPos
dy
int
layer
int
Returns
- Block
GetBlockBelow(IBlockAccessor, BlockPos, int, int)
public static Block GetBlockBelow(this IBlockAccessor accessor, BlockPos pos, int dy = 1, int layer = 0)
Parameters
accessor
IBlockAccessor
pos
BlockPos
dy
int
layer
int
Returns
- Block
GetBlockOnSide(IBlockAccessor, BlockPos, BlockFacing, int)
public static Block GetBlockOnSide(this IBlockAccessor accessor, BlockPos pos, BlockFacing face, int layer = 0)
Parameters
accessor
IBlockAccessor
pos
BlockPos
face
BlockFacing
layer
int
Returns
- Block
SetOrCreate(BlockPos, BlockPos)
public static BlockPos SetOrCreate(this BlockPos pos, BlockPos sourcePos)
Parameters
pos
BlockPos
sourcePos
BlockPos
Returns
- BlockPos
SetOrCreate(Vec3f, Vec3f)
public static Vec3f SetOrCreate(this Vec3f pos, Vec3f sourcePos)
Parameters
pos
Vec3f
sourcePos
Vec3f
Returns
- Vec3f