Class StagedRegistry<T>

java.lang.Object
net.rebel459.unified.api.core.StagedRegistry<T>

public final class StagedRegistry<T> extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    afterFinish(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<?>> registry, Runnable runnable)
    Call UnifiedPlatform.executeAfter instead
    static void
     
    static void
    finish(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<?>> registry)
     
    static <S extends Supplied<?>>
    S
    getClaimed(net.minecraft.resources.ResourceKey<?> key)
     
    static boolean
    isRegistering(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<?>> registry, net.minecraft.resources.Identifier id)
     
    static <S extends Supplied<?>>
    S
    register(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<?>> registry, net.minecraft.resources.Identifier id, Supplier<S> registration)
     
    static <T, S extends Supplied<T>>
    S
    stage(net.minecraft.core.Registry<T> registry, net.minecraft.resources.Identifier id, BiFunction<Supplier<? extends T>, Supplier<? extends net.minecraft.core.Holder<T>>, S> placeholder, Supplier<S> registration)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getClaimed

      @Nullable public static <S extends Supplied<?>> S getClaimed(net.minecraft.resources.ResourceKey<?> key)
    • isRegistering

      public static boolean isRegistering(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<?>> registry, net.minecraft.resources.Identifier id)
    • register

      public static <S extends Supplied<?>> S register(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<?>> registry, net.minecraft.resources.Identifier id, Supplier<S> registration)
    • stage

      public static <T, S extends Supplied<T>> S stage(net.minecraft.core.Registry<T> registry, net.minecraft.resources.Identifier id, BiFunction<Supplier<? extends T>, Supplier<? extends net.minecraft.core.Holder<T>>, S> placeholder, Supplier<S> registration)
    • finish

      @Internal public static void finish()
    • finish

      @Internal public static void finish(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<?>> registry)
    • afterFinish

      @Internal public static void afterFinish(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<?>> registry, Runnable runnable)
      Call UnifiedPlatform.executeAfter instead