public class BedExplodeEvent extends BlockEvent implements Cancellable
Constructor and Description |
---|
BedExplodeEvent(Block block,
float strength) |
Modifier and Type | Method and Description |
---|---|
void |
cancel(boolean cancelled) |
boolean |
isIgnored() |
void |
setStrength(float strength)
Set the strength of the explosion
|
float |
strength()
Get the strength of the explosion
|
block
public BedExplodeEvent(Block block, float strength)
block
- Block associated with this eventstrength
- Strength of the explosionpublic boolean isIgnored()
isIgnored
in interface Cancellable
public void cancel(boolean cancelled)
cancel
in interface Cancellable
cancelled
- set the cancellation state of the eventpublic float strength()
public void setStrength(float strength)
strength
- Float strength of explosionCopyright © 2016. All rights reserved.