Merge branch 'stable'

This commit is contained in:
Dylan K. Taylor
2020-01-11 22:36:57 +00:00
12 changed files with 137 additions and 4 deletions

View File

@@ -161,6 +161,13 @@ class CraftingDataPacket extends DataPacket implements ClientboundPacket{
$this->cleanRecipes = $this->getBool();
}
/**
* @param object $entry
* @param NetworkBinaryStream $stream
* @param int $pos
*
* @return int
*/
private static function writeEntry($entry, NetworkBinaryStream $stream, int $pos) : int{
if($entry instanceof ShapelessRecipe){
return self::writeShapelessRecipe($entry, $stream, $pos);

View File

@@ -119,10 +119,17 @@ abstract class DataPacket extends NetworkBinaryStream implements Packet{
return $data;
}
/**
* @param string $name
*/
public function __get($name){
throw new \Error("Undefined property: " . get_class($this) . "::\$" . $name);
}
/**
* @param string $name
* @param mixed $value
*/
public function __set($name, $value){
throw new \Error("Undefined property: " . get_class($this) . "::\$" . $name);
}