mirror of
https://github.com/songoda/EpicHoppers.git
synced 2025-02-18 04:41:29 +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 com.songoda.epichoppers.api.utils.ProtectionPluginHook;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
|
import java.util.function.Supplier;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The main API class for the EpicHoppers plugin. This class will provide various
|
* 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
|
* methods to access important features of the plugin's API. For static method
|
||||||
@ -32,6 +34,8 @@ public interface EpicHoppers {
|
|||||||
*/
|
*/
|
||||||
HopperManager getHopperManager();
|
HopperManager getHopperManager();
|
||||||
|
|
||||||
|
void register(Supplier<ProtectionPluginHook> hookSupplier);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register a new {@link ProtectionPluginHook} implementation
|
* Register a new {@link ProtectionPluginHook} implementation
|
||||||
* in order for EpicSpawners to support plugins that protect
|
* in order for EpicSpawners to support plugins that protect
|
||||||
|
@ -431,7 +431,8 @@ public class EpicHoppersPlugin extends JavaPlugin implements EpicHoppers {
|
|||||||
return playerDataManager;
|
return playerDataManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void register(Supplier<ProtectionPluginHook> hookSupplier) {
|
@Override
|
||||||
|
public void register(Supplier<ProtectionPluginHook> hookSupplier) {
|
||||||
this.registerProtectionHook(hookSupplier.get());
|
this.registerProtectionHook(hookSupplier.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user