Cuberite
A lightweight, fast and extensible game server for Minecraft
src
Protocol
Palettes
Upgrade.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
ChunkDef.h
"
4
#include "BlockState.h"
5
#include "
Registries/Items.h
"
6
7
namespace
PaletteUpgrade
8
{
9
BlockState
FromBlock
(
BLOCKTYPE
Block
,
NIBBLETYPE
Meta);
10
Item
FromItem
(
short
Item
,
short
Damage);
11
std::pair<short, short>
ToItem
(
Item
ID);
12
}
PaletteUpgrade::FromItem
Item FromItem(const short Item, const short Damage)
Definition:
Upgrade.cpp:1708
PaletteUpgrade
Definition:
Upgrade.cpp:6
Item
Item
Definition:
Items.h:3
NIBBLETYPE
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
Definition:
ChunkDef.h:44
BLOCKTYPE
unsigned char BLOCKTYPE
The datatype used by blockdata.
Definition:
ChunkDef.h:41
ChunkDef.h
BlockState
Represents the state of a single block (previously known as "block meta").
Definition:
BlockState.h:19
Block
Definition:
BlockStates.cpp:3
PaletteUpgrade::ToItem
std::pair< short, short > ToItem(const Item ID)
Definition:
Upgrade.cpp:2519
PaletteUpgrade::FromBlock
BlockState FromBlock(const BLOCKTYPE Block, const NIBBLETYPE Meta)
Definition:
Upgrade.cpp:8
Items.h
Generated on Fri Oct 28 2022 17:01:07 for Cuberite by
1.8.17