Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ rootProject.name = "spout-monorepo"

includeBuild("spout-fabric")
includeBuild("spout-paper")
includeBuild("spoutcraft-fabric")
includeBuild("spoutcraft-mod")

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions spoutcraft-mod/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
plugins {
base
}

tasks.named("build") {
dependsOn(":fabric:build")
dependsOn(":neoforge:build")
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package spout.clientui.resourcepack.loadingoverlay;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import net.minecraft.resources.Identifier;
import spout.branding.SpoutNamespace;

/**
* Holder for {@link #IDENTIFIER}.
*/
public final class SpoutLogoIdentifier {

private static final String RESOURCE_PATH = "assets/spout/icon.png";

private SpoutLogoIdentifier() {
throw new UnsupportedOperationException();
}

public static final Identifier IDENTIFIER = Identifier.fromNamespaceAndPath(SpoutNamespace.SPOUT, "icon.png");

public static InputStream open() throws IOException {
InputStream input = SpoutLogoIdentifier.class.getClassLoader().getResourceAsStream(RESOURCE_PATH);
if (input == null) {
throw new FileNotFoundException(RESOURCE_PATH);
}
return input;
}

}
Loading