Skip to content

CraftingDataCache ​

final class · pocketmine\network\mcpe\cache\CraftingDataCache · source

Constants ​

RECIPE_ID_OFFSET ​

php
public const RECIPE_ID_OFFSET = 1

The client doesn't like recipes with ID 0 (as of 1.21.100) and complains about them in the content log This doesn't actually affect the function of the recipe, but it is annoying, so this offset fixes it

Methods ​

getCache() ​

php
public function getCache(\pocketmine\crafting\CraftingManager $manager) : \pocketmine\network\mcpe\protocol\CraftingDataPacket

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.