mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Added handling for tile picking, added API for setting item lore
worked almost out of the box (some W10 equipment bugs though)
This commit is contained in:
@ -148,6 +148,17 @@ abstract class Tile extends Position{
|
||||
$this->namedtag->z = new IntTag("z", $this->z);
|
||||
}
|
||||
|
||||
public function getCleanedNBT(){
|
||||
$this->saveNBT();
|
||||
$tag = clone $this->namedtag;
|
||||
unset($tag->x, $tag->y, $tag->z, $tag->id);
|
||||
if($tag->getCount() > 0){
|
||||
return $tag;
|
||||
}else{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \pocketmine\block\Block
|
||||
*/
|
||||
|
Reference in New Issue
Block a user