diff --git a/src/block/BlockFactory.php b/src/block/BlockFactory.php index 6c18ce151..ee5b2c820 100644 --- a/src/block/BlockFactory.php +++ b/src/block/BlockFactory.php @@ -880,7 +880,11 @@ class BlockFactory{ } /** - * Returns a new Block instance with the specified ID, meta and position. + * @deprecated This method should ONLY be used for deserializing data, e.g. from a config or database. For all other + * purposes, use VanillaBlocks. + * @see VanillaBlocks + * + * Deserializes a block from the provided legacy ID and legacy meta. */ public function get(int $id, int $meta) : Block{ if($meta < 0 or $meta > 0xf){ diff --git a/src/item/ItemFactory.php b/src/item/ItemFactory.php index 74364bc2e..28b6f1b93 100644 --- a/src/item/ItemFactory.php +++ b/src/item/ItemFactory.php @@ -424,7 +424,11 @@ class ItemFactory{ } /** - * Returns an instance of the Item with the specified id, meta, count and NBT. + * @deprecated This method should ONLY be used for deserializing data, e.g. from a config or database. For all other + * purposes, use VanillaItems. + * @see VanillaItems + * + * Deserializes an item from the provided legacy ID, legacy meta, count and NBT. * * @throws \InvalidArgumentException */