Refactoring to use PluginDependent<T extends EcoPlugin> and updated CombatLogX
This commit is contained in:
@@ -14,7 +14,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public abstract class AbstractCommand extends PluginDependent implements CommandExecutor {
|
||||
public abstract class AbstractCommand extends PluginDependent<EcoPlugin> implements CommandExecutor {
|
||||
/**
|
||||
* The name of the command
|
||||
* <p>
|
||||
|
||||
@@ -6,7 +6,7 @@ import lombok.Getter;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public abstract class DisplayModule extends PluginDependent {
|
||||
public abstract class DisplayModule extends PluginDependent<EcoPlugin> {
|
||||
/**
|
||||
* The priority of the module.
|
||||
*/
|
||||
|
||||
@@ -17,7 +17,7 @@ import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public final class ShapedCraftingRecipe extends PluginDependent implements CraftingRecipe {
|
||||
public final class ShapedCraftingRecipe extends PluginDependent<EcoPlugin> implements CraftingRecipe {
|
||||
/**
|
||||
* Recipe parts.
|
||||
*/
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.io.InputStream;
|
||||
import java.net.URL;
|
||||
import java.util.Scanner;
|
||||
|
||||
public class UpdateChecker extends PluginDependent {
|
||||
public class UpdateChecker extends PluginDependent<EcoPlugin> {
|
||||
/**
|
||||
* Create an update checker for the specified spigot resource id.
|
||||
*
|
||||
|
||||
@@ -13,7 +13,7 @@ import org.bukkit.inventory.ItemStack;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class ArrowDataListener extends PluginDependent implements Listener {
|
||||
public class ArrowDataListener extends PluginDependent<EcoPlugin> implements Listener {
|
||||
/**
|
||||
* Listener to add metadata to arrows about the enchantments on the bow that shot them.
|
||||
*
|
||||
|
||||
@@ -20,7 +20,7 @@ import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
public class EcoConfigHandler extends PluginDependent implements ConfigHandler {
|
||||
public class EcoConfigHandler extends PluginDependent<EcoPlugin> implements ConfigHandler {
|
||||
/**
|
||||
* A set of all configs that can be saved.
|
||||
*/
|
||||
|
||||
@@ -9,7 +9,7 @@ import org.bukkit.event.Listener;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class EcoEventManager extends PluginDependent implements EventManager {
|
||||
public class EcoEventManager extends PluginDependent<EcoPlugin> implements EventManager {
|
||||
/**
|
||||
* Manager class for event management.
|
||||
*
|
||||
|
||||
@@ -24,7 +24,7 @@ import java.util.Set;
|
||||
/**
|
||||
* Concrete implementation of {@link ExtensionLoader}.
|
||||
*/
|
||||
public class EcoExtensionLoader extends PluginDependent implements ExtensionLoader {
|
||||
public class EcoExtensionLoader extends PluginDependent<EcoPlugin> implements ExtensionLoader {
|
||||
/**
|
||||
* All currently loaded extensions.
|
||||
*/
|
||||
|
||||
@@ -6,7 +6,7 @@ import com.willfp.eco.core.factory.MetadataValueFactory;
|
||||
import org.bukkit.metadata.FixedMetadataValue;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class EcoMetadataValueFactory extends PluginDependent implements MetadataValueFactory {
|
||||
public class EcoMetadataValueFactory extends PluginDependent<EcoPlugin> implements MetadataValueFactory {
|
||||
/**
|
||||
* Factory class to produce {@link FixedMetadataValue}s associated with an {@link EcoPlugin}.
|
||||
*
|
||||
|
||||
@@ -6,7 +6,7 @@ import com.willfp.eco.core.factory.NamespacedKeyFactory;
|
||||
import org.bukkit.NamespacedKey;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class EcoNamespacedKeyFactory extends PluginDependent implements NamespacedKeyFactory {
|
||||
public class EcoNamespacedKeyFactory extends PluginDependent<EcoPlugin> implements NamespacedKeyFactory {
|
||||
/**
|
||||
* Factory class to produce {@link NamespacedKey}s associated with an {@link EcoPlugin}.
|
||||
*
|
||||
|
||||
@@ -9,7 +9,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.function.Consumer;
|
||||
|
||||
public class EcoRunnableFactory extends PluginDependent implements RunnableFactory {
|
||||
public class EcoRunnableFactory extends PluginDependent<EcoPlugin> implements RunnableFactory {
|
||||
/**
|
||||
* Factory class to produce {@link RunnableTask}s associated with an {@link EcoPlugin}.
|
||||
*
|
||||
|
||||
@@ -8,7 +8,7 @@ import org.bukkit.scheduler.BukkitTask;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class EcoScheduler extends PluginDependent implements Scheduler {
|
||||
public class EcoScheduler extends PluginDependent<EcoPlugin> implements Scheduler {
|
||||
/**
|
||||
* Create a scheduler to manage the tasks of an {@link EcoPlugin}.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user