Add inventory support
This commit is contained in:
1 parent
76106ded18
commit
50dcbfeb6d
12 files changed
+106
-5
No files matched your search
@@ -0,0 +1,8 @@
|
||||
[package]
|
||||
name = "pumpkin-inventory"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
|
||||
[dependencies]
|
||||
num-traits = "0.2"
|
||||
num-derive = "0.4"
|
||||
@@ -0,0 +1,41 @@
|
||||
use num_derive::ToPrimitive;
|
||||
|
||||
/// https://wiki.vg/Inventory
|
||||
#[derive(Debug, ToPrimitive)]
|
||||
pub enum WindowType {
|
||||
// not used
|
||||
Generic9x1,
|
||||
// not used
|
||||
Generic9x2,
|
||||
// General-purpose 3-row inventory. Used by Chest, minecart with chest, ender chest, and barrel
|
||||
Generic9x3,
|
||||
// not used
|
||||
Generic9x4,
|
||||
// not used
|
||||
Generic9x5,
|
||||
// Used by large chests
|
||||
Generic9x6,
|
||||
// General-purpose 3-by-3 square inventory, used by Dispenser and Dropper
|
||||
Generic3x3,
|
||||
// General-purpose 3-by-3 square inventory, used by the Crafter
|
||||
Craft3x3,
|
||||
Anvil,
|
||||
Beacon,
|
||||
BlastFurance,
|
||||
BrewingStand,
|
||||
CraftingTable,
|
||||
EnchantmentTable,
|
||||
Furnace,
|
||||
Grindstone,
|
||||
// Hopper or minecart with hopper
|
||||
Hopper,
|
||||
Lectern,
|
||||
Loom,
|
||||
// Villager, Wandering Trader
|
||||
Merchant,
|
||||
ShulkerBox,
|
||||
SmithingTable,
|
||||
Smoker,
|
||||
CartographyTable,
|
||||
Stonecutter,
|
||||
}
|
||||
Reference in new issue
Block a user