Download the PHP package valiant-bedrock/libscoreboard without Composer
On this page you can find all versions of the php package valiant-bedrock/libscoreboard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download valiant-bedrock/libscoreboard
More information about valiant-bedrock/libscoreboard
Files in valiant-bedrock/libscoreboard
Download valiant-bedrock/libscoreboard
More information about valiant-bedrock/libscoreboard
Files in valiant-bedrock/libscoreboard
Vendor valiant-bedrock
Package libscoreboard
Short Description A small scoreboard library built for PocketMine-MP
License AGPL-3.0
Package libscoreboard
Short Description A small scoreboard library built for PocketMine-MP
License AGPL-3.0
Please rate this library. Is it a good library?
Informations about the package libscoreboard
libscoreboard
A small scoreboard library built for Minecraft: Bedrock Edition
Installation
Composer
Run the command composer require valiant-bedrock/libscoreboard
to install this package.
Virion
The virion for this project is located & can be installed from here
Enums
This library provides two types of enums used when sending the scoreboard:
DisplaySlot
- Used to specify where the scoreboard should be displayedSortOrder
- Used as a way to sort the scoreboard (ascending or descending)
Methods
Managing View
send(?SortOrder $sortOrder = null, ?DisplaySlot $displaySlot = null): void
- Sends the scoreboard to the playerremove(): void
- Removes the scoreboard from the client's viewupdate(): void
- Forcefully updates the client's scoreboard (Throws an exception if the scoreboard is not already visible)
Setting Data
This library provides multiple methods for updating the scoreboard:
setLines(array $lines, bool $clear = true, bool $update = true): void
- Sets the values of all linessetLine(int $index, string $value, bool $update = true): void
- Sets the value of a specific lineremoveLine(int $index, bool $update = true): void
- Removes a specific lineclear(bool $update = true): void
- Clears the scoreboardsetDisplaySlot(DisplaySlot $slot, bool $update = true): void
- Sets the display slot of the scoreboardsetSortOrder(SortOrder $order, bool $update = true): void
- Sets the sort order of the scoreboard
Example
Issues
Any issues / suggestions with this library can be reported here.
All versions of libscoreboard with dependencies
PHP Build Version
Package Version
No informations.
The package valiant-bedrock/libscoreboard contains the following files
Loading the files please wait ....