C# 클래스 Vintagestory.GameContent.FruitData

파일 보기 프로젝트 열기: anegostudios/vssurvivalmod 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
behavior BEBehaviorFruiting
currentStage int
rotation Vec3f
transitionDate double
variant int

공개 메소드들

메소드 설명
FruitData ( int variant, double totalDays, BEBehaviorFruiting be, Vec3f rot ) : System

비공개 메소드들

메소드 설명
SetRandomRotation ( IWorldAccessor world, int index, Vec3d vec3d, BlockPos pos ) : void

메소드 상세

FruitData() 공개 메소드

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

프로퍼티 상세

behavior 공개적으로 프로퍼티

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

currentStage 공개적으로 프로퍼티

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

rotation 공개적으로 프로퍼티

The random rotation of this individual fruit
public Vec3f rotation
리턴 Vec3f

transitionDate 공개적으로 프로퍼티

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

variant 공개적으로 프로퍼티

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
리턴 int