This commit is contained in:
Brianna O'Keefe 2018-08-30 14:35:35 -04:00
parent 79edea132b
commit 4da1f41c15
2 changed files with 6 additions and 1 deletions

View File

@ -6,6 +6,8 @@ import com.songoda.epichoppers.api.hopper.levels.LevelManager;
import com.songoda.epichoppers.api.utils.ProtectionPluginHook;
import org.bukkit.inventory.ItemStack;
import java.util.function.Supplier;
/**
* The main API class for the EpicHoppers plugin. This class will provide various
* methods to access important features of the plugin's API. For static method
@ -32,6 +34,8 @@ public interface EpicHoppers {
*/
HopperManager getHopperManager();
void register(Supplier<ProtectionPluginHook> hookSupplier);
/**
* Register a new {@link ProtectionPluginHook} implementation
* in order for EpicSpawners to support plugins that protect

View File

@ -431,7 +431,8 @@ public class EpicHoppersPlugin extends JavaPlugin implements EpicHoppers {
return playerDataManager;
}
private void register(Supplier<ProtectionPluginHook> hookSupplier) {
@Override
public void register(Supplier<ProtectionPluginHook> hookSupplier) {
this.registerProtectionHook(hookSupplier.get());
}