mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Humans can now do emotes (#4610)
added the following API methods: - Human::emote()
This commit is contained in:
@ -161,6 +161,12 @@ class Human extends Living implements ProjectileSource, InventoryHolder{
|
||||
}
|
||||
}
|
||||
|
||||
public function emote(string $emoteId) : void{
|
||||
foreach($this->getViewers() as $player){
|
||||
$player->getNetworkSession()->onEmote($this, $emoteId);
|
||||
}
|
||||
}
|
||||
|
||||
public function getHungerManager() : HungerManager{
|
||||
return $this->hungerManager;
|
||||
}
|
||||
|
Reference in New Issue
Block a user