This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lombok.extern.log4j.Log4j2; | |
import com.google.common.reflect.ClassPath; | |
import java.util.function.Consumer; | |
/** | |
* The DynamicInstantiator class is a utility class that provides a way to dynamically instantiate | |
* and register classes that implement a specific base class. | |
*/ | |
@Log4J2 | |
public class DynamicInstantiator { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.bukkit.metadata.MetadataValue; | |
import org.bukkit.metadata.Metadatable; | |
import org.bukkit.plugin.Plugin; | |
import java.util.Optional; | |
/** | |
* Utility class for working with Bukkit metadata. | |
*/ | |
public class MetadataUtils { |