Skip to content

API reference Obsidian.API.Registry.Codecs.Dialogs

DialogBody class

public sealed class DialogBody : INbtSerializable

In Obsidian.API.

Methods

Item(string, int, ChatMessage, int, int, bool, bool, NbtCompound, int)

public static DialogBody Item(string id, int count = 1, ChatMessage description = null, int width = 16, int height = 16, bool showDecorations = true, bool showTooltip = true, NbtCompound components = null, int descriptionWidth = 200);

Components use the vanilla item-stack codec's named NBT representation.

public static DialogBody Message(ChatMessage contents, int width = 200);public void Write(INbtWriter writer);

On this page