Refactoring to use PluginDependent<T extends EcoPlugin> and updated CombatLogX

This commit is contained in:
Auxilor
2021-07-05 11:41:26 +02:00
parent f3a6861bc6
commit a21ecfbdde
20 changed files with 41 additions and 44 deletions

View File

@@ -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>

View File

@@ -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.
*/

View File

@@ -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.
*/

View File

@@ -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.
*

View File

@@ -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.
*

View File

@@ -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.
*/

View File

@@ -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.
*

View File

@@ -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.
*/

View File

@@ -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}.
*

View File

@@ -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}.
*

View File

@@ -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}.
*

View File

@@ -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}.
*