Mod.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright 2020 shedaniel
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package me.shedaniel.architectury.platform;
  17. import net.fabricmc.api.EnvType;
  18. import net.fabricmc.api.Environment;
  19. import net.minecraft.client.gui.screens.Screen;
  20. import org.jetbrains.annotations.NotNull;
  21. public interface Mod {
  22. @NotNull
  23. String getModId();
  24. @NotNull
  25. String getVersion();
  26. @NotNull
  27. String getName();
  28. @NotNull
  29. String getDescription();
  30. @Environment(EnvType.CLIENT)
  31. void registerConfigurationScreen(ConfigurationScreenProvider provider);
  32. @Environment(EnvType.CLIENT)
  33. @FunctionalInterface
  34. interface ConfigurationScreenProvider {
  35. Screen provide(Screen parent);
  36. }
  37. }