Expand description
Prelude module โ import this in every plugin.
Contains only what 90%+ of plugins need: registration types, context traits, events, and stage. Specialized types live in their respective modules.
โ
use basalt_api::prelude::*;Re-exportsยง
pub use crate::context::Response;pub use crate::plugin::Plugin;pub use crate::plugin::PluginMetadata;pub use crate::plugin::PluginRegistrar;pub use crate::broadcast::BroadcastMessage;pub use crate::context::ChatContext;pub use crate::context::ContainerContext;pub use crate::context::Context;pub use crate::context::EntityContext;pub use crate::context::PlayerContext;pub use crate::context::RecipeContext;pub use crate::context::UnlockReason;pub use crate::context::WorldContext;pub use crate::gamemode::Gamemode;pub use crate::events::Event;pub use crate::events::Stage;pub use crate::container::Container;pub use crate::container::ContainerBacking;pub use crate::container::ContainerBuilder;pub use crate::container::InventoryType;pub use crate::events::BlockBrokenEvent;pub use crate::events::BlockEntityCreatedEvent;pub use crate::events::BlockEntityDestroyedEvent;pub use crate::events::BlockEntityKind;pub use crate::events::BlockEntityModifiedEvent;pub use crate::events::BlockPlacedEvent;pub use crate::events::ChatMessageEvent;pub use crate::events::CloseReason;pub use crate::events::CommandEvent;pub use crate::events::ContainerClickEvent;pub use crate::events::ContainerClickType;pub use crate::events::ContainerClosedEvent;pub use crate::events::ContainerDragEvent;pub use crate::events::ContainerOpenRequestEvent;pub use crate::events::ContainerOpenedEvent;pub use crate::events::ContainerSlotChangedEvent;pub use crate::events::CraftingCraftedEvent;pub use crate::events::CraftingGridChangedEvent;pub use crate::events::CraftingPreCraftEvent;pub use crate::events::CraftingRecipeClearedEvent;pub use crate::events::CraftingRecipeMatchedEvent;pub use crate::events::CraftingShiftClickBatchEvent;pub use crate::events::DragType;pub use crate::events::PlayerInteractEvent;pub use crate::events::PlayerJoinedEvent;pub use crate::events::PlayerLeftEvent;pub use crate::events::PlayerMovedEvent;pub use crate::events::RecipeBookFillRequestEvent;pub use crate::events::RecipeBookFilledEvent;pub use crate::events::RecipeLockedEvent;pub use crate::events::RecipeRegisterEvent;pub use crate::events::RecipeRegisteredEvent;pub use crate::events::RecipeUnlockedEvent;pub use crate::events::RecipeUnregisteredEvent;pub use crate::events::WindowSlotKind;pub use crate::recipes::OwnedShapedRecipe;pub use crate::recipes::OwnedShapelessRecipe;pub use crate::recipes::Recipe;pub use crate::recipes::RecipeId;