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
BannerPatterns
public static SimpleDataComponent<List<BannerPatternLayer>> BannerPatterns { get; }
Property Value
BaseColor
public static SimpleDataComponent<Dye> BaseColor { get; }
Property Value
Bees
public static SimpleDataComponent Bees { get; }
Property Value
BlockEntityData
public static SimpleDataComponent BlockEntityData { get; }
Property Value
BlockState
public static SimpleDataComponent<List<BlockStateProperty>> BlockState { get; }
Property Value
BucketEntityData
public static SimpleDataComponent BucketEntityData { get; }
Property Value
BundleContents
public static SimpleDataComponent<List<ItemStack>> BundleContents { get; }
Property Value
ChargedProjectiles
public static SimpleDataComponent<List<ItemStack>> ChargedProjectiles { get; }
Property Value
Container
public static SimpleDataComponent<List<ItemStack>> Container { get; }
Property Value
ContainerLoot
public static SimpleDataComponent ContainerLoot { get; }
Property Value
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
CustomData
public static SimpleDataComponent CustomData { get; }
Property Value
CustomModelData
public static SimpleDataComponent<ChatMessage> CustomModelData { get; }
Property Value
CustomName
public static SimpleDataComponent<ChatMessage> CustomName { get; }
Property Value
Damage
public static SimpleDataComponent<int> Damage { get; }
Property Value
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
DeathProtection
public static SimpleDataComponent<List<IConsumeEffect>> DeathProtection { get; }
Property Value
DebugStickState
public static SimpleDataComponent DebugStickState { get; }
Property Value
DefaultItemComponents
public static List<IDataComponent> DefaultItemComponents { get; }
Property Value
DyedColor
public static SimpleDataComponent<Dye> DyedColor { get; }
Property Value
Enchantable
public static SimpleDataComponent<int> Enchantable { get; }
Property Value
EnchantmentGlintOverride
public static SimpleDataComponent<int> EnchantmentGlintOverride { get; }
Property Value
Enchantments
public static TooltipSimpleDataComponent<List<Enchantment>> Enchantments { get; }
Property Value
EntityData
public static SimpleDataComponent EntityData { get; }
Property Value
FireworkExplosion
public static SimpleDataComponent<FireworkExplosion> FireworkExplosion { get; }
Property Value
Glider
public static SimpleDataComponent Glider { get; }
Property Value
HideAdditionalTooltip
public static SimpleDataComponent HideAdditionalTooltip { get; }
Property Value
HideTooltip
public static SimpleDataComponent HideTooltip { get; }
Property Value
Instrument
public static SimpleDataComponent<InstrumentData> Instrument { get; }
Property Value
IntangibleProjectile
public static SimpleDataComponent IntangibleProjectile { get; }
Property Value
ItemModel
public static SimpleDataComponent<string> ItemModel { get; }
Property Value
ItemName
public static SimpleDataComponent<ChatMessage> ItemName { get; }
Property Value
Lock
public static SimpleDataComponent Lock { get; }
Property Value
Lore
public static SimpleDataComponent<List<ChatMessage>> Lore { get; }
Property Value
MapColor
public static SimpleDataComponent<int> MapColor { get; }
Property Value
MapId
public static SimpleDataComponent<int> MapId { get; }
Property Value
MapPostProcessing
public static SimpleDataComponent<MapPostProcessingType> MapPostProcessing { get; }
Property Value
MaxDamage
public static SimpleDataComponent<int> MaxDamage { get; }
Property Value
MaxStackSize
public static SimpleDataComponent<int> MaxStackSize { get; }
Property Value
NoteBlockSound
public static SimpleDataComponent<string> NoteBlockSound { get; }
Property Value
OminousBottleAmplifier
public static SimpleDataComponent<int> OminousBottleAmplifier { get; }
Property Value
PotDecorations
public static SimpleDataComponent<List<Item>> PotDecorations { get; }
Property Value
Rarity
public static SimpleDataComponent<ItemRarity> Rarity { get; }
Property Value
Recipes
public static SimpleDataComponent Recipes { get; }
Property Value
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
Repairable
public static SimpleDataComponent<List<string>> Repairable { get; }
Property Value
StoredEnchantments
public static TooltipSimpleDataComponent<List<Enchantment>> StoredEnchantments { get; }
Property Value
SuspiciousStewEffects
public static SimpleDataComponent<List<SuspiciousStewEffect>> SuspiciousStewEffects { get; }
Property Value
TooltipStyle
public static SimpleDataComponent<string> TooltipStyle { get; }
Property Value
Unbreakable
public static SimpleDataComponent<bool> Unbreakable { get; }
Property Value
UseRemainder
public static SimpleDataComponent<ItemStack?> UseRemainder { get; }
Property Value
WritableBookContent
public static SimpleDataComponent<List<Page>> WritableBookContent { get; }
Property Value
WrittenBookContent
public static SimpleDataComponent<List<Page>> WrittenBookContent { get; }
Property Value
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
DataComponentTypeidentifier
stringwriter
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
DataComponentTypeidentifier
stringwriter
Action<INetStreamWriter, TValue>reader
Func<INetStreamReader, TValue>
Returns
- TooltipSimpleDataComponent<TValue>
Type Parameters
TValue