Show / Hide Table of Contents

Class BlockItem

Inheritance
System.Object
ItemLinkable
ItemRepresentation
Item
BlockItem
BlockItem<T>
Implements
IItem
ILinkableParameterized<LinkConfig>
ILinkable
IHasIcon
IInteractor
IHasInteractions
IController
IViewController
IHasUniversalID
Inherited Members
Item.ItemsInitialized
Item.RepresentsItem(Item)
Item.RepresentsItemType(Type)
Item.CanStack(Item)
Item.Merge(Item, Int32, Int32, Boolean)
Item.OnLinkClicked(TooltipOrigin, TooltipClickContext, User)
Item.ClearMaxStackSizeCache()
Item.GetMaxStackSize(Type)
Item.Destroy(Int32)
Item.Clone()
Item.ToString()
Item.UnsubscribeUnique()
Item.OnUsed(Player, ItemStack)
Item.OnLeftClicked(Player, ItemStack)
Item.OnSelected(Player)
Item.OnDeselected(Player)
Item.Get(IRepresentsItem)
Item.Get(Int32)
Item.Get<T>()
Item.Get(Type)
Item.Get(String)
Item.ShowName(Type, Single)
Item.ShowName(Type, Int32)
Item.ShowName<T>(Int32)
Item.NameAndNum(Type, Int32)
Item.GetSkillbookForSkillType(Type)
Item.GetCreatedObj(Type)
Item.TypeIsUnique(Type)
Item.GetNonUniqueOrClone(Int32)
Item.GetNonUniqueOrClone(Type)
Item.NameAndNum(Type, Single)
Item.GetItemByString(User, String)
Item.GetID(Item)
Item.GetID(Type)
Item.HasID(Type)
Item.GetID<T>()
Item.GetType(Int32)
Item.GetType(String)
Item.Create<T>(Int32)
Item.Create(Type, Int32)
Item.Create<T>()
Item.Create(Type)
Item.IconName
Item.IconComment
Item.TypeID
Item.Type
Item.DisplayName
Item.Name
Item.IsUnique
Item.Fuel
Item.IsFuel
Item.WeightWithoutModifiers
Item.Weight
Item.HasWeight
Item.IsCarried
Item.IgnoreAuth
Item.Yield
Item.HasYield
Item.HasCrop
Item.CanBeCurrency
Item.MakesRoads
Item.Compostable
Item.ResourcePile
Item.CanAirInteraction
Item.Category
Item.Hidden
Item.Group
Item.MaxStackSize
Item.IsWasteProduct
Item.IsStackable
Item.StackingHash
Item.GetDescription
Item.HandOrigin
Item.CanBeHeld
Item.IsTool
Item.CustomHighlight
Item.AllItemsIncludingHidden
Item.AllItemsExceptHidden
Item.RandomItem
ItemRepresentation.RepresentsItemType(Item)
ItemRepresentation.RepresentativeHash()
ItemLinkable.ShowName(Single)
ItemLinkable.ShowName(Int32)
ItemLinkable.UILinkAndNumber(Single)
ItemLinkable.UILinkAndNumber(Int32)
ItemLinkable.UILinkAndNumber(Int32, String)
ItemLinkable.UILinkAndNumberAndTier(Int32, Int32)
ItemLinkable.UILinkAndNumberAndTierPrepend(Int32, Int32, String)
ItemLinkable.UILinkAndNumberNoText(Int32)
ItemLinkable.UILinkContent()
ItemLinkable.UILinkContent(Boolean)
ItemLinkable.NameAndNum(Int32)
ItemLinkable.UILinkAndStyledNumber(Int32)
ItemLinkable.UILinkContent(LocString)
ItemLinkable.UILinkNoNumber(Int32)
ItemLinkable.UILinkContent(LinkConfig)
ItemLinkable.ItemIconUILink(LocString)
ItemLinkable.DisplayNamePlural
ItemLinkable.MarkedUpName
ItemLinkable.ControllerID
Namespace: Eco.Gameplay.Items
Assembly: Eco.Gameplay.dll
Syntax
[Carried]
[WorldSpaceItem]
[ItemGroup("Block Items")]
public abstract class BlockItem : Item, IItem, ILinkableParameterized<LinkConfig>, ILinkable, IHasIcon, IInteractor, IHasInteractions, IController, IViewController, IHasUniversalID

Constructors

BlockItem()

Declaration
protected BlockItem()

Fields

OnInitialize

Declaration
public static ThreadSafeAction OnInitialize
Field Value
Type Description
ThreadSafeAction

Properties

BlockTypes

Declaration
public abstract Type[] BlockTypes { get; }
Property Value
Type Description
System.Type[]

CanStickToWalls

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

ControlsText

Declaration
public static LocString ControlsText { get; }
Property Value
Type Description
LocString

ControlsTextCarried

Declaration
public static LocString ControlsTextCarried { get; }
Property Value
Type Description
LocString

ControlsTextHasForms

Declaration
public static LocString ControlsTextHasForms { get; }
Property Value
Type Description
LocString

DisplayCrate

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

HasForms

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

HasTier

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

IgnoreRooms

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

OriginType

Declaration
public abstract Type OriginType { get; }
Property Value
Type Description
System.Type

Tier

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

Methods

CreatingItem(Type)

Declaration
public static BlockItem CreatingItem(Type blockType)
Parameters
Type Name Description
System.Type blockType
Returns
Type Description
BlockItem

CreatingItems(Type)

Declaration
public static IEnumerable<BlockItem> CreatingItems(Type blockType)
Parameters
Type Name Description
System.Type blockType
Returns
Type Description
System.Collections.Generic.IEnumerable<BlockItem>

Drop(Player, InteractionTriggerInfo, InteractionTarget)

Declaration
[Interaction]
public void Drop(Player player, InteractionTriggerInfo triggerInfo, InteractionTarget target)
Parameters
Type Name Description
Player player
InteractionTriggerInfo triggerInfo
InteractionTarget target

FirstCreatingItem(Type)

Declaration
public static BlockItem FirstCreatingItem(Type blockType)
Parameters
Type Name Description
System.Type blockType
Returns
Type Description
BlockItem

GetBlockItem(Type)

Returns BlockItem for requested blockType.

Declaration
public static BlockItem GetBlockItem(Type blockType)
Parameters
Type Name Description
System.Type blockType
Returns
Type Description
BlockItem

Initialize()

Declaration
public static void Initialize()

Place(Player, Vector3i)

Called from the client to finalize the 'Place' interaction.

Declaration
public void Place(Player player, Vector3i position)
Parameters
Type Name Description
Player player
Vector3i position

Implements

IItem
ILinkableParameterized<T>
ILinkable
IHasIcon
IInteractor
IHasInteractions
IController
IViewController
IHasUniversalID

Extension Methods

ItemStackExtensions.NameAndNum(ItemRepresentation, Int32)
ItemUtils.CanItemExistInInventories(Item)
ItemUtils.CloneIfNeeded(Item)
TagUtils.Tags(Item)
TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
MarketplaceExtensions.IsPaidItem(Item)
TypeTooltipExtensions.UILinkGeneric(Object)
EconomyTooltipLibrary.BuyItTooltip(Item, User, TooltipOrigin)
EconomyTooltipLibrary.SellItTooltip(Item, User, TooltipOrigin)
ILinkableTooltipLibrary.ItemLinkClicked(Item, TooltipOrigin)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾