Show / Hide Table of Contents

Class IngredientElement

Dynamic quantity tag stack.

Inheritance
System.Object
IngredientElement
Implements
IController
IViewController
IHasUniversalID
Namespace: Eco.Gameplay.Items.Recipes
Assembly: Eco.Gameplay.dll
Syntax
public class IngredientElement : Object, IController, IViewController, IHasUniversalID
Remarks

Should never be used to represent an actual item.

Constructors

IngredientElement(ItemRepresentation, Single, Boolean)

Declaration
public IngredientElement(ItemRepresentation stackable, float count = 1F, bool staticIngredient = false)
Parameters
Type Name Description
ItemRepresentation stackable
System.Single count
System.Boolean staticIngredient

IngredientElement(ItemRepresentation, Single, Type, Type)

Declaration
public IngredientElement(ItemRepresentation stackable, float start, Type skill, Type talent = null)
Parameters
Type Name Description
ItemRepresentation stackable
System.Single start
System.Type skill
System.Type talent

IngredientElement(String, Single, Boolean)

Declaration
public IngredientElement(string tag, float count = 1F, bool staticIngredient = false)
Parameters
Type Name Description
System.String tag
System.Single count
System.Boolean staticIngredient

IngredientElement(String, Single, Type, Type)

Declaration
public IngredientElement(string tag, float start, Type skill, Type talent = null)
Parameters
Type Name Description
System.String tag
System.Single start
System.Type skill
System.Type talent

IngredientElement(Type, Single, Boolean)

Declaration
public IngredientElement(Type itemType, float count = 1F, bool staticIngredient = false)
Parameters
Type Name Description
System.Type itemType
System.Single count
System.Boolean staticIngredient

IngredientElement(Type, Single, Type, Type)

Declaration
public IngredientElement(Type itemType, float start, Type skill, Type talent = null)
Parameters
Type Name Description
System.Type itemType
System.Single start
System.Type skill
System.Type talent

Properties

ControllerID

Declaration
public ref int ControllerID { get; }
Property Value
Type Description
System.Int32

InnerName

Declaration
public string InnerName { get; }
Property Value
Type Description
System.String

IsSpecificItem

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

Item

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

ItemRepresentation

Declaration
public ItemRepresentation ItemRepresentation { get; set; }
Property Value
Type Description
ItemRepresentation

Quantity

Declaration
public IDynamicValue Quantity { get; }
Property Value
Type Description
IDynamicValue

Tag

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

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

MeetsRequirement(FractionalItemStack)

Declaration
public bool MeetsRequirement(FractionalItemStack ingredient)
Parameters
Type Name Description
FractionalItemStack ingredient
Returns
Type Description
System.Boolean

UILink()

Declaration
public LocString UILink()
Returns
Type Description
LocString

Implements

IController
IViewController
IHasUniversalID

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
SkillTooltipLibrary.IngredientElementTooltipTitle(IngredientElement)
SkillTooltipLibrary.TaggedItems(IngredientElement, TooltipOrigin)
SkillTooltipLibrary.CraftingBenefits(IngredientElement, User, TooltipOrigin)
SkillTooltipLibrary.TalentBenefitsForItemOrTag(IngredientElement, User)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾