Cuberite
A lightweight, fast and extensible game server for Minecraft
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
Blocks
BlockNetherrack.h
Go to the documentation of this file.
1
#pragma once
2
3
4
#include "
BlockHandler.h
"
5
6
class
cBlockNetherrack
:
public
cBlockHandler
7
{
8
public
:
9
cBlockNetherrack
(
BLOCKTYPE
a_Type) :
cBlockHandler
(a_Type){}
10
11
virtual
bool
CanSustainPlant
(
BLOCKTYPE
a_Plant)
override
{
return
(a_Plant ==
E_BLOCK_NETHER_WART
); }
12
};
BlockHandler.h
BLOCKTYPE
unsigned char BLOCKTYPE
The datatype used by blockdata.
Definition:
ChunkDef.h:42
cBlockHandler
Definition:
BlockHandler.h:25
cBlockNetherrack::cBlockNetherrack
cBlockNetherrack(BLOCKTYPE a_Type)
Definition:
BlockNetherrack.h:9
cBlockNetherrack::CanSustainPlant
virtual bool CanSustainPlant(BLOCKTYPE a_Plant) override
Checks whether the block has an effect on growing the plant.
Definition:
BlockNetherrack.h:11
cBlockNetherrack
Definition:
BlockNetherrack.h:6
E_BLOCK_NETHER_WART
Definition:
BlockID.h:129
Generated on Mon Feb 24 2020 09:04:13 for Cuberite by
1.8.11