Class PrePylonCraftEvent
-
- All Implemented Interfaces:
-
org.bukkit.event.Cancellable
public final class PrePylonCraftEvent<T extends PylonRecipe> extends Event implements Cancellable
Called when a crafting recipe is started
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
PrePylonCraftEvent.Companion
-
Field Summary
Fields Modifier and Type Field Description private final RecipeType<T>
type
private final T
recipe
private final PylonBlock
block
private final Player
player
public final static PrePylonCraftEvent.Companion
Companion
-
Constructor Summary
Constructors Constructor Description PrePylonCraftEvent(RecipeType<T> type, T recipe, PylonBlock block, Player player)
PrePylonCraftEvent(RecipeType<T> type, T recipe, PylonBlock block)
PrePylonCraftEvent(RecipeType<T> type, T recipe)
-
Method Summary
Modifier and Type Method Description final RecipeType<T>
getType()
final T
getRecipe()
final PylonBlock
getBlock()
final Player
getPlayer()
Boolean
isCancelled()
Unit
setCancelled(Boolean cancel)
HandlerList
getHandlers()
-
-
Constructor Detail
-
PrePylonCraftEvent
PrePylonCraftEvent(RecipeType<T> type, T recipe, PylonBlock block, Player player)
-
PrePylonCraftEvent
PrePylonCraftEvent(RecipeType<T> type, T recipe, PylonBlock block)
-
PrePylonCraftEvent
PrePylonCraftEvent(RecipeType<T> type, T recipe)
-
-
Method Detail
-
getType
final RecipeType<T> getType()
-
getBlock
final PylonBlock getBlock()
-
isCancelled
Boolean isCancelled()
-
setCancelled
Unit setCancelled(Boolean cancel)
-
getHandlers
HandlerList getHandlers()
-
-
-
-