Package org.bukkit.event.block
Class EntityBlockFormEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.BlockGrowEvent
org.bukkit.event.block.BlockFormEvent
org.bukkit.event.block.EntityBlockFormEvent
- All Implemented Interfaces:
Cancellable
Called when a block is formed by entities.
Examples:
- Snow formed by a
Snowman
. - Frosted Ice formed by the Frost Walker enchantment.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.block.BlockEvent
block
-
Constructor Summary
ConstructorDescriptionEntityBlockFormEvent(@NotNull Entity entity, @NotNull Block block, @NotNull BlockState blockstate)
-
Method Summary
Methods inherited from class org.bukkit.event.block.BlockFormEvent
getHandlerList, getHandlers
Methods inherited from class org.bukkit.event.block.BlockGrowEvent
getNewState, isCancelled, setCancelled
Methods inherited from class org.bukkit.event.block.BlockEvent
getBlock
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
EntityBlockFormEvent
-
-
Method Details
-
getEntity
Get the entity that formed the block.- Returns:
- Entity involved in event
-