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

public class Spread extends Object implements me.deecaad.core.file.Serializer<Spread>
  • Constructor Details

  • Method Details

    • getSpreadImage

      public SpreadImage getSpreadImage()
    • getBaseSpread

      public double getBaseSpread()
    • getModifySpreadWhen

      public ModifySpreadWhen getModifySpreadWhen()
    • getChangingSpread

      public ChangingSpread getChangingSpread()
    • getNormalizedSpreadDirection

      public org.bukkit.util.Vector getNormalizedSpreadDirection(EntityWrapper entityWrapper, org.bukkit.Location shootLocation, boolean mainHand, boolean updateSpreadChange)
      Returns normalized spread direction
      Parameters:
      entityWrapper - the entity involved
      shootLocation - the shoot location
      mainHand - whether or not main hand was used
      updateSpreadChange - whether or not to allow updating current spread change
      Returns:
      the normalized spread direction
    • getNormalizedSpreadDirection

      public org.bukkit.util.Vector getNormalizedSpreadDirection(EntityWrapper entityWrapper, org.bukkit.Location shootLocation, boolean mainHand, boolean updateSpreadChange, double spread)
      Returns normalized spread direction
      Parameters:
      entityWrapper - the entity involved
      shootLocation - the shoot location
      mainHand - whether or not main hand was used
      updateSpreadChange - whether or not to allow updating current spread change
      spread - the spread
      Returns:
      the normalized spread direction
    • getKeyword

      public String getKeyword()
      Specified by:
      getKeyword in interface me.deecaad.core.file.Serializer<Spread>
    • serialize

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