Class ProjectileLaunchCalculationEvent

java.lang.Object
org.bukkit.event.Event
com.mineplex.studio.events.ProjectileLaunchCalculationEvent

public class ProjectileLaunchCalculationEvent extends Event
  • Constructor Details

    • ProjectileLaunchCalculationEvent

      public ProjectileLaunchCalculationEvent(@NotNull @NotNull Projectile projectile, float pitch, float yaw, float roll, float speed, float divergence, boolean postShootVelocityModification)
  • Method Details

    • getHandlerList

      @NotNull public static @NotNull HandlerList getHandlerList()
    • getShooter

      @Nullable public @Nullable ProjectileSource getShooter()
    • getHandlers

      @NotNull public @NotNull HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getProjectile

      @NotNull public @NotNull Projectile getProjectile()
    • getPitch

      public float getPitch()
    • getYaw

      public float getYaw()
    • getRoll

      public float getRoll()
    • getSpeed

      public float getSpeed()
    • getDivergence

      public float getDivergence()
    • isPostShootVelocityModification

      public boolean isPostShootVelocityModification()
    • getPostShootVelocitySupplier

      @NotNull public @NotNull Supplier<Vector> getPostShootVelocitySupplier()
    • setPitch

      public void setPitch(float pitch)
    • setYaw

      public void setYaw(float yaw)
    • setRoll

      public void setRoll(float roll)
    • setSpeed

      public void setSpeed(float speed)
    • setDivergence

      public void setDivergence(float divergence)
    • setPostShootVelocityModification

      public void setPostShootVelocityModification(boolean postShootVelocityModification)
    • setPostShootVelocitySupplier

      public void setPostShootVelocitySupplier(@NotNull @NotNull Supplier<Vector> postShootVelocitySupplier)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object