AnimatedBlockInventoryTrait
Table of Contents
-
getViewerCount()
: int
-
getViewers()
: array<string|int, Player>
-
onClose()
: void
-
onOpen()
: void
-
animateBlock()
: void
-
getCloseSound()
: Sound
-
getOpenSound()
: Sound
getViewerCount()
public
getViewerCount() : int
Return values
int
—
getViewers()
public
abstract getViewers() : array<string|int, Player>
-
phpstan-return
-
Return values
array<string|int, Player>
—
onClose()
public
onClose(Player $who) : void
Parameters
-
$who
: Player
-
Return values
void
—
onOpen()
public
onOpen(Player $who) : void
Parameters
-
$who
: Player
-
Return values
void
—
animateBlock()
protected
abstract animateBlock(bool $isOpen) : void
Parameters
-
$isOpen
: bool
-
Return values
void
—
getCloseSound()
protected
abstract getCloseSound() : Sound
Return values
Sound
—
getOpenSound()
protected
abstract getOpenSound() : Sound
Return values
Sound
—