Cuberite
A lightweight, fast and extensible game server for Minecraft
src
Blocks
BlockAir.h
Go to the documentation of this file.
1
2
#pragma once
3
4
5
6
7
8
class
cBlockAirHandler
final :
9
public
cBlockHandler
10
{
11
public
:
12
13
using
cBlockHandler::cBlockHandler
;
14
15
private
:
16
17
virtual
cItems
ConvertToPickups
(
const
NIBBLETYPE
a_BlockMeta,
const
cItem
*
const
a_Tool)
const override
18
{
19
// Don't drop anything:
20
return
{};
21
}
22
};
NIBBLETYPE
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
Definition:
ChunkDef.h:44
cBlockAirHandler
Definition:
BlockAir.h:10
cBlockAirHandler::ConvertToPickups
virtual cItems ConvertToPickups(const NIBBLETYPE a_BlockMeta, const cItem *const a_Tool) const override
Returns the pickups that would result if the block was mined by a_Digger using a_Tool.
Definition:
BlockAir.h:17
cBlockHandler
Definition:
BlockHandler.h:26
cBlockHandler::cBlockHandler
constexpr cBlockHandler(BLOCKTYPE a_BlockType)
Definition:
BlockHandler.h:29
cItem
Definition:
Item.h:37
cItems
This class bridges a vector of cItem for safe access via Lua.
Definition:
Item.h:215
Generated on Fri Oct 25 2024 05:01:05 for Cuberite by
1.9.1