Skip to content

FlattenedCaveVinesVariant ​

enum · pocketmine\data\bedrock\block\convert\property\FlattenedCaveVinesVariant · source

In PM we treat head/body as a bool and berries/no berries as a second bool. However, Bedrock doesn't have IDs to represent a separate head/body without berries, so this enum lets us use an EnumFromStringProperty to deal with this using special getter/setter logic.

Cases ​

BODY_WITH_BERRIES ​

php
case BODY_WITH_BERRIES = "_body_with_berries"

HEAD_WITH_BERRIES ​

php
case HEAD_WITH_BERRIES = "_head_with_berries"

NO_BERRIES ​

php
case NO_BERRIES = ""

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