Class MappedRegistryWithFreezeCallback<T>

java.lang.Object
net.neoforged.neoforge.registries.BaseMappedRegistry<T>
net.minecraft.core.MappedRegistry<T>
com.simibubi.create.impl.registry.MappedRegistryWithFreezeCallback<T>
All Implemented Interfaces:
com.mojang.serialization.Keyable, Iterable<T>, net.minecraft.core.IdMap<T>, net.minecraft.core.Registry<T>, net.minecraft.core.WritableRegistry<T>, net.neoforged.neoforge.registries.IRegistryExtension<T>

public class MappedRegistryWithFreezeCallback<T> extends net.minecraft.core.MappedRegistry<T>
  • Field Summary

    Fields inherited from class net.neoforged.neoforge.registries.BaseMappedRegistry

    addCallbacks, bakeCallbacks, clearCallbacks

    Fields inherited from interface net.minecraft.core.IdMap

    DEFAULT
  • Constructor Summary

    Constructors
    Constructor
    Description
    MappedRegistryWithFreezeCallback(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> key, com.mojang.serialization.Lifecycle registryLifecycle, Runnable freezeCallback)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull net.minecraft.core.Registry<T>
     

    Methods inherited from class net.minecraft.core.MappedRegistry

    asLookup, bindTags, byId, clear, containsKey, containsKey, containsValue, createIntrusiveHolder, createRegistrationLookup, entrySet, get, get, getAny, getHolder, getHolder, getHolder, getId, getId, getId, getKey, getOrCreateTag, getRandom, getResourceKey, getTag, getTagNames, getTags, holderOwner, holders, isEmpty, iterator, key, keySet, register, register, registerIdMapping, registrationInfo, registryKeySet, registryLifecycle, resetTags, size, toString, unfreeze, wrapAsHolder

    Methods inherited from class net.neoforged.neoforge.registries.BaseMappedRegistry

    addAlias, addCallback, doesSync, getData, getDataMap, getMaxId, resolve, resolve

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.minecraft.core.IdMap

    byIdOrThrow, getIdOrThrow

    Methods inherited from interface net.neoforged.neoforge.registries.IRegistryExtension

    addAlias, addCallback, addCallback, doesSync, getData, getDataMap, getMaxId, resolve, resolve

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator

    Methods inherited from interface net.minecraft.core.Registry

    asHolderIdMap, asTagAddingLookup, byNameCodec, getHolderOrThrow, getOptional, getOptional, getOrThrow, getRandomElementOf, getTagOrEmpty, holderByNameCodec, keys, stream
  • Constructor Details

    • MappedRegistryWithFreezeCallback

      public MappedRegistryWithFreezeCallback(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> key, com.mojang.serialization.Lifecycle registryLifecycle, Runnable freezeCallback)
  • Method Details

    • freeze

      @NotNull public @NotNull net.minecraft.core.Registry<T> freeze()
      Specified by:
      freeze in interface net.minecraft.core.Registry<T>
      Overrides:
      freeze in class net.minecraft.core.MappedRegistry<T>