+
+
+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
+
+
+public class AncientAltarCraftEvent +extends PlayerEvent +implements Cancellable
+This+Event
is fired before an item is dropped by anAncientAltar
. + Cancelling this event will make theAncientAltar
drop no item after the recipe is finished.-
+
- Author: +
- Tweep +
- See Also: +
AncientAltar
, +AncientAltarTask
, +AncientAltarListener
+
+
+
+-
+
-
+
+
+ + +-
+
-
+
+
+
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 ++ +Constructor +Description ++ + +AncientAltarCraftEvent(ItemStack output, + Block block, + Player player)
+
+ +-
+
-
+
+
+
Method Summary
++
+All Methods Static Methods Instance Methods Concrete Methods ++ +Modifier and Type +Method +Description ++ + +Block
+getAltarBlock()
+ +This method returns the main altar's block+Block
+ + +static HandlerList
+getHandlerList()
+ + +HandlerList
+getHandlers()
+ + +ItemStack
+getItem()
+ +This method returns the+ItemStack
that would be dropped by theAncientAltar
+ + +boolean
+isCancelled()
+ + +void
+setCancelled(boolean cancel)
+ + +void
+setItem(ItemStack output)
+ +This method will change the item that would be dropped by the+AncientAltar
-
+
-
+
+
+
Methods inherited from class org.bukkit.event.Event
+getEventName, isAsynchronous
+
-
+
-
+
+
+
Methods inherited from class java.lang.Object
+clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+
-
+
-
+
+
+
Methods inherited from class org.bukkit.event.player.PlayerEvent
+getPlayer
+
+ -
+
+
+
+ -
+
+
+
+
+-
+
-
+
+
+ + + ++ +-
+
-
+
+
+
Method Detail
+ + + +-
+
-
+
getHandlerList
+public static HandlerList getHandlerList()
+
+
-
+
-
+
getHandlers
+public HandlerList getHandlers()
+-
+
- Specified by: +
getHandlers
in classEvent
+
+
-
+
-
+
getAltarBlock
+public Block getAltarBlock()
+This method returns the main altar's block+Block
-
+
- Returns: +
- the main altar's block
Block
+
+
-
+
-
+
getItem
+public ItemStack getItem()
+This method returns the+ItemStack
that would be dropped by theAncientAltar
-
+
- Returns: +
- the
ItemStack
that would be dropped by theAncientAltar
+
+
-
+
-
+
setItem
+public void setItem(ItemStack output)
+This method will change the item that would be dropped by the+AncientAltar
-
+
- 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
+
+
+ -
+
+ -
+
+
+