GenisysPro  for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
EmptySubChunk Class Reference

Public Member Functions

 __construct ()
 
 isEmpty ()
 
 getBlockId (int $x, int $y, int $z)
 
 setBlockId (int $x, int $y, int $z, int $id)
 
 getBlockData (int $x, int $y, int $z)
 
 setBlockData (int $x, int $y, int $z, int $data)
 
 getFullBlock (int $x, int $y, int $z)
 
 setBlock (int $x, int $y, int $z, $id=null, $data=null)
 
 getBlockLight (int $x, int $y, int $z)
 
 setBlockLight (int $x, int $y, int $z, int $level)
 
 getBlockSkyLight (int $x, int $y, int $z)
 
 setBlockSkyLight (int $x, int $y, int $z, int $level)
 
 getBlockIdColumn (int $x, int $z)
 
 getBlockDataColumn (int $x, int $z)
 
 getBlockLightColumn (int $x, int $z)
 
 getSkyLightColumn (int $x, int $z)
 
 getBlockIdArray ()
 
 getBlockDataArray ()
 
 getBlockLightArray ()
 
 getSkyLightArray ()
 
 networkSerialize ()
 
 fastSerialize ()
 
- Public Member Functions inherited from SubChunk
 __construct (string $ids="", string $data="", string $skyLight="", string $blockLight="")
 
 isEmpty ()
 
 getBlockId (int $x, int $y, int $z)
 
 setBlockId (int $x, int $y, int $z, int $id)
 
 getBlockData (int $x, int $y, int $z)
 
 setBlockData (int $x, int $y, int $z, int $data)
 
 getFullBlock (int $x, int $y, int $z)
 
 setBlock (int $x, int $y, int $z, $id=null, $data=null)
 
 getBlockLight (int $x, int $y, int $z)
 
 setBlockLight (int $x, int $y, int $z, int $level)
 
 getBlockSkyLight (int $x, int $y, int $z)
 
 setBlockSkyLight (int $x, int $y, int $z, int $level)
 
 getHighestBlockAt (int $x, int $z)
 
 getBlockIdColumn (int $x, int $z)
 
 getBlockDataColumn (int $x, int $z)
 
 getBlockLightColumn (int $x, int $z)
 
 getSkyLightColumn (int $x, int $z)
 
 getBlockIdArray ()
 
 getBlockDataArray ()
 
 getSkyLightArray ()
 
 getBlockLightArray ()
 
 networkSerialize ()
 
 fastSerialize ()
 

Additional Inherited Members

- Static Public Member Functions inherited from SubChunk
static fastDeserialize (string $data)
 
- Protected Attributes inherited from SubChunk
 $ids
 
 $data
 
 $blockLight
 
 $skyLight
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

EmptySubChunk constructor.

32  {
33 
34  }

Member Function Documentation

◆ fastSerialize()

fastSerialize ( )
Returns
string
237  : string{
238  throw new \BadMethodCallException("Should not try to serialize empty subchunks");
239  }

◆ getBlockData()

getBlockData ( int  $x,
int  $y,
int  $z 
)
Parameters
int$x
int$y
int$z
Returns
int
73  : int{
74  return 0;
75  }

◆ getBlockDataArray()

getBlockDataArray ( )
Returns
string
209  : string{
210  return str_repeat("\x00", 2048);
211  }

◆ getBlockDataColumn()

getBlockDataColumn ( int  $x,
int  $z 
)
Parameters
int$x
int$z
Returns
string
175  : string{
176  return "\x00\x00\x00\x00\x00\x00\x00\x00";
177  }

◆ getBlockId()

getBlockId ( int  $x,
int  $y,
int  $z 
)
Parameters
int$x
int$y
int$z
Returns
int
50  : int{
51  return 0;
52  }

◆ getBlockIdArray()

getBlockIdArray ( )
Returns
string
202  : string{
203  return str_repeat("\x00", 4096);
204  }

◆ getBlockIdColumn()

getBlockIdColumn ( int  $x,
int  $z 
)
Parameters
int$x
int$z
Returns
string
165  : string{
166  return "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00";
167  }

◆ getBlockLight()

getBlockLight ( int  $x,
int  $y,
int  $z 
)
Parameters
int$x
int$y
int$z
Returns
int
120  : int{
121  return 0;
122  }

◆ getBlockLightArray()

getBlockLightArray ( )
Returns
string
216  : string{
217  return str_repeat("\x00", 2048);
218  }

◆ getBlockLightColumn()

getBlockLightColumn ( int  $x,
int  $z 
)
Parameters
int$x
int$z
Returns
string
185  : string{
186  return "\x00\x00\x00\x00\x00\x00\x00\x00";
187  }

◆ getBlockSkyLight()

getBlockSkyLight ( int  $x,
int  $y,
int  $z 
)
Parameters
int$x
int$y
int$z
Returns
int
143  : int{
144  return 15;
145  }

◆ getFullBlock()

getFullBlock ( int  $x,
int  $y,
int  $z 
)
Parameters
int$x
int$y
int$z
Returns
int
96  : int{
97  return 0;
98  }

◆ getSkyLightArray()

getSkyLightArray ( )
Returns
string
223  : string{
224  return str_repeat("\xff", 2048);
225  }

◆ getSkyLightColumn()

getSkyLightColumn ( int  $x,
int  $z 
)
Parameters
int$x
int$z
Returns
string
195  : string{
196  return "\xff\xff\xff\xff\xff\xff\xff\xff";
197  }

◆ isEmpty()

isEmpty ( )
Returns
bool
39  : bool{
40  return true;
41  }

◆ networkSerialize()

networkSerialize ( )
Returns
string
230  : string{
231  return "\x00" . str_repeat("\x00", 10240);
232  }

◆ setBlock()

setBlock ( int  $x,
int  $y,
int  $z,
  $id = null,
  $data = null 
)
Parameters
int$x
int$y
int$z
null$id
null$data
Returns
bool
109  : bool{
110  return false;
111  }

◆ setBlockData()

setBlockData ( int  $x,
int  $y,
int  $z,
int  $data 
)
Parameters
int$x
int$y
int$z
int$data
Returns
bool
85  : bool{
86  return false;
87  }

◆ setBlockId()

setBlockId ( int  $x,
int  $y,
int  $z,
int  $id 
)
Parameters
int$x
int$y
int$z
int$id
Returns
bool
62  : bool{
63  return false;
64  }

◆ setBlockLight()

setBlockLight ( int  $x,
int  $y,
int  $z,
int  $level 
)
Parameters
int$x
int$y
int$z
int$level
Returns
bool
132  : bool{
133  return false;
134  }

◆ setBlockSkyLight()

setBlockSkyLight ( int  $x,
int  $y,
int  $z,
int  $level 
)
Parameters
int$x
int$y
int$z
int$level
Returns
bool
155  : bool{
156  return false;
157  }

The documentation for this class was generated from the following file: