Class NaturalShape
- Namespace
- Vintagestory.Datastructures
- Assembly
- VintagestoryAPI.dll
public class NaturalShape
- Inheritance
-
NaturalShape
- Inherited Members
-
- Extension Methods
-
Constructors
NaturalShape(IRandom)
public NaturalShape(IRandom rand)
Parameters
rand IRandom
Methods
GetBySide(ShapeCell, int)
public ShapeCell GetBySide(ShapeCell cell, int index)
Parameters
cell ShapeCell
index int
Returns
- ShapeCell
GetOpenSides(Vec2i)
public bool[] GetOpenSides(Vec2i c)
Parameters
c Vec2i
Returns
- bool[]
GetPositions()
public List<Vec2i> GetPositions()
Returns
- List<Vec2i>
GetPositions(BlockPos)
public List<BlockPos> GetPositions(BlockPos start)
Parameters
start BlockPos
Returns
- List<BlockPos>
Grow(int)
public void Grow(int steps)
Parameters
steps int
InitSquare(int, int)
public void InitSquare(int sizeX, int sizeZ)
Parameters
sizeX int
sizeZ int