feat: more plugin api features
This commit is contained in:
1 parent
bc7e59df39
commit
413f7ccb16
21 files changed
+1162
-31
No files matched your search
@@ -0,0 +1,38 @@
|
||||
interface gui {
|
||||
use text.{text-component};
|
||||
use common.{item-stack};
|
||||
|
||||
enum gui-type {
|
||||
generic-9x1,
|
||||
generic-9x2,
|
||||
generic-9x3,
|
||||
generic-9x4,
|
||||
generic-9x5,
|
||||
generic-9x6,
|
||||
generic-3x3,
|
||||
crafter-3x3,
|
||||
anvil,
|
||||
beacon,
|
||||
blast-furnace,
|
||||
brewing-stand,
|
||||
crafting,
|
||||
enchantment,
|
||||
furnace,
|
||||
grindstone,
|
||||
hopper,
|
||||
lectern,
|
||||
loom,
|
||||
merchant,
|
||||
shulker-box,
|
||||
smithing,
|
||||
smoker,
|
||||
cartography-table,
|
||||
stonecutter,
|
||||
}
|
||||
|
||||
resource gui {
|
||||
constructor(%type: gui-type, title: text-component);
|
||||
set-item: func(slot: u32, item: item-stack);
|
||||
get-item: func(slot: u32) -> option<item-stack>;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user