Class ItemstackAttribute
- Namespace
- Vintagestory.API.Datastructures
- Assembly
- VintagestoryAPI.dll
public class ItemstackAttribute : IAttribute
- Inheritance
-
ItemstackAttribute
- Implements
- Inherited Members
Constructors
ItemstackAttribute()
public ItemstackAttribute()
ItemstackAttribute(ItemStack)
public ItemstackAttribute(ItemStack value)
Parameters
value
ItemStack
Fields
value
public ItemStack value
Field Value
Methods
Clone()
public IAttribute Clone()
Returns
Equals(IWorldAccessor, IAttribute)
public bool Equals(IWorldAccessor worldForResolve, IAttribute attr)
Parameters
worldForResolve
IWorldAccessorattr
IAttribute
Returns
FromBytes(BinaryReader)
public void FromBytes(BinaryReader stream)
Parameters
stream
BinaryReader
GetAttributeId()
public int GetAttributeId()
Returns
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
ToBytes(BinaryWriter)
public void ToBytes(BinaryWriter stream)
Parameters
stream
BinaryWriter
ToJsonToken()
public string ToJsonToken()