Cuberite
A lightweight, fast and extensible game server for Minecraft
BlockNetherrack.h
Go to the documentation of this file.
1 #pragma once
2 
3 
4 #include "BlockHandler.h"
5 
7 {
8 public:
10 
11  virtual bool CanSustainPlant(BLOCKTYPE a_Plant) override { return (a_Plant == E_BLOCK_NETHER_WART); }
12 };
unsigned char BLOCKTYPE
The datatype used by blockdata.
Definition: ChunkDef.h:42
cBlockNetherrack(BLOCKTYPE a_Type)
virtual bool CanSustainPlant(BLOCKTYPE a_Plant) override
Checks whether the block has an effect on growing the plant.