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
Equals(IWorldAccessor, IAttribute)
public virtual bool Equals(IWorldAccessor worldForResolve, IAttribute attr)
Parameters
worldForResolve
IWorldAccessorattr
IAttribute
Returns
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
SetValue(T)
public virtual void SetValue(T newval)
Parameters
newval
T
ToJsonToken()
public virtual string ToJsonToken()
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.