Class WritableRegistry<T>

java.lang.Object
net.minecraft.core.Registry<T>
net.minecraft.core.WritableRegistry<T>
All Implemented Interfaces:
com.mojang.serialization.Codec<T>, com.mojang.serialization.Decoder<T>, com.mojang.serialization.Encoder<T>, 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 <V extends T> V registerMapping(int p_123348_, ResourceKey<T> p_123349_, V p_123350_, com.mojang.serialization.Lifecycle p_123351_)
    • register

      public abstract <V extends T> V register(ResourceKey<T> p_123356_, V p_123357_, com.mojang.serialization.Lifecycle p_123358_)
    • registerOrOverride

      public abstract <V extends T> V registerOrOverride(OptionalInt p_123352_, ResourceKey<T> p_123353_, V p_123354_, com.mojang.serialization.Lifecycle p_123355_)
    • isEmpty

      public abstract boolean isEmpty()