Class AncientAltarCraftEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
io.github.thebusybiscuit.slimefun4.api.events.AncientAltarCraftEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class AncientAltarCraftEvent
extends org.bukkit.event.player.PlayerEvent
implements org.bukkit.event.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
org.bukkit.event.Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
-
Constructor Summary
ConstructorsConstructorDescriptionAncientAltarCraftEvent
(org.bukkit.inventory.ItemStack output, org.bukkit.block.Block block, org.bukkit.entity.Player player) -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.block.Block
This method returns the main altar's blockBlock
static org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.inventory.ItemStack
getItem()
This method returns theItemStack
that would be dropped by theAncientAltar
boolean
void
setCancelled
(boolean cancel) void
setItem
(org.bukkit.inventory.ItemStack output) 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
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
AncientAltarCraftEvent
@ParametersAreNonnullByDefault public AncientAltarCraftEvent(org.bukkit.inventory.ItemStack output, org.bukkit.block.Block block, org.bukkit.entity.Player player) - Parameters:
output
- TheItemStack
that would be dropped by the ritualblock
- The altarBlock
player
- ThePlayer
that started the ritual.
-
-
Method Details
-
getAltarBlock
@Nonnull public org.bukkit.block.Block getAltarBlock()This method returns the main altar's blockBlock
- Returns:
- the main altar's block
Block
-
getItem
@Nonnull public org.bukkit.inventory.ItemStack getItem()This method returns theItemStack
that would be dropped by theAncientAltar
- Returns:
- the
ItemStack
that would be dropped by theAncientAltar
-
setItem
public void setItem(org.bukkit.inventory.ItemStack output) 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 interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
getHandlerList
@Nonnull public static org.bukkit.event.HandlerList getHandlerList() -
getHandlers
@Nonnull public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-