mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
Added TileEntity::setText(1,2,3,4)
This commit is contained in:
parent
58fd67d2ed
commit
0d12039623
3 changed files with 33 additions and 22 deletions
|
|
@ -218,6 +218,18 @@ class TileEntity extends Position{
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public function setText($line1 = "", $line2 = "", $line3 = "", $line4 = ""){
|
||||
if($this->class !== TILE_SIGN){
|
||||
return false;
|
||||
}
|
||||
$this->data["Text1"] = $line1;
|
||||
$this->data["Text2"] = $line2;
|
||||
$this->data["Text3"] = $line3;
|
||||
$this->data["Text4"] = $line4;
|
||||
$this->server->handle("tile.update", $this);
|
||||
return true;
|
||||
}
|
||||
|
||||
public function close(){
|
||||
if($this->closed === false){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue