diff --git a/src/main/java/net/momirealms/customcrops/api/event/SprinklerFillEvent.java b/src/main/java/net/momirealms/customcrops/api/event/SprinklerFillEvent.java deleted file mode 100644 index f57779e..0000000 --- a/src/main/java/net/momirealms/customcrops/api/event/SprinklerFillEvent.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) <2022> - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -package net.momirealms.customcrops.api.event; - -import org.bukkit.entity.Player; -import org.bukkit.event.Cancellable; -import org.bukkit.event.HandlerList; -import org.bukkit.event.player.PlayerEvent; -import org.bukkit.inventory.ItemStack; -import org.jetbrains.annotations.NotNull; - -public class SprinklerFillEvent extends PlayerEvent implements Cancellable { - - private static final HandlerList handlers = new HandlerList(); - private boolean cancelled; - private final ItemStack itemStack; - - public SprinklerFillEvent(@NotNull Player who, ItemStack itemStack) { - super(who); - this.cancelled = false; - this.itemStack = itemStack; - } - - @Override - public boolean isCancelled() { - return cancelled; - } - - @Override - public void setCancelled(boolean cancel) { - this.cancelled = cancel; - } - - @NotNull - public static HandlerList getHandlerList() { - return handlers; - } - - @NotNull - @Override - public HandlerList getHandlers() { - return getHandlerList(); - } - - /** - * Get the itemStack player used to add water - * @return itemStack - */ - public ItemStack getItemStack() { - return itemStack; - } -} diff --git a/src/main/java/net/momirealms/customcrops/api/event/WaterEvent.java b/src/main/java/net/momirealms/customcrops/api/event/WaterEvent.java deleted file mode 100644 index d88e3cd..0000000 --- a/src/main/java/net/momirealms/customcrops/api/event/WaterEvent.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) <2022> - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -package net.momirealms.customcrops.api.event; - -import org.bukkit.entity.Player; -import org.bukkit.event.Cancellable; -import org.bukkit.event.HandlerList; -import org.bukkit.event.player.PlayerEvent; -import org.bukkit.inventory.ItemStack; -import org.jetbrains.annotations.NotNull; - -public class WaterEvent extends PlayerEvent implements Cancellable { - - private static final HandlerList handlers = new HandlerList(); - private boolean cancelled; - private ItemStack itemStack; - - public WaterEvent(@NotNull Player who, ItemStack itemStack) { - super(who); - this.cancelled = false; - this.itemStack = itemStack; - } - - @Override - public boolean isCancelled() { - return cancelled; - } - - @Override - public void setCancelled(boolean cancel) { - this.cancelled = cancel; - } - - @NotNull - public static HandlerList getHandlerList() { - return handlers; - } - - @NotNull - @Override - public HandlerList getHandlers() { - return getHandlerList(); - } - - /** - * Get the item player use - * @return itemStack - */ - public ItemStack getItemStack() { - return itemStack; - } - - public void setItemStack(ItemStack itemStack) { - this.itemStack = itemStack; - } -}