pub struct Dialog {
pub key: Identifier,
pub button_width: i32,
pub columns: i32,
pub exit_action: ExitAction,
pub external_title: TextComponent,
pub title: TextComponent,
pub variant: DialogVariant,
}Expand description
Represents a dialog defined in data packs.
Fields§
§key: Identifier§columns: i32§exit_action: ExitAction§external_title: TextComponent§title: TextComponent§variant: DialogVariantTrait Implementations§
Source§impl RegistryEntry for Dialog
impl RegistryEntry for Dialog
Source§impl ToNbtTag for &Dialog
impl ToNbtTag for &Dialog
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Auto Trait Implementations§
impl Freeze for Dialog
impl RefUnwindSafe for Dialog
impl Send for Dialog
impl Sync for Dialog
impl Unpin for Dialog
impl UnsafeUnpin for Dialog
impl UnwindSafe for Dialog
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more