Show / Hide Table of Contents

Class TagStack

should handle all of the tags => item conversions and comparisons. Tag stacks SHOULD NOT be used to represent actual items. Mostly should be not-displayed to the user (crafting elements are used for that).

Inheritance
System.Object
ItemStack
TagStack
Implements
IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
System.ICloneable
IStack
Inherited Members
ItemStack.Clear()
ItemStack.ReplaceStack(Item, Int32, Boolean, User)
ItemStack.ModifyFractional(Item, Single, User)
ItemStack.ToString()
ItemStack.Sync()
ItemStack.Clone()
ItemStack.CanFit(Int32)
ItemStack.FilledPercent()
ItemStack.Deconstruct(Item, Int32)
ItemStack.CloneStack()
ItemStack.Parent
ItemStack.Item
ItemStack.Quantity
ItemStack.Weight
ItemStack.ControllerID
ItemStack.PropertyChanged
Namespace: Eco.Gameplay.Items
Assembly: Eco.Gameplay.dll
Syntax
public class TagStack : ItemStack, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, ICloneable, IStack

Constructors

TagStack()

Declaration
public TagStack()

TagStack(Tag, Item, Int32, Single)

Declaration
public TagStack(Tag tag, Item item, int quantity, float fractionalQuantity)
Parameters
Type Name Description
Tag tag
Item item
System.Int32 quantity
System.Single fractionalQuantity

TagStack(String, Item, Int32, Single)

Declaration
public TagStack(string name, Item item, int quantity, float fractionalQuantity)
Parameters
Type Name Description
System.String name
Item item
System.Int32 quantity
System.Single fractionalQuantity

Fields

FractionalQuantity

Declaration
public float FractionalQuantity
Field Value
Type Description
System.Single

Properties

IsLiquid

Declaration
public bool IsLiquid { get; }
Property Value
Type Description
System.Boolean

IsSpecificItem

Declaration
public bool IsSpecificItem { get; }
Property Value
Type Description
System.Boolean

StackObject

Declaration
public override ItemRepresentation StackObject { get; }
Property Value
Type Description
ItemRepresentation
Overrides
ItemStack.StackObject

Tag

Declaration
public Tag Tag { get; }
Property Value
Type Description
Tag

TypeString

Declaration
public override string TypeString { get; }
Property Value
Type Description
System.String
Overrides
ItemStack.TypeString

Methods

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

NumberToTake(Item, Int32)

Declaration
public override int NumberToTake(Item item, int quantity)
Parameters
Type Name Description
Item item
System.Int32 quantity
Returns
Type Description
System.Int32
Overrides
ItemStack.NumberToTake(Item, Int32)

NumberToTake(ItemStack)

Declaration
public int NumberToTake(ItemStack stack)
Parameters
Type Name Description
ItemStack stack
Returns
Type Description
System.Int32

Implements

IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
System.ICloneable
IStack

Extension Methods

ItemStackExtensions.ModifyStack(ItemStack, User, Int32, Func<Boolean>, Action)
ItemStackExtensions.TryModifyStack(ItemStack, User, Int32, Func<Boolean>, Action)
TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
ItemTooltipLibrary.TaggedItems(TagStack)
ItemTooltipLibrary.TagStackTooltipTitle(TagStack)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾