1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

[Ci skip] A small change

This commit is contained in:
TheBusyBiscuit 2020-09-13 11:38:04 +02:00
parent 8838ab0963
commit 7b10410a70

View File

@ -1,13 +1,14 @@
package io.github.thebusybiscuit.slimefun4.api.events; package io.github.thebusybiscuit.slimefun4.api.events;
import me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer; import javax.annotation.Nonnull;
import me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.MachineRecipe; import javax.annotation.ParametersAreNonnullByDefault;
import org.bukkit.block.Block; import org.bukkit.block.Block;
import org.bukkit.event.Event; import org.bukkit.event.Event;
import org.bukkit.event.HandlerList; import org.bukkit.event.HandlerList;
import javax.annotation.Nonnull; import me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer;
import javax.annotation.ParametersAreNonnullByDefault; import me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.MachineRecipe;
/** /**
* This {@link Event} is fired whenever an {@link AContainer} has completed its process. * This {@link Event} is fired whenever an {@link AContainer} has completed its process.
@ -17,7 +18,7 @@ import javax.annotation.ParametersAreNonnullByDefault;
*/ */
public class AsyncMachineProcessCompleteEvent extends Event { public class AsyncMachineProcessCompleteEvent extends Event {
private static final HandlerList handlerList = new HandlerList(); private static final HandlerList handlers = new HandlerList();
private final Block block; private final Block block;
private final MachineRecipe machineRecipe; private final MachineRecipe machineRecipe;
@ -52,12 +53,12 @@ public class AsyncMachineProcessCompleteEvent extends Event {
@Nonnull @Nonnull
public static HandlerList getHandlerList() { public static HandlerList getHandlerList() {
return handlerList; return handlers;
} }
@Nonnull @Nonnull
@Override @Override
public HandlerList getHandlers() { public HandlerList getHandlers() {
return handlerList; return getHandlerList();
} }
} }