added templates/multiloader/fabric/FabricPlatformHelper.java.ft 
Open in IDE
RErednesto⁠ rednesto: Bump templates
Copy Copy
        
            
    1. package ${MAIN_CLASS.packageName}.platform;
    2.  
    3. import ${MAIN_CLASS.packageName}.platform.services.IPlatformHelper;
    4. import net.fabricmc.loader.api.FabricLoader;
    5.  
    6. public class FabricPlatformHelper implements IPlatformHelper {
    7.  
    8. @Override
    9. public String getPlatformName() {
    10. return "Fabric";
    11. }
    12.  
    13. @Override
    14. public boolean isModLoaded(String modId) {
    15. return FabricLoader.getInstance().isModLoaded(modId);
    16. }
    17.  
    18. @Override
    19. public boolean isDevelopmentEnvironment() {
    20. return FabricLoader.getInstance().isDevelopmentEnvironment();
    21. }
    22. }
    ×

    Add build comment

    Cancel
    ×

    Mute test

    ×

    ×

    Server communication failure

    Server is unavailable

    Server stopped or communication with the server is not possible due to network failure.

    Server shutdown started.

    Please relogin to continue your work.

    ×

    Run Custom Build

    ×

    TODO

    Loading related builds...
    Cancel
    ×

    Responsibility

    ×

    Edit tags

    Cancel
    ×

    Loading...

    ×

    Are you sure?

    Cancel
    ×

    Please type to confirm.
    Cancel