Skip to content

Instantly share code, notes, and snippets.

View TheCurle's full-sized avatar
😉
Did somebody say "new project"?

Curle TheCurle

😉
Did somebody say "new project"?
View GitHub Profile
@TheCurle
TheCurle / MyCapability.java
Last active July 7, 2024 16:50 — forked from niklaswimmer/MyCapability.java
Getting Started with Capabilities: a practical example
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() {
}