diff --git a/pumpkin-plugin-api/src/lib.rs b/pumpkin-plugin-api/src/lib.rs index 995968beb..a0366fee0 100644 --- a/pumpkin-plugin-api/src/lib.rs +++ b/pumpkin-plugin-api/src/lib.rs @@ -44,7 +44,8 @@ pub mod scheduler; pub mod command { pub use crate::wit::pumpkin::plugin::command::{ - Command, CommandError, CommandNode, CommandSender, ConsumedArgs, + Arg, ArgumentType, Command, CommandError, CommandNode, CommandSender, ConsumedArgs, + StringType, }; } @@ -53,10 +54,16 @@ pub use wit::pumpkin::plugin::{ context::{Context, Server}, data_components, entity, entity_types::EntityType, - gui, i18n, java_dialogs, java_packets, particles, permission, player, scoreboard, server, text, - world, + event::{self as events_wit, EventType}, + gui, i18n, item_stack, java_dialogs, java_packets, particles, permission, player, scoreboard, + server, text, uuid, world, }; +// Convenience re-exports of commonly-used plugin types so plugin authors can +// name them directly (e.g. build an `ItemStack` for a GUI or `/give`). +pub use events::{EventHandler, FromIntoEvent}; +pub use wit::pumpkin::plugin::item_stack::ItemStack; + pub mod java_dialog { pub use crate::wit::pumpkin::plugin::java_dialogs::{ActionButton, DialogBody, DialogType}; }