Package org.bukkit.event.block
Class BlockPhysicsEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.BlockPhysicsEvent
- All Implemented Interfaces:
Cancellable
public class BlockPhysicsEvent extends BlockEvent implements Cancellable
Thrown when a block physics check is called
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description BlockPhysicsEvent(Block block, int changed)
Deprecated.Magic value -
Method Summary
Modifier and Type Method Description Material
getChangedType()
Gets the type of block that changed, causing this eventint
getChangedTypeId()
Deprecated.Magic valuestatic HandlerList
getHandlerList()
HandlerList
getHandlers()
boolean
isCancelled()
Gets the cancellation state of this event.void
setCancelled(boolean cancel)
Sets the cancellation state of this event.
-
Constructor Details
-
BlockPhysicsEvent
Deprecated.Magic value- Parameters:
block
- the block involved in this eventchanged
- the changed block's type id
-
-
Method Details
-
getChangedTypeId
@Deprecated public int getChangedTypeId()Deprecated.Magic valueGets the type of block that changed, causing this event- Returns:
- Changed block's type id
-
getChangedType
Gets the type of block that changed, causing this event- Returns:
- Changed block's type
-
isCancelled
public boolean isCancelled()Description copied from interface:Cancellable
Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins- Specified by:
isCancelled
in interfaceCancellable
- Returns:
- true if this event is cancelled
-
setCancelled
public void setCancelled(boolean cancel)Description copied from interface:Cancellable
Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.- Specified by:
setCancelled
in interfaceCancellable
- Parameters:
cancel
- true if you wish to cancel this event
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-