mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
chore: added method description
This commit is contained in:
parent
9919549c7e
commit
e88cffde8c
@ -18,6 +18,13 @@ import io.github.thebusybiscuit.slimefun4.api.events.ReactorExplodeEvent;
|
|||||||
import io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin;
|
import io.github.thebusybiscuit.slimefun4.implementation.SlimefunPlugin;
|
||||||
import net.imprex.orebfuscator.api.OrebfuscatorService;
|
import net.imprex.orebfuscator.api.OrebfuscatorService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This handles block breaks with orebfuscator
|
||||||
|
*
|
||||||
|
* @author NgLoader
|
||||||
|
*
|
||||||
|
*/
|
||||||
public class OrebfuscatorIntegration implements Listener {
|
public class OrebfuscatorIntegration implements Listener {
|
||||||
|
|
||||||
private final SlimefunPlugin plugin;
|
private final SlimefunPlugin plugin;
|
||||||
@ -27,6 +34,9 @@ public class OrebfuscatorIntegration implements Listener {
|
|||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Init orebfuscation service and register listener
|
||||||
|
*/
|
||||||
public void register() {
|
public void register() {
|
||||||
RegisteredServiceProvider<OrebfuscatorService> provider = Bukkit.getServer().getServicesManager().getRegistration(OrebfuscatorService.class);
|
RegisteredServiceProvider<OrebfuscatorService> provider = Bukkit.getServer().getServicesManager().getRegistration(OrebfuscatorService.class);
|
||||||
this.service = provider.getProvider();
|
this.service = provider.getProvider();
|
||||||
|
Loading…
Reference in New Issue
Block a user