Class RecoilProfile

java.lang.Object
me.deecaad.weaponmechanics.weapon.shoot.recoil.RecoilProfile
All Implemented Interfaces:
me.deecaad.core.file.Serializer<RecoilProfile>

public class RecoilProfile extends Object implements me.deecaad.core.file.Serializer<RecoilProfile>
Holds data for a recoil system with advanced AAA-like parameters.
  • 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

      @Nullable public String getKeyword()
      Specified by:
      getKeyword in interface me.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:
      serialize in interface me.deecaad.core.file.Serializer<RecoilProfile>
      Throws:
      me.deecaad.core.file.SerializerException