Table of Contents

Class ItemstackAttribute

Namespace
Vintagestory.API.Datastructures
Assembly
VintagestoryAPI.dll
public class ItemstackAttribute : IAttribute
Inheritance
ItemstackAttribute
Implements
Inherited Members
Extension Methods

Constructors

ItemstackAttribute()

public ItemstackAttribute()

ItemstackAttribute(ItemStack)

public ItemstackAttribute(ItemStack value)

Parameters

value ItemStack

Fields

value

public ItemStack value

Field Value

ItemStack

Methods

Clone()

public IAttribute Clone()

Returns

IAttribute

Equals(IWorldAccessor, IAttribute)

public bool Equals(IWorldAccessor worldForResolve, IAttribute attr)

Parameters

worldForResolve IWorldAccessor
attr IAttribute

Returns

bool

FromBytes(BinaryReader)

public void FromBytes(BinaryReader stream)

Parameters

stream BinaryReader

GetAttributeId()

public int GetAttributeId()

Returns

int

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetValue()

public object GetValue()

Returns

object

SetValue(ItemStack)

public void SetValue(ItemStack newval)

Parameters

newval ItemStack

ToBytes(BinaryWriter)

public void ToBytes(BinaryWriter stream)

Parameters

stream BinaryWriter

ToJsonToken()

public string ToJsonToken()

Returns

string