Table of Contents

Interface IAttribute

Namespace
Vintagestory.API.Datastructures
Assembly
VintagestoryAPI.dll

An attribute from an attribute tree

public interface IAttribute
Extension Methods

Methods

Clone()

IAttribute Clone()

Returns

IAttribute

Equals(IWorldAccessor, IAttribute?)

bool Equals(IWorldAccessor worldForResolve, IAttribute? attr)

Parameters

worldForResolve IWorldAccessor
attr IAttribute

Returns

bool

FromBytes(BinaryReader)

[Obsolete("Use the BinarySpanReader overload.", true)]
void FromBytes(BinaryReader stream)

Parameters

stream BinaryReader

FromBytes(ref BinarySpanReader)

void FromBytes(ref BinarySpanReader reader)

Parameters

reader BinarySpanReader

Remarks

Do not call this default implementation when overriding this method, it only exists for backwards compat.

GetAttributeId()

int GetAttributeId()

Returns

int

GetType()

Type GetType()

Returns

Type

GetValue()

object? GetValue()

Returns

object

ToBytes(BinaryWriter)

void ToBytes(BinaryWriter stream)

Parameters

stream BinaryWriter

ToJsonToken()

string ToJsonToken()

Returns

string