mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 12:29:04 +00:00
Started api and events
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package com.dre.brewery.api.events.barrel;
|
||||
|
||||
import com.dre.brewery.Barrel;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.bukkit.inventory.Inventory;
|
||||
|
||||
public abstract class BarrelEvent extends Event {
|
||||
protected final Barrel barrel;
|
||||
|
||||
public BarrelEvent(Barrel barrel) {
|
||||
this.barrel = barrel;
|
||||
}
|
||||
|
||||
public Barrel getBarrel() {
|
||||
return barrel;
|
||||
}
|
||||
|
||||
public Inventory getInventory() {
|
||||
return barrel.getInventory();
|
||||
}
|
||||
|
||||
public Block getSpigot() {
|
||||
return barrel.getSpigot();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user