Added painting events (thanks verrier and tanelsuurhans)

This commit is contained in:
Stephen
2011-04-11 23:06:34 -04:00
committed by Erik Broes
parent 51731221d0
commit a6c61782ac
8 changed files with 232 additions and 2 deletions

View File

@@ -0,0 +1,29 @@
package org.bukkit.event.painting;
import org.bukkit.entity.Painting;
import org.bukkit.event.Event;
/**
* Represents a painting-related event.
*
* @author Tanel Suurhans
*/
public class PaintingEvent extends Event {
protected Painting painting;
protected PaintingEvent(final Type type, final Painting painting) {
super(type);
this.painting = painting;
}
/**
* Get the painting.
*
* @return the painting
*/
public Painting getPainting() {
return painting;
}
}