Phpcraft
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Phpcraft\World\Structure Class Reference

Public Member Functions

 __construct (int $width, int $height, int $depth, array $blocks)
 

Static Public Member Functions

static fromStructure (Connection $con)
 

Public Attributes

 $width
 
 $height
 
 $depth
 
 $blocks
 

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\World\Structure::__construct ( int  $width,
int  $height,
int  $depth,
array  $blocks 
)

Member Function Documentation

◆ fromStructure()

static Phpcraft\World\Structure::fromStructure ( Connection  $con)
static

Initiates a Structure object from a Connection, the read_buffer of which may be a file's zlib_decode'd contents.

Connection $con Structure IOException

Member Data Documentation

◆ $blocks

array Phpcraft\World\Structure::$blocks

◆ $depth

int Phpcraft\World\Structure::$depth

◆ $height

int Phpcraft\World\Structure::$height

◆ $width

int Phpcraft\World\Structure::$width