Cuberite
A lightweight, fast and extensible game server for Minecraft
BlockNetherrack.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "BlockHandler.h"
5 
6 
7 
8 
9 
10 class cBlockNetherrack final : public cBlockHandler
11 {
12 public:
13 
15 
16 private:
17 
18  virtual bool CanSustainPlant(BLOCKTYPE a_Plant) const override
19  {
20  return a_Plant == E_BLOCK_NETHER_WART;
21  }
22 };
@ E_BLOCK_NETHER_WART
Definition: BlockType.h:130
unsigned char BLOCKTYPE
The datatype used by blockdata.
Definition: ChunkDef.h:41
constexpr cBlockHandler(BLOCKTYPE a_BlockType)
Definition: BlockHandler.h:29
virtual bool CanSustainPlant(BLOCKTYPE a_Plant) const override
Checks whether the block has an effect on growing the plant.