mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 09:49:50 +00:00
Merge remote-tracking branch 'origin/release/3.2'
This commit is contained in:
commit
ac8565fc2e
@ -191,6 +191,9 @@ abstract class Tile extends Position{
|
||||
* @return CompoundTag
|
||||
*/
|
||||
public static function createNBT(Vector3 $pos, ?int $face = null, ?Item $item = null, ?Player $player = null) : CompoundTag{
|
||||
if(static::class === self::class){
|
||||
throw new \BadMethodCallException(__METHOD__ . " must be called from the scope of a child class");
|
||||
}
|
||||
$nbt = new CompoundTag("", [
|
||||
new StringTag(self::TAG_ID, static::getSaveId()),
|
||||
new IntTag(self::TAG_X, (int) $pos->x),
|
||||
|
Loading…
x
Reference in New Issue
Block a user