Class RegistrySnapshot
java.lang.Object
net.neoforged.neoforge.registries.RegistrySnapshot
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<Identifier, Identifier> private final Map<Identifier, Identifier> private byte @Nullable []private final it.unimi.dsi.fastutil.ints.Int2ObjectSortedMap<Identifier> private final it.unimi.dsi.fastutil.ints.Int2ObjectSortedMap<Identifier> private static final Comparator<Identifier> static final StreamCodec<FriendlyByteBuf, RegistrySnapshot> private static final StreamCodec<FriendlyByteBuf, RegistrySnapshot> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRegistrySnapshot(it.unimi.dsi.fastutil.ints.Int2ObjectSortedMap<Identifier> ids, Map<Identifier, Identifier> aliases) Creates a snapshot from the given data recieved over the network.<T>RegistrySnapshot(Registry<T> registry, boolean full) Creates a registry snapshot based on the given registry. -
Method Summary
Modifier and TypeMethodDescriptionit.unimi.dsi.fastutil.ints.Int2ObjectSortedMap<Identifier> getIds()
-
Field Details
-
SORTER
-
UNCACHED_STREAM_CODEC
-
STREAM_CODEC
-
ids
-
idsView
-
aliases
-
aliasesView
-
fullBackup
-
binary
-
-
Constructor Details
-
RegistrySnapshot
private RegistrySnapshot(it.unimi.dsi.fastutil.ints.Int2ObjectSortedMap<Identifier> ids, Map<Identifier, Identifier> aliases) Creates a snapshot from the given data recieved over the network. -
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
-