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.BlockThis method returns the main altar's blockBlockstatic org.bukkit.event.HandlerListorg.bukkit.event.HandlerListorg.bukkit.inventory.ItemStackgetItem()This method returns theItemStackthat would be dropped by theAncientAltarbooleanvoidsetCancelled(boolean cancel) voidsetItem(org.bukkit.inventory.ItemStack output) This 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
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- TheItemStackthat would be dropped by the ritualblock- The altarBlockplayer- ThePlayerthat 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 theItemStackthat would be dropped by theAncientAltar- Returns:
- the
ItemStackthat 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 theItemStackyou want to change the item to.
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
getHandlerList
@Nonnull public static org.bukkit.event.HandlerList getHandlerList() -
getHandlers
@Nonnull public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-