Skip to main content

yog_event/
tag.rs

1//! Tags: the host's actions.
2
3use yog_ids as ids;
4
5actions! {
6    /// Whether `item` is in item tag `tag`.
7    HasItem { item: String, tag: String } -> bool = ids::service_tag::HAS_ITEM, "YogTagActions.hasItemTag";
8    /// Whether `block` is in block tag `tag`.
9    HasBlock { block: String, tag: String } -> bool = ids::service_tag::HAS_BLOCK, "YogTagActions.hasBlockTag";
10    /// Whether `entity_type` is in entity type tag `tag`.
11    HasEntity { entity_type: String, tag: String } -> bool = ids::service_tag::HAS_ENTITY, "YogTagActions.hasEntityTag";
12    /// The items of item tag `tag`.
13    Items { tag: String } -> Vec<String> = ids::service_tag::ITEMS, "YogClientApi.tagItems";
14}