Class SwimmingParameters
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.species.parameters.swimming.SwimmingParameters
Represents the parameters for an entities' swimming movement & AI & animation
-
Constructor Summary
ConstructorDescriptionConstructor 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 TypeMethodDescriptionboolean
float
Gets the decay rateint
Gets the depth rate end valueint
Gets the depth range start valueint
Gets the refresh ratefloat
Gets 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
-