Table of Contents

Interface IFarmlandBlockEntity

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll
public interface IFarmlandBlockEntity
Extension Methods

Properties

CropAttributes

ITreeAttribute CropAttributes { get; }

Property Value

ITreeAttribute

IsVisiblyMoist

bool IsVisiblyMoist { get; }

Property Value

bool

MoistureLevel

The farmlands moisture level

float MoistureLevel { get; }

Property Value

float

Nutrients

Farmland has 3 nutrient levels N, P and K located in this array in that order. Each nutrient level has a range of 0-100.

float[] Nutrients { get; }

Property Value

float[]

OriginalFertility

The fertility the soil will recover to (the soil from which the farmland was made of)

int[] OriginalFertility { get; }

Property Value

int[]

Pos

The position of the farmland

BlockPos Pos { get; }

Property Value

BlockPos

TotalHoursFertilityCheck

The last time fertility increase was checked

double TotalHoursFertilityCheck { get; }

Property Value

double

TotalHoursForNextStage

Total game hours from where on it can enter the next growth stage

double TotalHoursForNextStage { get; }

Property Value

double

UpPos

The position directly above the farmland

BlockPos UpPos { get; }

Property Value

BlockPos