类 RegistrySnapshot
java.lang.Object
net.neoforged.neoforge.registries.RegistrySnapshot
-
字段概要
字段修饰符和类型字段说明private 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> -
构造器概要
构造器限定符构造器说明private
Creates a blank snapshot to populate.RegistrySnapshot
(Registry<T> registry, boolean full) Creates a registry snapshot based on the given registry. -
方法概要
修饰符和类型方法说明<T> @Nullable Registry
<T> it.unimi.dsi.fastutil.ints.Int2ObjectSortedMap
<ResourceLocation> getIds()
-
字段详细资料
-
SORTER
-
STREAM_CODEC
-
ids
-
idsView
-
aliases
-
aliasesView
-
fullBackup
-
binary
@Nullable private @org.jetbrains.annotations.Nullable byte[] binary
-
-
构造器详细资料
-
RegistrySnapshot
private RegistrySnapshot()Creates a blank snapshot to populate. -
RegistrySnapshot
Creates a registry snapshot based on the given registry.- 类型参数:
T
- the registry type- 参数:
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.
-
-
方法详细资料
-
getIds
-
getAliases
-
getFullBackup
-