Class LegacyStructureDataUtil
- java.lang.Object
-
- net.minecraft.world.gen.feature.structure.LegacyStructureDataUtil
-
public class LegacyStructureDataUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.String,java.lang.String>
CURRENT_TO_LEGACY_MAP
private java.util.List<java.lang.String>
currentKeys
private java.util.Map<java.lang.String,it.unimi.dsi.fastutil.longs.Long2ObjectMap<CompoundNBT>>
dataMap
private boolean
hasLegacyData
private java.util.Map<java.lang.String,StructureIndexesSavedData>
indexMap
private static java.util.Map<java.lang.String,java.lang.String>
LEGACY_TO_CURRENT_MAP
private java.util.List<java.lang.String>
legacyKeys
-
Constructor Summary
Constructors Constructor Description LegacyStructureDataUtil(DimensionSavedDataManager p_i51349_1_, java.util.List<java.lang.String> p_i51349_2_, java.util.List<java.lang.String> p_i51349_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LegacyStructureDataUtil
getLegacyStructureHandler(RegistryKey<World> p_236992_0_, DimensionSavedDataManager p_236992_1_)
private boolean
hasLegacyStart(int p_208211_1_, int p_208211_2_, java.lang.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_)
CompoundNBT
updateFromLegacy(CompoundNBT p_212181_1_)
private CompoundNBT
updateStructureStart(CompoundNBT p_212182_1_, ChunkPos p_212182_2_)
-
-
-
Field Detail
-
CURRENT_TO_LEGACY_MAP
private static final java.util.Map<java.lang.String,java.lang.String> CURRENT_TO_LEGACY_MAP
-
LEGACY_TO_CURRENT_MAP
private static final java.util.Map<java.lang.String,java.lang.String> LEGACY_TO_CURRENT_MAP
-
hasLegacyData
private final boolean hasLegacyData
-
dataMap
private final java.util.Map<java.lang.String,it.unimi.dsi.fastutil.longs.Long2ObjectMap<CompoundNBT>> dataMap
-
indexMap
private final java.util.Map<java.lang.String,StructureIndexesSavedData> indexMap
-
legacyKeys
private final java.util.List<java.lang.String> legacyKeys
-
currentKeys
private final java.util.List<java.lang.String> currentKeys
-
-
Constructor Detail
-
LegacyStructureDataUtil
public LegacyStructureDataUtil(@Nullable DimensionSavedDataManager p_i51349_1_, java.util.List<java.lang.String> p_i51349_2_, java.util.List<java.lang.String> p_i51349_3_)
-
-
Method Detail
-
removeIndex
public void removeIndex(long p_208216_1_)
-
updateFromLegacy
public CompoundNBT updateFromLegacy(CompoundNBT p_212181_1_)
-
hasLegacyStart
private boolean hasLegacyStart(int p_208211_1_, int p_208211_2_, java.lang.String p_208211_3_)
-
isUnhandledStructureStart
private boolean isUnhandledStructureStart(int p_208209_1_, int p_208209_2_)
-
updateStructureStart
private CompoundNBT updateStructureStart(CompoundNBT p_212182_1_, ChunkPos p_212182_2_)
-
populateCaches
private void populateCaches(@Nullable DimensionSavedDataManager p_212184_1_)
-
getLegacyStructureHandler
public static LegacyStructureDataUtil getLegacyStructureHandler(RegistryKey<World> p_236992_0_, @Nullable DimensionSavedDataManager p_236992_1_)
-
-