Skip to content

Commit

Permalink
BuiltIn Registries
Browse files Browse the repository at this point in the history
  • Loading branch information
Faithcaio committed Feb 11, 2024
1 parent c91c238 commit ef584a5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.spongepowered.api.Engine;
import org.spongepowered.api.ResourceKey;
import org.spongepowered.api.event.GenericEvent;
import org.spongepowered.api.registry.DefaultedRegistryValue;
import org.spongepowered.api.registry.RegistryType;

public interface RegisterRegistryValueEvent extends LifecycleEvent {
Expand All @@ -38,6 +39,11 @@ interface RegistryStep<T> {
RegistryStep<T> register(ResourceKey key, T value);
}

interface BuiltIn<T extends DefaultedRegistryValue> extends LifecycleEvent {

RegistryStep<T> registry(RegistryType<T> registryType);
}

interface GameScoped extends RegisterRegistryValueEvent {
}

Expand Down

0 comments on commit ef584a5

Please sign in to comment.