Table of Contents

Class ComponentBuilder

Namespace
Obsidian.API.Inventory.DataComponents
Assembly
Obsidian.API.dll
public static class ComponentBuilder
Inheritance
ComponentBuilder
Inherited Members

Properties

AttributeModifiers

public static TooltipSimpleDataComponent<List<AttributeModifier>> AttributeModifiers { get; }

Property Value

TooltipSimpleDataComponent<List<AttributeModifier>>

BannerPatterns

public static SimpleDataComponent<List<BannerPatternLayer>> BannerPatterns { get; }

Property Value

SimpleDataComponent<List<BannerPatternLayer>>

BaseColor

public static SimpleDataComponent<Dye> BaseColor { get; }

Property Value

SimpleDataComponent<Dye>

Bees

public static SimpleDataComponent Bees { get; }

Property Value

SimpleDataComponent

BlockEntityData

public static SimpleDataComponent BlockEntityData { get; }

Property Value

SimpleDataComponent

BlockState

public static SimpleDataComponent<List<BlockStateProperty>> BlockState { get; }

Property Value

SimpleDataComponent<List<BlockStateProperty>>

BucketEntityData

public static SimpleDataComponent BucketEntityData { get; }

Property Value

SimpleDataComponent

BundleContents

public static SimpleDataComponent<List<ItemStack>> BundleContents { get; }

Property Value

SimpleDataComponent<List<ItemStack>>

ChargedProjectiles

public static SimpleDataComponent<List<ItemStack>> ChargedProjectiles { get; }

Property Value

SimpleDataComponent<List<ItemStack>>

Container

public static SimpleDataComponent<List<ItemStack>> Container { get; }

Property Value

SimpleDataComponent<List<ItemStack>>

ContainerLoot

public static SimpleDataComponent ContainerLoot { get; }

Property Value

SimpleDataComponent

CreativeSlotLock

Marks the item as non-interactive on the creative inventory (the first 5 rows of items). This is used internally by the client on the paper icon in the saved hot-bars tab.

public static SimpleDataComponent CreativeSlotLock { get; }

Property Value

SimpleDataComponent

CustomData

public static SimpleDataComponent CustomData { get; }

Property Value

SimpleDataComponent

CustomModelData

public static SimpleDataComponent<ChatMessage> CustomModelData { get; }

Property Value

SimpleDataComponent<ChatMessage>

CustomName

public static SimpleDataComponent<ChatMessage> CustomName { get; }

Property Value

SimpleDataComponent<ChatMessage>

Damage

public static SimpleDataComponent<int> Damage { get; }

Property Value

SimpleDataComponent<int>

DamageResistant

Marks this item as damage resistant. The client won't render the item as being on-fire if this component is present.

public static SimpleDataComponent DamageResistant { get; }

Property Value

SimpleDataComponent

DeathProtection

public static SimpleDataComponent<List<IConsumeEffect>> DeathProtection { get; }

Property Value

SimpleDataComponent<List<IConsumeEffect>>

DebugStickState

public static SimpleDataComponent DebugStickState { get; }

Property Value

SimpleDataComponent

DefaultItemComponents

public static List<IDataComponent> DefaultItemComponents { get; }

Property Value

List<IDataComponent>

DyedColor

public static SimpleDataComponent<Dye> DyedColor { get; }

Property Value

SimpleDataComponent<Dye>

Enchantable

public static SimpleDataComponent<int> Enchantable { get; }

Property Value

SimpleDataComponent<int>

EnchantmentGlintOverride

public static SimpleDataComponent<int> EnchantmentGlintOverride { get; }

Property Value

SimpleDataComponent<int>

Enchantments

public static TooltipSimpleDataComponent<List<Enchantment>> Enchantments { get; }

Property Value

TooltipSimpleDataComponent<List<Enchantment>>

EntityData

public static SimpleDataComponent EntityData { get; }

Property Value

SimpleDataComponent

FireworkExplosion

public static SimpleDataComponent<FireworkExplosion> FireworkExplosion { get; }

Property Value

SimpleDataComponent<FireworkExplosion>

Glider

public static SimpleDataComponent Glider { get; }

Property Value

SimpleDataComponent

HideAdditionalTooltip

public static SimpleDataComponent HideAdditionalTooltip { get; }

Property Value

SimpleDataComponent

HideTooltip

public static SimpleDataComponent HideTooltip { get; }

Property Value

SimpleDataComponent

Instrument

public static SimpleDataComponent<InstrumentData> Instrument { get; }

Property Value

SimpleDataComponent<InstrumentData>

IntangibleProjectile

public static SimpleDataComponent IntangibleProjectile { get; }

Property Value

SimpleDataComponent

ItemModel

public static SimpleDataComponent<string> ItemModel { get; }

Property Value

SimpleDataComponent<string>

ItemName

public static SimpleDataComponent<ChatMessage> ItemName { get; }

Property Value

SimpleDataComponent<ChatMessage>

Lock

public static SimpleDataComponent Lock { get; }

Property Value

SimpleDataComponent

Lore

public static SimpleDataComponent<List<ChatMessage>> Lore { get; }

Property Value

SimpleDataComponent<List<ChatMessage>>

MapColor

public static SimpleDataComponent<int> MapColor { get; }

Property Value

SimpleDataComponent<int>

MapId

public static SimpleDataComponent<int> MapId { get; }

Property Value

SimpleDataComponent<int>

MapPostProcessing

public static SimpleDataComponent<MapPostProcessingType> MapPostProcessing { get; }

Property Value

SimpleDataComponent<MapPostProcessingType>

MaxDamage

public static SimpleDataComponent<int> MaxDamage { get; }

Property Value

SimpleDataComponent<int>

MaxStackSize

public static SimpleDataComponent<int> MaxStackSize { get; }

Property Value

SimpleDataComponent<int>

NoteBlockSound

public static SimpleDataComponent<string> NoteBlockSound { get; }

Property Value

SimpleDataComponent<string>

OminousBottleAmplifier

public static SimpleDataComponent<int> OminousBottleAmplifier { get; }

Property Value

SimpleDataComponent<int>

PotDecorations

public static SimpleDataComponent<List<Item>> PotDecorations { get; }

Property Value

SimpleDataComponent<List<Item>>

Rarity

public static SimpleDataComponent<ItemRarity> Rarity { get; }

Property Value

SimpleDataComponent<ItemRarity>

Recipes

public static SimpleDataComponent Recipes { get; }

Property Value

SimpleDataComponent

RepairCost

Accumulated anvil usage cost. The client displays "Too Expensive" if the value is greater than 40 and the player is not in creative mode (more specifically, if they don't have the insta-build flag enabled). This behavior can be overridden by setting the level with the Set Container Property packet.

public static SimpleDataComponent<int> RepairCost { get; }

Property Value

SimpleDataComponent<int>

Repairable

public static SimpleDataComponent<List<string>> Repairable { get; }

Property Value

SimpleDataComponent<List<string>>

StoredEnchantments

public static TooltipSimpleDataComponent<List<Enchantment>> StoredEnchantments { get; }

Property Value

TooltipSimpleDataComponent<List<Enchantment>>

SuspiciousStewEffects

public static SimpleDataComponent<List<SuspiciousStewEffect>> SuspiciousStewEffects { get; }

Property Value

SimpleDataComponent<List<SuspiciousStewEffect>>

TooltipStyle

public static SimpleDataComponent<string> TooltipStyle { get; }

Property Value

SimpleDataComponent<string>

Unbreakable

public static SimpleDataComponent<bool> Unbreakable { get; }

Property Value

SimpleDataComponent<bool>

UseRemainder

public static SimpleDataComponent<ItemStack?> UseRemainder { get; }

Property Value

SimpleDataComponent<ItemStack>

WritableBookContent

public static SimpleDataComponent<List<Page>> WritableBookContent { get; }

Property Value

SimpleDataComponent<List<Page>>

WrittenBookContent

public static SimpleDataComponent<List<Page>> WrittenBookContent { get; }

Property Value

SimpleDataComponent<List<Page>>

Methods

BuildSimpleComponent<TValue>(DataComponentType, string, Action<INetStreamWriter, TValue>, Func<INetStreamReader, TValue>)

public static SimpleDataComponent<TValue> BuildSimpleComponent<TValue>(DataComponentType type, string identifier, Action<INetStreamWriter, TValue> writer, Func<INetStreamReader, TValue> reader)

Parameters

type DataComponentType
identifier string
writer Action<INetStreamWriter, TValue>
reader Func<INetStreamReader, TValue>

Returns

SimpleDataComponent<TValue>

Type Parameters

TValue

BuildTooltipSimpleDataComponent<TValue>(DataComponentType, string, Action<INetStreamWriter, TValue>, Func<INetStreamReader, TValue>)

public static TooltipSimpleDataComponent<TValue> BuildTooltipSimpleDataComponent<TValue>(DataComponentType type, string identifier, Action<INetStreamWriter, TValue> writer, Func<INetStreamReader, TValue> reader)

Parameters

type DataComponentType
identifier string
writer Action<INetStreamWriter, TValue>
reader Func<INetStreamReader, TValue>

Returns

TooltipSimpleDataComponent<TValue>

Type Parameters

TValue