Class RecoilProfile
java.lang.Object
me.deecaad.weaponmechanics.weapon.shoot.recoil.RecoilProfile
- All Implemented Interfaces:
me.deecaad.core.file.Serializer<RecoilProfile>
Holds data for a recoil system with advanced AAA-like parameters.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for serializer.RecoilProfile(float recoilMeanX, float recoilMeanY, float recoilVarianceX, float recoilVarianceY, float recoilSpeed, float damping, float dampingRecovery, float smoothingFactor, float maxRecoilAccum, float recoveryPercentage) -
Method Summary
Modifier and TypeMethodDescriptionfloatfloatfloatfloatfloatfloatfloatfloatfloatfloatserialize(me.deecaad.core.file.SerializeData data) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.deecaad.core.file.Serializer
canUsePathTo, getName, getParentKeywords, getWikiLink, letPassThrough, shouldSerialize, tryPathTo, useLater
-
Constructor Details
-
RecoilProfile
public RecoilProfile()Default constructor for serializer. -
RecoilProfile
public RecoilProfile(float recoilMeanX, float recoilMeanY, float recoilVarianceX, float recoilVarianceY, float recoilSpeed, float damping, float dampingRecovery, float smoothingFactor, float maxRecoilAccum, float recoveryPercentage)
-
-
Method Details
-
getRecoilMeanX
public float getRecoilMeanX() -
getRecoilMeanY
public float getRecoilMeanY() -
getRecoilVarianceX
public float getRecoilVarianceX() -
getRecoilVarianceY
public float getRecoilVarianceY() -
getRecoilSpeed
public float getRecoilSpeed() -
getDamping
public float getDamping() -
getDampingRecovery
public float getDampingRecovery() -
getSmoothingFactor
public float getSmoothingFactor() -
getMaxRecoilAccum
public float getMaxRecoilAccum() -
getRecoveryPercentage
public float getRecoveryPercentage() -
getKeyword
- Specified by:
getKeywordin interfaceme.deecaad.core.file.Serializer<RecoilProfile>
-
serialize
@NotNull public RecoilProfile serialize(@NotNull me.deecaad.core.file.SerializeData data) throws me.deecaad.core.file.SerializerException - Specified by:
serializein interfaceme.deecaad.core.file.Serializer<RecoilProfile>- Throws:
me.deecaad.core.file.SerializerException
-