Class RegistrySnapshot
java.lang.Object
net.neoforged.neoforge.registries.RegistrySnapshot
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map
<ResourceLocation, ResourceLocation> private final Map
<ResourceLocation, ResourceLocation> private @org.jetbrains.annotations.Nullable byte[]
private final @Nullable Registry
<?> private final it.unimi.dsi.fastutil.ints.Int2ObjectSortedMap
<ResourceLocation> private final it.unimi.dsi.fastutil.ints.Int2ObjectSortedMap
<ResourceLocation> private static final Comparator
<ResourceLocation> static final StreamCodec
<FriendlyByteBuf, RegistrySnapshot> -
Constructor Summary
ModifierConstructorDescriptionprivate
Creates a blank snapshot to populate.RegistrySnapshot
(Registry<T> registry, boolean full) Creates a registry snapshot based on the given registry. -
Method Summary
Modifier and TypeMethodDescription<T> @Nullable Registry
<T> it.unimi.dsi.fastutil.ints.Int2ObjectSortedMap
<ResourceLocation> getIds()
-
Field Details
-
SORTER
-
STREAM_CODEC
-
ids
-
idsView
-
aliases
-
aliasesView
-
fullBackup
-
binary
@Nullable private @org.jetbrains.annotations.Nullable byte[] binary
-
-
Constructor Details
-
RegistrySnapshot
private RegistrySnapshot()Creates a blank snapshot to populate. -
RegistrySnapshot
Creates a registry snapshot based on the given registry.- Type Parameters:
T
- the registry type- Parameters:
registry
- the registry to snapshot.full
- iftrue
, all entries will be stored in this snapshot. These entries are never saved to disk nor sent to the client.
-
-
Method Details
-
getIds
-
getAliases
-
getFullBackup
-