C# Class Vintagestory.GameContent.FruitData

Exibir arquivo Open project: anegostudios/vssurvivalmod Class Usage Examples

Public Properties

Property Type Description
behavior BEBehaviorFruiting
currentStage int
rotation Vec3f
transitionDate double
variant int

Public Methods

Method Description
FruitData ( int variant, double totalDays, BEBehaviorFruiting be, Vec3f rot ) : System

Private Methods

Method Description
SetRandomRotation ( IWorldAccessor world, int index, Vec3d vec3d, BlockPos pos ) : void

Method Details

FruitData() public method

public FruitData ( int variant, double totalDays, BEBehaviorFruiting be, Vec3f rot ) : System
variant int
totalDays double
be BEBehaviorFruiting
rot Vec3f
return System

Property Details

behavior public_oe property

This BEBehavior - used by the renderer to get the current lightRGBA at this position
public BEBehaviorFruiting,Vintagestory.GameContent behavior
return BEBehaviorFruiting

currentStage public_oe property

0 for the nub (no fruit grown yet), or the current stage e.g. 1-5
public int currentStage
return int

rotation public_oe property

The random rotation of this individual fruit
public Vec3f rotation
return Vec3f

transitionDate public_oe property

The date (w.r.t. Calendar.TotalDays) when this fruit will transition to the next stage
public double transitionDate
return double

variant public_oe property

The variant of the currently rendered fruit item (on-tree shape). -1 indicates a fruit which has already been picked or dropped
public int variant
return int