NBT is no longer needed to create an entity

it's still able to be provided, but shouldn't be needed in the majority of cases (constructor args and/or API methods should be sufficient).
This commit is contained in:
Dylan K. Taylor
2020-06-19 09:49:06 +01:00
parent 0a1bb0041b
commit 4b528aa637
14 changed files with 19 additions and 24 deletions

View File

@@ -55,7 +55,7 @@ class FallingBlock extends Entity{
public $canCollide = false;
public function __construct(Location $location, Block $block, CompoundTag $nbt){
public function __construct(Location $location, Block $block, ?CompoundTag $nbt = null){
$this->block = $block;
parent::__construct($location, $nbt);
}