Show / Hide Table of Contents

Class BlockUtils

Inheritance
System.Object
BlockUtils
Namespace: Eco.Gameplay.Utils
Assembly: Eco.Gameplay.dll
Syntax
public static class BlockUtils : Object

Methods

GetBlockTooltipItem(Type)

Returns most suitable Item for BlockType to be displayed in Look At tooltip.

Declaration
public static Item GetBlockTooltipItem(Type blockType)
Parameters
Type Name Description
System.Type blockType
Returns
Type Description
Item

GetItem(Block)

Tries to convert object into an item.

Declaration
public static Item GetItem(this Block target)
Parameters
Type Name Description
Block target
Returns
Type Description
Item

GetLookAtTooltip(Type)

Returns text for Look At tooltip for specified blockType. The tooltip appear on the client when player is looking on a block.

Declaration
public static Nullable<LocString> GetLookAtTooltip(Type blockType)
Parameters
Type Name Description
System.Type blockType
Returns
Type Description
System.Nullable<LocString>
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾