Class ChangingSpread.Bounds

java.lang.Object
me.deecaad.weaponmechanics.weapon.shoot.spread.ChangingSpread.Bounds
All Implemented Interfaces:
me.deecaad.core.file.Serializer<ChangingSpread.Bounds>
Enclosing class:
ChangingSpread

public static class ChangingSpread.Bounds extends Object implements me.deecaad.core.file.Serializer<ChangingSpread.Bounds>
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for serializer
    Bounds(boolean resetAfterReachingBound, double min, double max)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    checkBounds(HandData handData, double startingAmount)
    Checks bounds of spread
    serialize(me.deecaad.core.file.SerializeData data)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface me.deecaad.core.file.Serializer

    canUsePathTo, getKeyword, getName, getParentKeywords, getWikiLink, letPassThrough, shouldSerialize, tryPathTo, useLater
  • Constructor Details

    • Bounds

      public Bounds()
      Default constructor for serializer
    • Bounds

      public Bounds(boolean resetAfterReachingBound, double min, double max)
  • Method Details

    • checkBounds

      public boolean checkBounds(HandData handData, double startingAmount)
      Checks bounds of spread
      Returns:
      whether the spread change was reset
    • serialize

      @NotNull public ChangingSpread.Bounds serialize(@NotNull me.deecaad.core.file.SerializeData data) throws me.deecaad.core.file.SerializerException
      Specified by:
      serialize in interface me.deecaad.core.file.Serializer<ChangingSpread.Bounds>
      Throws:
      me.deecaad.core.file.SerializerException