C# Класс OpenMinecraft.Tree

Set up the interface for tree objects. Designed for subclassing.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Height int
Pos Vector3i

Открытые методы

Метод Описание
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

Описание методов

Copy() публичный Метод

Copy the essential values of the other tree object into self.
public Copy ( Tree other ) : void
other Tree
Результат void

MakeFoliage() публичный Метод

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
Результат void

MakeTrunk() публичный Метод

public MakeTrunk ( IMapHandler &map ) : void
map IMapHandler
Результат void

Tree() публичный Метод

public Tree ( long x, long y, long z, int h ) : System
x long
y long
z long
h int
Результат System

Описание свойств

Height публичное свойство

public int Height
Результат int

Pos публичное свойство

public Vector3i,OpenMinecraft Pos
Результат Vector3i