C# Class OpenMinecraft.Tree

Set up the interface for tree objects. Designed for subclassing.
Mostrar archivo Open project: N3X15/MineEdit Class Usage Examples

Public Properties

Property Type Description
Height int
Pos Vector3i

Public Methods

Method Description
Copy ( Tree other ) : void

Copy the essential values of the other tree object into self.

MakeFoliage ( IMapHandler &map ) : void

Generate the foliage and enter it in blocklist. Note, foliage will disintegrate if there is no foliage below, or if there is no "log" block within range 2 (square) at the same level or one level below

MakeTrunk ( IMapHandler &map ) : void
Tree ( long x, long y, long z, int h ) : System

Method Details

Copy() public method

Copy the essential values of the other tree object into self.
public Copy ( Tree other ) : void
other Tree
return void

MakeFoliage() public method

Generate the foliage and enter it in blocklist. Note, foliage will disintegrate if there is no foliage below, or if there is no "log" block within range 2 (square) at the same level or one level below
public MakeFoliage ( IMapHandler &map ) : void
map IMapHandler
return void

MakeTrunk() public method

public MakeTrunk ( IMapHandler &map ) : void
map IMapHandler
return void

Tree() public method

public Tree ( long x, long y, long z, int h ) : System
x long
y long
z long
h int
return System

Property Details

Height public_oe property

public int Height
return int

Pos public_oe property

public Vector3i,OpenMinecraft Pos
return Vector3i