Class AncientAltarCraftEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
io.github.thebusybiscuit.slimefun4.api.events.AncientAltarCraftEvent
- All Implemented Interfaces:
Cancellable
This
Event is fired before an item is dropped by an AncientAltar.
Cancelling this event will make the AncientAltar drop no item after the recipe is finished.- Author:
- Tweep
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the main altar's blockBlockstatic HandlerListgetItem()This method returns theItemStackthat would be dropped by theAncientAltarbooleanvoidsetCancelled(boolean cancel) voidThis method will change the item that would be dropped by theAncientAltarMethods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
Method Details
-
getAltarBlock
This method returns the main altar's blockBlock- Returns:
- the main altar's block
Block
-
getItem
This method returns theItemStackthat would be dropped by theAncientAltar- Returns:
- the
ItemStackthat would be dropped by theAncientAltar
-
setItem
This method will change the item that would be dropped by theAncientAltar- Parameters:
output- being theItemStackyou want to change the item to.
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceCancellable
-
getHandlerList
-
getHandlers
- Specified by:
getHandlersin classEvent
-