This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyCapability { | |
public static final Capability<MyCapabilityInterface> INSTANCE = CapabilityManager.get(new CapabilityToken<>() {}); | |
public static void register(RegisterCapabilitiesEvent event) { | |
event.register(MyCapabilityInterface.class); | |
} | |
private MyCapability() { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar | |
import net.minecraftforge.gradle.common.util.RunConfig | |
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | |
import java.time.Instant | |
import java.time.format.DateTimeFormatter | |
plugins { | |
kotlin("jvm") version "1.4.32" | |
id("net.minecraftforge.gradle") version "4.1.9" |