Show / Hide Table of Contents

Class BuildingToolItem

Base class for items that has block building functionality. Extracted from HammerItem class. Needed to refer by type easily as tech tree item not available in core. (Same as like "is ToolItem" " is DurabilityItem", etc)

Inheritance
System.Object
ItemLinkable
ItemRepresentation
Item
DurabilityItem
RepairableItem
ToolItem
BuildingToolItem
Implements
IItem
ILinkableParameterized<LinkConfig>
ILinkable
IHasIcon
System.ComponentModel.INotifyPropertyChanged
IInteractor
IHasInteractions
IPlaceableItem
IController
IViewController
IHasUniversalID
Inherited Members
ToolItem.CreateCalorieValue(Single, Type, Type)
ToolItem.CreateDamageValue(Single, Type, Type)
ToolItem.CreateSkillModifiedValue(Single, ModificationStrategy, Type, Type, LocString, DynamicValueType)
ToolItem.IsValidForInteraction(Item)
ToolItem.UseDurability(Single, Player, Boolean)
ToolItem.NeededCalories(Player, Single)
ToolItem.BurnCaloriesNow(Player, Single)
ToolItem.AddExperience(User, Single, GameActionDescription)
ToolItem.AddExperience(User, Single, LocString)
ToolItem.CanStack(Item)
ToolItem.CanPickUpItemStack(ItemStack)
ToolItem.GetItemsUserCanTake(WorldObject, Item, Boolean)
ToolItem.UseToolRPC(Player)
ToolItem.GetPreferredInventoryToPullFrom(WorldObject)
ToolItem.ExperienceSkill
ToolItem.ExperienceRate
ToolItem.CaloriesBurn
ToolItem.DurabilityBurn
ToolItem.PerkDamage
ToolItem.Tier
ToolItem.Damage
ToolItem.SkilledRepairCost
ToolItem.CanBeHeld
ToolItem.MaxTake
ToolItem.CanBeUsedWithEmotes
ToolItem.DescribeBlockAction
ToolItem.IsStackable
ToolItem.BrokenDescription
RepairableItem.RepresentativeHash()
RepairableItem.MaterialRepairsItem(Type)
RepairableItem.DescribeRepairCost(User, Boolean)
RepairableItem.RepairCost(User, Single)
RepairableItem.GetQualityGroup()
RepairableItem.Clone()
RepairableItem.GetDurability()
RepairableItem.SetDurability(Single)
RepairableItem.DurabilityPercent
RepairableItem.Durability
RepairableItem.DefaultMinRequiredIntegrityInTradeOffers
RepairableItem.IntegrityAmount
RepairableItem.IntegrityPercent
RepairableItem.RepairPenaltyToDurability
RepairableItem.RepairItem
RepairableItem.RepairItems
RepairableItem.RepairTag
RepairableItem.CanBeRepaired
RepairableItem.FullRepairAmount
RepairableItem.SkillReqs
RepairableItem.PercentBrokenFromOriginal
DurabilityItem.RepresentsItem(Item)
DurabilityItem.Merge(Item, Int32, Int32, Boolean)
DurabilityItem.OriginalMaxDurability
DurabilityItem.Decays
DurabilityItem.DisplayDurability
DurabilityItem.Broken
DurabilityItem.StackingHash
DurabilityItem.DefaultMinRequiredDurabilityInTradeOffers
DurabilityItem.PropertyChanged
Item.ItemsInitialized
Item.RepresentsItemType(Type)
Item.OnLinkClicked(TooltipOrigin, TooltipClickContext, User)
Item.ClearMaxStackSizeCache()
Item.GetMaxStackSize(Type)
Item.Destroy(Int32)
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.CreatingItem(Type)
Item.GetCreatedObj(Type)
Item.TypeIsUnique(Type)
Item.GetNonUniqueOrClone(Int32)
Item.GetNonUniqueOrClone(Type)
Item.NameAndNum(Type, Single)
Item.Initialize()
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.GetDescription
Item.HandOrigin
Item.IsTool
Item.CustomHighlight
Item.AllItemsIncludingHidden
Item.AllItemsExceptHidden
Item.RandomItem
ItemRepresentation.RepresentsItemType(Item)
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
[CanMakeBlockForm]
public abstract class BuildingToolItem : ToolItem, IItem, ILinkableParameterized<LinkConfig>, ILinkable, IHasIcon, INotifyPropertyChanged, IInteractor, IHasInteractions, IPlaceableItem, IController, IViewController, IHasUniversalID

Constructors

BuildingToolItem()

Declaration
protected BuildingToolItem()

Methods

GetNoSuitablePickupTargetFailureMessage(Inventory)

Declaration
public override LocString GetNoSuitablePickupTargetFailureMessage(Inventory inventory)
Parameters
Type Name Description
Inventory inventory
Returns
Type Description
LocString
Overrides
ToolItem.GetNoSuitablePickupTargetFailureMessage(Inventory)

PickupBlock(Player, Vector3i)

Attempts to pick up the block at given position.

Declaration
public bool PickupBlock(Player player, Vector3i blockPos)
Parameters
Type Name Description
Player player
Vector3i blockPos
Returns
Type Description
System.Boolean

PickupWorldObject(Player, WorldObject)

Attempts to pick up a World Object.

Declaration
public Task<bool> PickupWorldObject(Player player, WorldObject worldObj)
Parameters
Type Name Description
Player player
WorldObject worldObj
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

Place(Player, BlockLayout, Int32)

Attempts to place a layout of blocks at given position, with given rotation.

Declaration
public bool Place(Player player, BlockLayout layout, int rotation)
Parameters
Type Name Description
Player player
BlockLayout layout
System.Int32 rotation
Returns
Type Description
System.Boolean

Implements

IItem
ILinkableParameterized<T>
ILinkable
IHasIcon
System.ComponentModel.INotifyPropertyChanged
IInteractor
IHasInteractions
IPlaceableItem
IController
IViewController
IHasUniversalID

Extension Methods

MultiblockContextHelpers.CreateMultiblockContext(ToolItem, Player, Boolean, Vector3i, IEnumerable<Type>, Func<GameAction>)
MultiblockContextHelpers.CreateMultiblockContext(ToolItem, Player, Boolean, IEnumerable<Vector3i>, IEnumerable<Type>, Func<GameAction>)
MultiblockContextHelpers.TryCreateMultiblockContext(ToolItem, out MultiblockActionContext, InteractionTarget, Player, Boolean, IEnumerable<Type>, Func<GameAction>, IEnumerable<String>, IEnumerable<String>, String[])
MultiblockContextHelpers.TryCreateMultiblockContext(ToolItem, out MultiblockActionContext, InteractionTarget, Player, IEnumerable<Tag>, Boolean, IEnumerable<Type>, Func<GameAction>, IEnumerable<Tag>, IEnumerable<Tag>)
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)
DurabilityItemTooltipLibrary.TooltipDurability(RepairableItem, User)
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
☀
☾