Class LegacyStructureDataUtil
java.lang.Object
net.minecraft.world.gen.feature.structure.LegacyStructureDataUtil
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<String,
it.unimi.dsi.fastutil.longs.Long2ObjectMap<CompoundNBT>> private final boolean
private final Map<String,
StructureIndexesSavedData> -
Constructor Summary
ConstructorDescriptionLegacyStructureDataUtil
(DimensionSavedDataManager p_i51349_1_, List<String> p_i51349_2_, List<String> p_i51349_3_) -
Method Summary
Modifier and TypeMethodDescriptionstatic LegacyStructureDataUtil
getLegacyStructureHandler
(RegistryKey<World> p_236992_0_, DimensionSavedDataManager p_236992_1_) private boolean
hasLegacyStart
(int p_208211_1_, int p_208211_2_, String p_208211_3_) private boolean
isUnhandledStructureStart
(int p_208209_1_, int p_208209_2_) private void
populateCaches
(DimensionSavedDataManager p_212184_1_) void
removeIndex
(long p_208216_1_) updateFromLegacy
(CompoundNBT p_212181_1_) private CompoundNBT
updateStructureStart
(CompoundNBT p_212182_1_, ChunkPos p_212182_2_)
-
Field Details
-
CURRENT_TO_LEGACY_MAP
-
LEGACY_TO_CURRENT_MAP
-
hasLegacyData
private final boolean hasLegacyData -
dataMap
-
indexMap
-
legacyKeys
-
currentKeys
-
-
Constructor Details
-
LegacyStructureDataUtil
public LegacyStructureDataUtil(@Nullable DimensionSavedDataManager p_i51349_1_, List<String> p_i51349_2_, List<String> p_i51349_3_)
-
-
Method Details
-
removeIndex
public void removeIndex(long p_208216_1_) -
updateFromLegacy
-
hasLegacyStart
-
isUnhandledStructureStart
private boolean isUnhandledStructureStart(int p_208209_1_, int p_208209_2_) -
updateStructureStart
-
populateCaches
-
getLegacyStructureHandler
public static LegacyStructureDataUtil getLegacyStructureHandler(RegistryKey<World> p_236992_0_, @Nullable DimensionSavedDataManager p_236992_1_)
-