Cuberite
A lightweight, fast and extensible game server for Minecraft
src
Blocks
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
14
using
cBlockHandler::cBlockHandler
;
15
16
private
:
17
18
virtual
bool
CanSustainPlant
(
BLOCKTYPE
a_Plant)
const override
19
{
20
return
a_Plant ==
E_BLOCK_NETHER_WART
;
21
}
22
};
BlockHandler.h
E_BLOCK_NETHER_WART
@ E_BLOCK_NETHER_WART
Definition:
BlockType.h:130
BLOCKTYPE
unsigned char BLOCKTYPE
The datatype used by blockdata.
Definition:
ChunkDef.h:41
cBlockHandler
Definition:
BlockHandler.h:26
cBlockHandler::cBlockHandler
constexpr cBlockHandler(BLOCKTYPE a_BlockType)
Definition:
BlockHandler.h:29
cBlockNetherrack
Definition:
BlockNetherrack.h:11
cBlockNetherrack::CanSustainPlant
virtual bool CanSustainPlant(BLOCKTYPE a_Plant) const override
Checks whether the block has an effect on growing the plant.
Definition:
BlockNetherrack.h:18
Generated on Fri Oct 25 2024 05:01:07 for Cuberite by
1.9.1