ChestShop-3/com/Acrobot/ChestShop/Events/ShopCreatedEvent.java

54 lines
1.1 KiB
Java
Raw Normal View History

package com.Acrobot.ChestShop.Events;
import org.bukkit.block.Chest;
import org.bukkit.block.Sign;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import javax.annotation.Nullable;
/**
* @author Acrobot
*/
public class ShopCreatedEvent extends Event {
private static final HandlerList handlers = new HandlerList();
2013-01-15 21:33:00 +01:00
private final Player creator;
2013-01-15 21:33:00 +01:00
private final Sign sign;
private final String[] signLines;
@Nullable private final Chest chest;
2013-01-15 21:33:00 +01:00
public ShopCreatedEvent(Player creator, Sign sign, @Nullable Chest chest, String[] signLines) {
this.creator = creator;
this.sign = sign;
this.chest = chest;
this.signLines = signLines.clone();
}
public String[] getSignLines() {
return signLines;
}
public Player getPlayer() {
2013-01-15 21:33:00 +01:00
return creator;
}
public Sign getSign() {
return sign;
}
@Nullable public Chest getChest() {
return chest;
}
public HandlerList getHandlers() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
}