Interface IBlockAccessorPrefetch
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
Useful for when you have to scan multiple times over the same set of blocks
public interface IBlockAccessorPrefetch : IBlockAccessor
- Inherited Members
- Extension Methods
Methods
PrefetchBlocks(BlockPos, BlockPos)
Pre-loads all blocks inside given area which can then be accessed very quickly using .GetBlock(). This method must be called before using GetBlock()
void PrefetchBlocks(BlockPos minPos, BlockPos maxPos)