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
blocks
public Block[] blocks
Field Value
- Block[]
cuboids
public Cuboidd[] cuboids
Field Value
- Cuboidd[]
positions
public FastVec3i[] positions
Field Value
Methods
Add(Cuboidf, int, int, int, Block)
public void Add(Cuboidf cuboid, int x, int y, int z, Block block = null)
Parameters
Add(Cuboidf[], int, int, int, Block)
public void Add(Cuboidf[] cuboids, int x, int y, int z, Block block = null)
Parameters
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.