Botcraft 1.21.4
Loading...
Searching...
No Matches
ItemUtilities.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <string_view>
6
7namespace ProtocolCraft
8{
9 class Slot;
10}
11
12namespace Botcraft::Utilities
13{
14 std::string_view EnchantmentToString(const Botcraft::Enchantment enchantment);
15 short GetEnchantmentLvl(const ProtocolCraft::Slot& item, const Botcraft::Enchantment enchantment);
16 int GetDamageCount(const ProtocolCraft::Slot& item);
17}
int GetDamageCount(const ProtocolCraft::Slot &item)
short GetEnchantmentLvl(const ProtocolCraft::Slot &item, const Botcraft::Enchantment enchantment)
std::string_view EnchantmentToString(const Botcraft::Enchantment enchantment)
Enchantment
Definition Enums.hpp:94