Show / Hide Table of Contents

Class PlantEntity

Inheritance
System.Object
PlantEntity
Namespace: Eco.Gameplay.Plants
Assembly: Eco.Gameplay.dll
Syntax
public class PlantEntity : Plant

Constructors

PlantEntity()

Declaration
public PlantEntity()

PlantEntity(PlantSpecies, WorldPosition3i, PlantPack)

Declaration
public PlantEntity(PlantSpecies species, WorldPosition3i mapPos, PlantPack plantPack)
Parameters
Type Name Description
PlantSpecies species
WorldPosition3i mapPos
PlantPack plantPack

Properties

SkillType

The skill this plant should give EXP to when harvested. Null if it doesn't return anything

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

Methods

CalculateHarvestResources(Player)

Declaration
public List<ItemStack> CalculateHarvestResources(Player player)
Parameters
Type Name Description
Player player
Returns
Type Description
System.Collections.Generic.List<ItemStack>

CanHarvest(Player, Boolean)

Declaration
public virtual Result CanHarvest(Player player, bool picked)
Parameters
Type Name Description
Player player
System.Boolean picked
Returns
Type Description
Result

CanScythe(Player)

Declaration
public Result CanScythe(Player player)
Parameters
Type Name Description
Player player
Returns
Type Description
Result

ProcessSoilUnderneeth()

Declaration
public void ProcessSoilUnderneeth()

TryHarvest(Player, Boolean, GameActionPack, InventoryChangeSet, Item)

Harvest a plant.

Declaration
public virtual Result TryHarvest(Player player, bool picked, GameActionPack pack, InventoryChangeSet changeSet, Item tool)
Parameters
Type Name Description
Player player
System.Boolean picked

True this picked directly (ie pressing E), or false if harvested with a tool.

GameActionPack pack
InventoryChangeSet changeSet
Item tool
Returns
Type Description
Result

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾