Class LegacyStructureDataHandler
java.lang.Object
net.minecraft.world.level.levelgen.structure.LegacyStructureDataHandler
-
Field Summary
Modifier and TypeFieldDescriptionprivate Map<String,it.unimi.dsi.fastutil.longs.Long2ObjectMap<CompoundTag>>
private boolean
private Map<String,StructureFeatureIndexSavedData>
-
Constructor Summary
ConstructorDescriptionLegacyStructureDataHandler(DimensionDataStorage p_71308_, List<String> p_71309_, List<String> p_71310_)
-
Method Summary
Modifier and TypeMethodDescriptionstatic LegacyStructureDataHandler
getLegacyStructureHandler(ResourceKey<Level> p_71332_, DimensionDataStorage p_71333_)
private boolean
hasLegacyStart(int p_71315_, int p_71316_, String p_71317_)
private boolean
isUnhandledStructureStart(int p_71312_, int p_71313_)
private void
populateCaches(DimensionDataStorage p_71321_)
void
removeIndex(long p_71319_)
updateFromLegacy(CompoundTag p_71327_)
private CompoundTag
updateStructureStart(CompoundTag p_71329_, ChunkPos p_71330_)
-
Field Details
-
CURRENT_TO_LEGACY_MAP
-
LEGACY_TO_CURRENT_MAP
-
hasLegacyData
private final boolean hasLegacyData -
dataMap
-
indexMap
-
legacyKeys
-
currentKeys
-
-
Constructor Details
-
LegacyStructureDataHandler
public LegacyStructureDataHandler(@Nullable DimensionDataStorage p_71308_, List<String> p_71309_, List<String> p_71310_)
-
-
Method Details
-
removeIndex
public void removeIndex(long p_71319_) -
updateFromLegacy
-
hasLegacyStart
-
isUnhandledStructureStart
private boolean isUnhandledStructureStart(int p_71312_, int p_71313_) -
updateStructureStart
-
populateCaches
-
getLegacyStructureHandler
public static LegacyStructureDataHandler getLegacyStructureHandler(ResourceKey<Level> p_71332_, @Nullable DimensionDataStorage p_71333_)
-