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
Called when a player opens a trading menu.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumMachine type that originated the event.Nested classes/interfaces inherited from class Event
Event.Result -
Method Summary
Modifier and TypeMethodDescriptionReturns the namespaced ID of the item which is being used as a trade machine.Returns the trade machine permission.Gets the merchant recipes list which can be edited for this particular event.getTitle()Returns the trade machine title.voidsetRecipes(List<MerchantRecipe> recipes) Replace the merchant recipes.Methods inherited from class PlayerEvent
getPlayerMethods inherited from class Event
callEvent, getEventName, getHandlers, isAsynchronous
-
Method Details
-
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
-
getPermission
Returns the trade machine permission.- Returns:
- the trade machine permission.
-
getRecipes
Gets the merchant recipes list which can be edited for this particular event.- Returns:
- the merchant recipes list.
-
setRecipes
Replace the merchant recipes.- Parameters:
recipes- the new recipes.
-