Class BusinessProductAddEvent

java.lang.Object
org.bukkit.event.Event
us.teaminceptus.novaconomy.api.events.business.BusinessEvent
us.teaminceptus.novaconomy.api.events.business.BusinessProductAddEvent
All Implemented Interfaces:
Cancellable

public class BusinessProductAddEvent extends BusinessEvent implements Cancellable
Called before a Business Product is created
  • Constructor Details

  • Method Details

    • getProduct

      @NotNull public @NotNull BusinessProduct getProduct()
      Fetches the BusinessProduct involved in this event.
      Returns:
      Product added
    • isCancelled

      public boolean isCancelled()
      Fetches if the product shouldn't be created.
      Specified by:
      isCancelled in interface Cancellable
      Returns:
      true if not created, else false
    • setCancelled

      public void setCancelled(boolean cancelled)
      Sets if the product shouldn't be created.
      Specified by:
      setCancelled in interface Cancellable
      Parameters:
      cancelled - true if not created, else false
    • setProduct

      public void setProduct(@NotNull @NotNull BusinessProduct product)
      Sets the Product to be added.
      Parameters:
      product - Product that will be added