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 MaterialgetChangedType()Gets the type of block that changed, causing this eventintgetChangedTypeId()Deprecated.Magic valuestatic HandlerListgetHandlerList()HandlerListgetHandlers()booleanisCancelled()Gets the cancellation state of this event.voidsetCancelled(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:CancellableGets 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:
isCancelledin interfaceCancellable- Returns:
- true if this event is cancelled
-
setCancelled
public void setCancelled(boolean cancel)Description copied from interface:CancellableSets 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:
setCancelledin interfaceCancellable- Parameters:
cancel- true if you wish to cancel this event
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-