From ede9e78fbd80904b52d15eec1f98cc76a604e906 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 29 Mar 2022 12:49:49 +0100 Subject: [PATCH] ItemBlock: make final, and document its purpose more clearly --- src/item/ItemBlock.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/item/ItemBlock.php b/src/item/ItemBlock.php index 0836d86e1..f5bf7920e 100644 --- a/src/item/ItemBlock.php +++ b/src/item/ItemBlock.php @@ -27,9 +27,12 @@ use pocketmine\block\Block; 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 */ private $blockFullId;