Table of Contents

Interface IWorldIntersectionSupplier

Namespace
Vintagestory.API.MathTools
Assembly
VintagestoryAPI.dll
public interface IWorldIntersectionSupplier

Properties

MapSize

Vec3i MapSize { get; }

Property Value

Vec3i

blockAccessor

IBlockAccessor blockAccessor { get; }

Property Value

IBlockAccessor

Methods

GetBlock(BlockPos)

Block GetBlock(BlockPos pos)

Parameters

pos BlockPos

Returns

Block

GetBlockIntersectionBoxes(BlockPos)

Cuboidf[] GetBlockIntersectionBoxes(BlockPos pos)

Parameters

pos BlockPos

Returns

Cuboidf[]

GetEntitiesAround(Vec3d, float, float, ActionConsumable<Entity>)

Entity[] GetEntitiesAround(Vec3d position, float horRange, float vertRange, ActionConsumable<Entity> matches = null)

Parameters

position Vec3d
horRange float
vertRange float
matches ActionConsumable<Entity>

Returns

Entity[]

IsValidPos(BlockPos)

bool IsValidPos(BlockPos pos)

Parameters

pos BlockPos

Returns

bool