mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-11-29 05:36:04 +01:00
API
This commit is contained in:
parent
79edea132b
commit
4da1f41c15
@ -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
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user