Reverted proxy changes
This commit is contained in:
@@ -13,7 +13,6 @@ import com.willfp.eco.core.factory.NamespacedKeyFactory;
|
||||
import com.willfp.eco.core.factory.RunnableFactory;
|
||||
import com.willfp.eco.core.integrations.IntegrationLoader;
|
||||
import com.willfp.eco.core.integrations.placeholder.PlaceholderManager;
|
||||
import com.willfp.eco.core.proxy.AbstractProxy;
|
||||
import com.willfp.eco.core.scheduling.Scheduler;
|
||||
import com.willfp.eco.internal.Internals;
|
||||
import com.willfp.eco.internal.UpdateChecker;
|
||||
@@ -608,18 +607,6 @@ public abstract class EcoPlugin extends JavaPlugin {
|
||||
return "5.0.0";
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the implementation of a specified proxy.
|
||||
*
|
||||
* @param proxyClass The proxy interface.
|
||||
* @param <T> The type of the proxy.
|
||||
* @return The proxy implementation.
|
||||
*/
|
||||
public @NotNull
|
||||
final <T extends AbstractProxy> T getProxy(@NotNull final Class<T> proxyClass) {
|
||||
return Internals.getInstance().getProxy(this, proxyClass);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the plugin's logger.
|
||||
*
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package com.willfp.eco.internal;
|
||||
|
||||
import com.willfp.eco.core.EcoPlugin;
|
||||
import com.willfp.eco.core.proxy.AbstractProxy;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public abstract class Internals {
|
||||
@@ -13,9 +12,6 @@ public abstract class Internals {
|
||||
|
||||
public abstract EcoPlugin getPlugin();
|
||||
|
||||
public @NotNull abstract <T extends AbstractProxy> T getProxy(@NotNull EcoPlugin plugin,
|
||||
@NotNull Class<T> proxyClass);
|
||||
|
||||
public static Internals getInstance() {
|
||||
return internals;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user