summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Palettes/Upgrade.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-07-18 15:22:14 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-07-18 20:23:10 +0200
commit7425305154fb0005fde9f077cd30100c53d511a4 (patch)
tree0aeba36b1443daae94c38fe1a45075d1d31bd221 /src/Protocol/Palettes/Upgrade.h
parentMove IsValidSocket out of global namespace (diff)
downloadcuberite-7425305154fb0005fde9f077cd30100c53d511a4.tar
cuberite-7425305154fb0005fde9f077cd30100c53d511a4.tar.gz
cuberite-7425305154fb0005fde9f077cd30100c53d511a4.tar.bz2
cuberite-7425305154fb0005fde9f077cd30100c53d511a4.tar.lz
cuberite-7425305154fb0005fde9f077cd30100c53d511a4.tar.xz
cuberite-7425305154fb0005fde9f077cd30100c53d511a4.tar.zst
cuberite-7425305154fb0005fde9f077cd30100c53d511a4.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Palettes/Upgrade.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Protocol/Palettes/Upgrade.h b/src/Protocol/Palettes/Upgrade.h
new file mode 100644
index 000000000..4408fa755
--- /dev/null
+++ b/src/Protocol/Palettes/Upgrade.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "../../BlockType.h"
+#include "../../Registries/Items.h"
+
+namespace PaletteUpgrade
+{
+ short FromBlock(BLOCKTYPE Block, NIBBLETYPE Meta);
+ Item FromItem(short Item, short Meta);
+ std::pair<short, short> ToItem(Item ID);
+}