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
|
blockpublic BedExplodeEvent(Block block, float strength)
block - Block associated with this eventstrength - Strength of the explosionpublic boolean isIgnored()
isIgnored in interface Cancellablepublic void cancel(boolean cancelled)
cancel in interface Cancellablecancelled - set the cancellation state of the eventpublic float strength()
public void setStrength(float strength)
strength - Float strength of explosionCopyright © 2016. All rights reserved.