Table of Contents

Class ScalarAttribute<T>

Namespace
Vintagestory.API.Datastructures
Assembly
VintagestoryAPI.dll
public abstract class ScalarAttribute<T>

Type Parameters

T
Inheritance
ScalarAttribute<T>
Derived
Inherited Members
Extension Methods

Fields

value

public T value

Field Value

T

Methods

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object b)

Parameters

b object

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(IWorldAccessor, IAttribute)

public virtual bool Equals(IWorldAccessor worldForResolve, IAttribute attr)

Parameters

worldForResolve IWorldAccessor
attr IAttribute

Returns

bool

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetValue()

public virtual object GetValue()

Returns

object

SetValue(T)

public virtual void SetValue(T newval)

Parameters

newval T

ToJsonToken()

public virtual string ToJsonToken()

Returns

string

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.