java.lang.Object
me.deecaad.weaponmechanics.weapon.projectile.weaponprojectile.Projectile
All Implemented Interfaces:
me.deecaad.core.file.Serializer<Projectile>

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

    Constructors
    Constructor
    Description
    Empty constructor to be used as serializer
    Projectile(ProjectileSettings projectileSettings, Sticky sticky, Through through, Bouncy bouncy, me.deecaad.core.mechanics.MechanicManager mechanics)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    create(org.bukkit.entity.LivingEntity shooter, org.bukkit.Location location, org.bukkit.util.Vector motion, org.bukkit.inventory.ItemStack weaponStack, String weaponTitle, org.bukkit.inventory.EquipmentSlot hand)
    Creates this projectile with given location and motion without shooting it
     
    serialize(me.deecaad.core.file.SerializeData data)
     
    shoot(WeaponProjectile projectile, org.bukkit.Location location)
    Shoots created projectile object
    shoot(org.bukkit.entity.LivingEntity shooter, org.bukkit.Location location, org.bukkit.util.Vector motion, org.bukkit.inventory.ItemStack weaponStack, String weaponTitle, org.bukkit.inventory.EquipmentSlot hand)
    Shoots this projectile with given location and motion

    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

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

    • Projectile

      public Projectile()
      Empty constructor to be used as serializer
    • Projectile

      public Projectile(ProjectileSettings projectileSettings, Sticky sticky, Through through, Bouncy bouncy, me.deecaad.core.mechanics.MechanicManager mechanics)
  • Method Details

    • shoot

      public WeaponProjectile shoot(org.bukkit.entity.LivingEntity shooter, org.bukkit.Location location, org.bukkit.util.Vector motion, org.bukkit.inventory.ItemStack weaponStack, String weaponTitle, org.bukkit.inventory.EquipmentSlot hand)
      Shoots this projectile with given location and motion
      Parameters:
      shooter - the living entity used to shoot
      location - the location from where to shoot
      motion - the motion of projectile
      weaponStack - the weapon stack used to shoot
      weaponTitle - the weapon title used to shoot
    • shoot

      public WeaponProjectile shoot(WeaponProjectile projectile, org.bukkit.Location location)
      Shoots created projectile object
      Parameters:
      projectile - the created projectile object
      location - the location containing pitch and yaw
    • create

      public WeaponProjectile create(org.bukkit.entity.LivingEntity shooter, org.bukkit.Location location, org.bukkit.util.Vector motion, org.bukkit.inventory.ItemStack weaponStack, String weaponTitle, org.bukkit.inventory.EquipmentSlot hand)
      Creates this projectile with given location and motion without shooting it
      Parameters:
      shooter - the living entity used to shoot
      location - the location from where to shoot
      motion - the motion of projectile
      weaponStack - the weapon stack used to shoot
      weaponTitle - the weapon title used to shoot
    • getKeyword

      @Nullable public String getKeyword()
      Specified by:
      getKeyword in interface me.deecaad.core.file.Serializer<Projectile>
    • canUsePathTo

      public boolean canUsePathTo()
      Specified by:
      canUsePathTo in interface me.deecaad.core.file.Serializer<Projectile>
    • serialize

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