Class WritableRegistry<T>

java.lang.Object
net.minecraft.core.Registry<T>
net.minecraft.core.WritableRegistry<T>
All Implemented Interfaces:
com.mojang.serialization.Keyable, Iterable<T>, IdMap<T>
Direct Known Subclasses:
MappedRegistry

public abstract class WritableRegistry<T> extends Registry<T>
  • Constructor Details

    • WritableRegistry

      public WritableRegistry(ResourceKey<? extends Registry<T>> p_123346_, com.mojang.serialization.Lifecycle p_123347_)
  • Method Details

    • registerMapping

      public abstract Holder<T> registerMapping(int p_206368_, ResourceKey<T> p_206369_, T p_206370_, com.mojang.serialization.Lifecycle p_206371_)
    • register

      public abstract Holder<T> register(ResourceKey<T> p_206376_, T p_206377_, com.mojang.serialization.Lifecycle p_206378_)
    • registerOrOverride

      public abstract Holder<T> registerOrOverride(OptionalInt p_206372_, ResourceKey<T> p_206373_, T p_206374_, com.mojang.serialization.Lifecycle p_206375_)
    • isEmpty

      public abstract boolean isEmpty()