接口 WritableRegistry<T>

所有超级接口:
IdMap<T>, Iterable<T>, com.mojang.serialization.Keyable, Registry<T>
所有已知实现类:
DefaultedMappedRegistry, MappedRegistry, NamespacedDefaultedWrapper, NamespacedWrapper

public interface WritableRegistry<T> extends Registry<T>
  • 方法详细资料

    • registerMapping

      Holder<T> registerMapping(int pId, ResourceKey<T> pKey, T pValue, com.mojang.serialization.Lifecycle pLifecycle)
    • register

      Holder.Reference<T> register(ResourceKey<T> pKey, T pValue, com.mojang.serialization.Lifecycle pLifecycle)
    • isEmpty

      boolean isEmpty()
    • createRegistrationLookup

      HolderGetter<T> createRegistrationLookup()