Class Projectile
java.lang.Object
me.deecaad.weaponmechanics.weapon.projectile.weaponprojectile.Projectile
- All Implemented Interfaces:
me.deecaad.core.file.Serializer<Projectile>
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor to be used as serializerProjectile(ProjectileSettings projectileSettings, Sticky sticky, Through through, Bouncy bouncy, me.deecaad.core.mechanics.Mechanics mechanics) -
Method Summary
Modifier and TypeMethodDescriptioncreate(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@NotNull Projectileserialize(@NotNull me.deecaad.core.file.SerializeData data) shoot(WeaponProjectile projectile, org.bukkit.Location location) Shoots created projectile objectshoot(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 motionMethods 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
-
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.Mechanics 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 shootlocation- the location from where to shootmotion- the motion of projectileweaponStack- the weapon stack used to shootweaponTitle- the weapon title used to shoot
-
shoot
Shoots created projectile object- Parameters:
projectile- the created projectile objectlocation- 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 shootlocation- the location from where to shootmotion- the motion of projectileweaponStack- the weapon stack used to shootweaponTitle- the weapon title used to shoot
-
getKeyword
- Specified by:
getKeywordin interfaceme.deecaad.core.file.Serializer<Projectile>
-
serialize
@NotNull public @NotNull Projectile serialize(@NotNull @NotNull me.deecaad.core.file.SerializeData data) throws me.deecaad.core.file.SerializerException - Specified by:
serializein interfaceme.deecaad.core.file.Serializer<Projectile>- Throws:
me.deecaad.core.file.SerializerException
-