mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 11:26:37 +00:00
ItemStackRequest: expose filterStrings
This commit is contained in:
parent
bc14660e55
commit
317a48d9b0
@ -54,6 +54,12 @@ final class ItemStackRequest{
|
|||||||
/** @return ItemStackRequestAction[] */
|
/** @return ItemStackRequestAction[] */
|
||||||
public function getActions() : array{ return $this->actions; }
|
public function getActions() : array{ return $this->actions; }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string[]
|
||||||
|
* @phpstan-return list<string>
|
||||||
|
*/
|
||||||
|
public function getFilterStrings() : array{ return $this->filterStrings; }
|
||||||
|
|
||||||
private static function readAction(NetworkBinaryStream $in, int $typeId) : ItemStackRequestAction{
|
private static function readAction(NetworkBinaryStream $in, int $typeId) : ItemStackRequestAction{
|
||||||
switch($typeId){
|
switch($typeId){
|
||||||
case TakeStackRequestAction::getTypeId(): return TakeStackRequestAction::read($in);
|
case TakeStackRequestAction::getTypeId(): return TakeStackRequestAction::read($in);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user