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
-
Method Summary
Modifier and TypeMethodDescriptionThis method returns the main altar's blockBlock
static HandlerList
getItem()
This method returns theItemStack
that would be dropped by theAncientAltar
boolean
void
setCancelled
(boolean cancel) void
This method will change the item that would be dropped by theAncientAltar
Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods 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 theItemStack
that would be dropped by theAncientAltar
- Returns:
- the
ItemStack
that would be dropped by theAncientAltar
-
setItem
This method will change the item that would be dropped by theAncientAltar
- Parameters:
output
- being theItemStack
you want to change the item to.
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceCancellable
-
getHandlerList
-
getHandlers
- Specified by:
getHandlers
in classEvent
-