1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- /*
- * This file is part of architectury.
- * Copyright (C) 2020 shedaniel
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
- package me.shedaniel.architectury.platform;
- import net.fabricmc.api.EnvType;
- import net.fabricmc.api.Environment;
- import net.minecraft.client.gui.screens.Screen;
- import org.jetbrains.annotations.NotNull;
- import org.jetbrains.annotations.Nullable;
- import java.nio.file.Path;
- import java.util.Collection;
- import java.util.Optional;
- public interface Mod {
- @NotNull
- String getModId();
-
- @NotNull
- String getVersion();
-
- @NotNull
- String getName();
-
- @NotNull
- String getDescription();
-
- /**
- * Gets the logo file path of the mod
- *
- * @param preferredSize the preferred logo size, only used in fabric
- * @return the logo file path relative to the file
- */
- @NotNull
- Optional<String> getLogoFile(int preferredSize);
-
- @NotNull
- Path getFilePath();
-
- @NotNull
- Collection<String> getAuthors();
-
- @Nullable
- Collection<String> getLicense();
-
- @NotNull
- Optional<String> getHomepage();
-
- @NotNull
- Optional<String> getSources();
-
- @NotNull
- Optional<String> getIssueTracker();
-
- @Environment(EnvType.CLIENT)
- void registerConfigurationScreen(ConfigurationScreenProvider provider);
-
- @Environment(EnvType.CLIENT)
- @FunctionalInterface
- interface ConfigurationScreenProvider {
- Screen provide(Screen parent);
- }
- }
|