Class MutableRegistry<T>

  • All Implemented Interfaces:
    com.mojang.serialization.Codec<T>, com.mojang.serialization.Decoder<T>, com.mojang.serialization.Encoder<T>, com.mojang.serialization.Keyable, java.lang.Iterable<T>, IObjectIntIterable<T>
    Direct Known Subclasses:
    SimpleRegistry

    public abstract class MutableRegistry<T>
    extends Registry<T>
    • Constructor Detail

      • MutableRegistry

        public MutableRegistry​(RegistryKey<? extends Registry<T>> p_i232512_1_,
                               com.mojang.serialization.Lifecycle p_i232512_2_)
    • Method Detail

      • registerMapping

        public abstract <V extends T> V registerMapping​(int p_218382_1_,
                                                        RegistryKey<T> p_218382_2_,
                                                        V p_218382_3_,
                                                        com.mojang.serialization.Lifecycle p_218382_4_)
      • register

        public abstract <V extends T> V register​(RegistryKey<T> p_218381_1_,
                                                 V p_218381_2_,
                                                 com.mojang.serialization.Lifecycle p_218381_3_)
      • registerOrOverride

        public abstract <V extends T> V registerOrOverride​(java.util.OptionalInt p_241874_1_,
                                                           RegistryKey<T> p_241874_2_,
                                                           V p_241874_3_,
                                                           com.mojang.serialization.Lifecycle p_241874_4_)