mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
ItemBlock: make final, and document its purpose more clearly
This commit is contained in:
parent
4c433fd75b
commit
ede9e78fbd
@ -27,9 +27,12 @@ use pocketmine\block\Block;
|
|||||||
use pocketmine\block\BlockFactory;
|
use pocketmine\block\BlockFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class used for Items that can be Blocks
|
* Class used for Items that directly represent blocks, such as stone, dirt, wood etc.
|
||||||
|
*
|
||||||
|
* This should NOT be used for items which are merely *associated* with blocks (e.g. seeds are not wheat crops; they
|
||||||
|
* just place wheat crops when used on the ground).
|
||||||
*/
|
*/
|
||||||
class ItemBlock extends Item{
|
final class ItemBlock extends Item{
|
||||||
/** @var int */
|
/** @var int */
|
||||||
private $blockFullId;
|
private $blockFullId;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user