REIPluginV0.java 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * Roughly Enough Items by Danielshe.
  3. * Licensed under the MIT License.
  4. */
  5. package me.shedaniel.rei.api.plugins;
  6. import me.shedaniel.rei.api.DisplayHelper;
  7. import me.shedaniel.rei.api.EntryRegistry;
  8. import me.shedaniel.rei.api.REIPluginEntry;
  9. import me.shedaniel.rei.api.RecipeHelper;
  10. import net.fabricmc.loader.api.SemanticVersion;
  11. import net.fabricmc.loader.util.version.VersionParsingException;
  12. public interface REIPluginV0 extends REIPluginEntry {
  13. SemanticVersion getMinimumVersion() throws VersionParsingException;
  14. /**
  15. * On register of the plugin
  16. */
  17. default void onFirstLoad() {
  18. }
  19. /**
  20. * Registers entries on the item panel
  21. *
  22. * @param entryRegistry the helper class
  23. */
  24. default void registerEntries(EntryRegistry entryRegistry) {
  25. }
  26. /**
  27. * Registers categories
  28. *
  29. * @param recipeHelper the helper class
  30. */
  31. default void registerPluginCategories(RecipeHelper recipeHelper) {
  32. }
  33. /**
  34. * Registers displays for categories
  35. *
  36. * @param recipeHelper the helper class
  37. */
  38. default void registerRecipeDisplays(RecipeHelper recipeHelper) {
  39. }
  40. /**
  41. * Registers bounds handlers
  42. *
  43. * @param displayHelper the helper class
  44. */
  45. default void registerBounds(DisplayHelper displayHelper) {
  46. }
  47. /**
  48. * Register other stuff
  49. *
  50. * @param recipeHelper the helper class
  51. */
  52. default void registerOthers(RecipeHelper recipeHelper) {
  53. }
  54. }