Class WeatherPeriod.WeatherStage
java.lang.Object
zombie.iso.weather.WeatherPeriod.WeatherStage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected float
protected float
protected float
protected boolean
protected boolean
protected WeatherPeriod.StrLerpVal
protected WeatherPeriod.StrLerpVal
protected float
protected String
protected WeatherPeriod.WeatherStage
protected float
protected WeatherPeriod.WeatherStage
protected int
protected float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
float
getModID()
float
float
double
double
int
double
void
lerpEntryTo
(int mid, int end) protected void
lerpEntryTo
(WeatherPeriod.StrLerpVal strLerpVal) protected void
lerpEntryTo
(WeatherPeriod.StrLerpVal strLerpVal0, WeatherPeriod.StrLerpVal strLerpVal1) void
load
(DataInputStream input, int worldVersion) protected WeatherPeriod.WeatherStage
overrideStageDuration
(double double0) protected void
reset()
void
save
(DataOutputStream output) void
setHasStartedCloud
(boolean b) protected WeatherPeriod.WeatherStage
setStageDuration
(double double0) void
setStageID
(int id) protected double
setStageStart
(double double0) void
setTargetStrength
(float t) protected WeatherPeriod.WeatherStage
startStage
(double double0)
-
Field Details
-
previousStage
-
nextStage
-
stageID
protected int stageID -
entryStrength
protected float entryStrength -
exitStrength
protected float exitStrength -
targetStrength
protected float targetStrength -
lerpMidVal
-
lerpEndVal
-
hasStartedCloud
protected boolean hasStartedCloud -
fogStrength
protected float fogStrength -
linearT
protected float linearT -
parabolicT
protected float parabolicT -
isCycleFirstHalf
protected boolean isCycleFirstHalf -
creationFinished
protected boolean creationFinished -
modID
-
-
Constructor Details
-
WeatherStage
public WeatherStage() -
WeatherStage
public WeatherStage(int id)
-
-
Method Details
-
setStageID
public void setStageID(int id) -
getStageStart
public double getStageStart() -
getStageEnd
public double getStageEnd() -
getStageDuration
public double getStageDuration() -
getStageID
public int getStageID() -
getModID
-
getLinearT
public float getLinearT() -
getParabolicT
public float getParabolicT() -
setTargetStrength
public void setTargetStrength(float t) -
getHasStartedCloud
public boolean getHasStartedCloud() -
setHasStartedCloud
public void setHasStartedCloud(boolean b) -
save
- Throws:
IOException
-
load
- Throws:
IOException
-
reset
protected void reset() -
startStage
-
setStageStart
protected double setStageStart(double double0) -
setStageDuration
-
overrideStageDuration
-
lerpEntryTo
public void lerpEntryTo(int mid, int end) -
lerpEntryTo
-
lerpEntryTo
protected void lerpEntryTo(WeatherPeriod.StrLerpVal strLerpVal0, WeatherPeriod.StrLerpVal strLerpVal1) -
getStageCurrentStrength
public float getStageCurrentStrength()
-