Table of Contents

Class EntitySelection

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll
public class EntitySelection
Inheritance
EntitySelection
Inherited Members
Extension Methods

Fields

Entity

The selected Entity.

public Entity Entity

Field Value

Entity

Face

the facing of the entity.

public BlockFacing Face

Field Value

BlockFacing

HitPosition

The hit position of the entity.

public Vec3d HitPosition

Field Value

Vec3d

Position

The position of the selected entity.

public Vec3d Position

Field Value

Vec3d

SelectionBoxIndex

Which selection box was aimed at. The index corresponds to the array returned by Block.GetSelectionBoxes()

public int SelectionBoxIndex

Field Value

int

Methods

Clone()

public EntitySelection Clone()

Returns

EntitySelection