Class HTDeferredRegister

  • All Implemented Interfaces:

    
    public class HTDeferredRegister<T extends Object>
    extends DeferredRegister<T>
                        

    Hiiragi Coreとそれを前提とするmodで使用されるDeferredRegisterの拡張クラスです。

    Since:

    0.1.0

    Author:

    Hiiragi Tsubasa

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      HTDeferredRegister(ResourceKey<out Registry<T>> registryKey, String namespace)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final ResourceLocation createId(String path) 名前空間に基づいて,パスからIDを作成します。
      final Unit addAlias(String from, String to) 名前空間に基づいて,IDのエイリアスを登録します。
      Sequence<HTDeferredHolder<T, out T>> asSequence() 登録されたHTDeferredHolderの一覧を返します。
      <I extends T> HTDeferredHolder<T, I> register(String name, Function<ResourceLocation, out I> func)
      <I extends T> HTDeferredHolder<T, I> register(String name, Supplier<out I> sup)
      • Methods inherited from class hiiragi283.core.api.registry.HTDeferredRegister

        getEntries, getNamespace, getRegistry, getRegistryKey, getRegistryName
      • Methods inherited from class net.neoforged.neoforge.registries.DeferredRegister

        addAlias, createTagKey, createTagKey, getEntries, getRegistry, getRegistryKey, makeRegistry, register
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait