Class SwimmingParameters
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.species.parameters.swimming.SwimmingParameters
Represents the parameters for an entities' swimming movement invalid input: '&' AI invalid input: '&' animation
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor providing the default valuesSwimmingParameters(int depthMin, int depthMax, double swimSpeed, double decayRate, int refreshRate, boolean shouldSink) Constructor taking all potential values that can be changed -
Method Summary
Modifier and TypeMethodDescriptionbooleanfloatGets the decay rateintGets the depth rate end valueintGets the depth range start valueintGets the refresh ratefloatGets the swim speedboolean
-
Constructor Details
-
SwimmingParameters
public SwimmingParameters(int depthMin, int depthMax, double swimSpeed, double decayRate, int refreshRate, boolean shouldSink) Constructor taking all potential values that can be changed- Parameters:
depthMin- The minimum depth at which swimming can be donedepthMax- The maximum depth at which swimming can be doneswimSpeed- The speed at which swimming occursdecayRate- The decay rate of swimmingrefreshRate- The refresh rate of swimming
-
SwimmingParameters
public SwimmingParameters()Constructor providing the default values
-
-
Method Details
-
getDepthRangeStart
public int getDepthRangeStart()Gets the depth range start value- Returns:
- The depth range start
-
getDepthRangeEnd
public int getDepthRangeEnd()Gets the depth rate end value- Returns:
- The depth range end
-
getSwimSpeed
public float getSwimSpeed()Gets the swim speed- Returns:
- Swim speed
-
getDecayRate
public float getDecayRate()Gets the decay rate- Returns:
- The rate of decay
-
getRefreshRate
public int getRefreshRate()Gets the refresh rate- Returns:
- Refresh rate
-
isShouldSink
public boolean isShouldSink() -
equals
-