Class BlockPlacementUtils
Functions to assist in placing blocks
Inheritance
System.Object
BlockPlacementUtils
Namespace: Eco.Gameplay.Placement
Assembly: Eco.Gameplay.dll
Syntax
public static class BlockPlacementUtils : Object
Methods
DropCarriedBlock(Player)
Drop carried block/rubble in current direction player is facing
Declaration
public static bool DropCarriedBlock(Player player)
Parameters
| Type | Name | Description |
|---|---|---|
| Player | player |
Returns
| Type | Description |
|---|---|
| System.Boolean |
PlaceAndNotify(Player, BlockItem, Vector3i)
Place a block at the given position, stacking or dropping as appropriate.
Declaration
public static bool PlaceAndNotify(Player player, BlockItem item, Vector3i position)
Parameters
| Type | Name | Description |
|---|---|---|
| Player | player | |
| BlockItem | item | |
| Vector3i | position |
Returns
| Type | Description |
|---|---|
| System.Boolean |