finalize
This commit is contained in:
parent
3184eaf595
commit
d58ad6f68f
@ -31,16 +31,15 @@ import java.util.ServiceLoader;
|
|||||||
* @author Brady
|
* @author Brady
|
||||||
* @since 9/23/2018
|
* @since 9/23/2018
|
||||||
*/
|
*/
|
||||||
public class BaritoneAPI {
|
public final class BaritoneAPI {
|
||||||
|
|
||||||
private static IBaritoneProvider baritone;
|
private final static IBaritoneProvider baritone;
|
||||||
private static Settings settings;
|
private final static Settings settings;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
ServiceLoader<IBaritoneProvider> baritoneLoader = ServiceLoader.load(IBaritoneProvider.class);
|
ServiceLoader<IBaritoneProvider> baritoneLoader = ServiceLoader.load(IBaritoneProvider.class);
|
||||||
Iterator<IBaritoneProvider> instances = baritoneLoader.iterator();
|
Iterator<IBaritoneProvider> instances = baritoneLoader.iterator();
|
||||||
if (instances.hasNext())
|
baritone = instances.next();
|
||||||
baritone = instances.next();
|
|
||||||
|
|
||||||
settings = new Settings();
|
settings = new Settings();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user