Table of Contents

Class CachedCuboidListFaster

Namespace
Vintagestory.API.Datastructures
Assembly
VintagestoryAPI.dll

Just like CachedCuboidList except we use structs internally, for RAM access performance. We leave CachedCuboidList just as it is for mod backwards compatibility

public class CachedCuboidListFaster : IEnumerable<Cuboidd>, IEnumerable
Inheritance
CachedCuboidListFaster
Implements
Inherited Members
Extension Methods

Constructors

CachedCuboidListFaster()

public CachedCuboidListFaster()

Fields

Count

public int Count

Field Value

int

blocks

public Block[] blocks

Field Value

Block[]

cuboids

public Cuboidd[] cuboids

Field Value

Cuboidd[]

positions

public FastVec3i[] positions

Field Value

FastVec3i[]

Methods

Add(Cuboidf, int, int, int, Block)

public void Add(Cuboidf cuboid, int x, int y, int z, Block block = null)

Parameters

cuboid Cuboidf
x int
y int
z int
block Block

Add(Cuboidf[], int, int, int, Block)

public void Add(Cuboidf[] cuboids, int x, int y, int z, Block block = null)

Parameters

cuboids Cuboidf[]
x int
y int
z int
block Block

Clear()

public void Clear()

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<Cuboidd> GetEnumerator()

Returns

IEnumerator<Cuboidd>

An enumerator that can be used to iterate through the collection.