REIPluginEntry.java 749 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Roughly Enough Items by Danielshe.
  3. * Licensed under the MIT License.
  4. */
  5. package me.shedaniel.rei.api;
  6. import net.fabricmc.loader.api.SemanticVersion;
  7. import net.fabricmc.loader.util.version.VersionParsingException;
  8. import net.minecraft.util.Identifier;
  9. /**
  10. * Get base class of a REI plugin.
  11. */
  12. public interface REIPluginEntry {
  13. default SemanticVersion getMinimumVersion() throws VersionParsingException {
  14. return null;
  15. }
  16. /**
  17. * Gets the priority of the plugin.
  18. *
  19. * @return the priority
  20. */
  21. default int getPriority() {
  22. return 0;
  23. }
  24. /**
  25. * Get the identifier of the plugin
  26. *
  27. * @return the identifier
  28. */
  29. Identifier getPluginIdentifier();
  30. }