Mineplex/GOD DAMN COSMETICS/gadget/event/GadgetBlockEvent.java
Daniel Waggner 38a20f98c2 Removed Files
These two directories contain code that was removed from the src and dependencies of the compiled files. They were removed due to being either a. unnecessary or b. a royal pain in my booty.
2021-05-23 18:13:37 -07:00

59 lines
1.1 KiB
Java

package mineplex.core.gadget.event;
import java.util.Collection;
import org.bukkit.block.Block;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import mineplex.core.gadget.types.Gadget;
public class GadgetBlockEvent extends Event implements Cancellable
{
private static final HandlerList HANDLER_LIST = new HandlerList();
private final Gadget _gadget;
private final Collection<Block> _blocks;
private boolean _cancelled;
public GadgetBlockEvent(Gadget gadget, Collection<Block> blocks)
{
_gadget = gadget;
_blocks = blocks;
}
public HandlerList getHandlers()
{
return HANDLER_LIST;
}
public static HandlerList getHandlerList()
{
return HANDLER_LIST;
}
public Gadget getGadget()
{
return _gadget;
}
public Collection<Block> getBlocks()
{
return _blocks;
}
@Override
public void setCancelled(boolean cancel)
{
_cancelled = cancel;
}
@Override
public boolean isCancelled()
{
return _cancelled;
}
}