@@ -8,7 +8,7 @@ import org.bukkit.entity.Painting;
|
||||
* @author Tanel Suurhans
|
||||
*/
|
||||
|
||||
public class PaintingBreakByWorldEvent extends PaintingBreakEvent{
|
||||
public class PaintingBreakByWorldEvent extends PaintingBreakEvent {
|
||||
public PaintingBreakByWorldEvent(final Painting painting) {
|
||||
super(painting, RemoveCause.WORLD);
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ public class PaintingBreakEvent extends PaintingEvent implements Cancellable {
|
||||
this.cause = cause;
|
||||
}
|
||||
|
||||
public RemoveCause getCause(){
|
||||
public RemoveCause getCause() {
|
||||
return cause;
|
||||
}
|
||||
|
||||
@@ -41,12 +41,10 @@ public class PaintingBreakEvent extends PaintingEvent implements Cancellable {
|
||||
* Removed by an entity
|
||||
*/
|
||||
ENTITY,
|
||||
|
||||
/**
|
||||
* Removed by the world - block destroyed behind, water flowing over etc
|
||||
*/
|
||||
WORLD
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,5 +25,4 @@ public class PaintingEvent extends Event {
|
||||
public Painting getPainting() {
|
||||
return painting;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user