public class FeatureUpdater extends Object
Modifier and Type | Field and Description |
---|---|
private static Map<String,String> |
ANCIENT_TO_OLD |
private Map<String,it.unimi.dsi.fastutil.longs.Long2ObjectMap<CompoundTag>> |
featureIdToChunkTag |
private List<String> |
field_17658 |
private List<String> |
field_17659 |
private boolean |
needsUpdate |
private static Map<String,String> |
OLD_TO_NEW |
private Map<String,ChunkUpdateState> |
updateStates |
Constructor and Description |
---|
FeatureUpdater(PersistentStateManager persistentStateManager,
List<String> list,
List<String> list2) |
Modifier and Type | Method and Description |
---|---|
static FeatureUpdater |
create(RegistryKey<World> registryKey,
PersistentStateManager persistentStateManager) |
CompoundTag |
getUpdatedReferences(CompoundTag compoundTag) |
private CompoundTag |
getUpdatedStarts(CompoundTag compoundTag,
ChunkPos chunkPos) |
private void |
init(PersistentStateManager persistentStateManager) |
void |
markResolved(long long2) |
private boolean |
needsUpdate(int chunkX,
int chunkZ) |
private boolean |
needsUpdate(int chunkX,
int chunkZ,
String id) |
private final boolean needsUpdate
private final Map<String,it.unimi.dsi.fastutil.longs.Long2ObjectMap<CompoundTag>> featureIdToChunkTag
private final Map<String,ChunkUpdateState> updateStates
public void markResolved(long long2)
public CompoundTag getUpdatedReferences(CompoundTag compoundTag)
private boolean needsUpdate(int chunkX, int chunkZ, String id)
private boolean needsUpdate(int chunkX, int chunkZ)
private CompoundTag getUpdatedStarts(CompoundTag compoundTag, ChunkPos chunkPos)
private void init(@Nullable PersistentStateManager persistentStateManager)
public static FeatureUpdater create(RegistryKey<World> registryKey, @Nullable PersistentStateManager persistentStateManager)