Class TradeMachineEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
dev.lone.itemsadder.api.Events.TradeMachineEvent
Direct Known Subclasses:
TradeMachineOpenEvent, TradeMachinePreOpenEvent

public abstract class TradeMachineEvent extends PlayerEvent
Called when a player opens a trading menu.
  • Method Details

    • getNamespacedID

      public String getNamespacedID()
      Returns the namespaced ID of the item which is being used as a trade machine.
      Returns:
      the namespaced ID of the item which is being used as a trade machine.
    • getTitle

      public String getTitle()
      Returns the trade machine title.
      Returns:
      the trade machine title.
    • getPermission

      public String getPermission()
      Returns the trade machine permission.
      Returns:
      the trade machine permission.
    • getRecipes

      public List<MerchantRecipe> getRecipes()
      Gets the merchant recipes list which can be edited for this particular event.
      Returns:
      the merchant recipes list.
    • setRecipes

      public void setRecipes(List<MerchantRecipe> recipes)
      Replace the merchant recipes.
      Parameters:
      recipes - the new recipes.