public class WorldOptimizer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
active |
private int |
converted |
private boolean |
done |
private boolean |
field_219957_d |
private java.io.File |
folder |
private static org.apache.logging.log4j.Logger |
LOGGER |
private it.unimi.dsi.fastutil.objects.Object2FloatMap<DimensionType> |
progress |
private static java.util.regex.Pattern |
REGION_FILE_PATTERN |
private DimensionSavedDataManager |
savedDataManager |
private int |
skipped |
private ITextComponent |
statusText |
private java.lang.Thread |
thread |
private static java.util.concurrent.ThreadFactory |
THREAD_FACTORY |
private int |
totalChunks |
private float |
totalProgress |
private java.lang.String |
worldName |
private SaveHandler |
worldStorage |
Constructor and Description |
---|
WorldOptimizer(java.lang.String p_i50400_1_,
SaveFormat p_i50400_2_,
WorldInfo p_i50400_3_,
boolean p_i50400_4_) |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
private java.util.List<ChunkPos> |
func_219953_b(DimensionType p_219953_1_) |
int |
getConverted() |
float |
getProgress(DimensionType p_212543_1_) |
int |
getSkipped() |
ITextComponent |
getStatusText() |
int |
getTotalChunks() |
float |
getTotalProgress() |
boolean |
isFinished() |
private void |
optimize() |
private static final org.apache.logging.log4j.Logger LOGGER
private static final java.util.concurrent.ThreadFactory THREAD_FACTORY
private final java.lang.String worldName
private final boolean field_219957_d
private final SaveHandler worldStorage
private final java.lang.Thread thread
private final java.io.File folder
private volatile boolean active
private volatile boolean done
private volatile float totalProgress
private volatile int totalChunks
private volatile int converted
private volatile int skipped
private final it.unimi.dsi.fastutil.objects.Object2FloatMap<DimensionType> progress
private volatile ITextComponent statusText
private static final java.util.regex.Pattern REGION_FILE_PATTERN
private final DimensionSavedDataManager savedDataManager
public WorldOptimizer(java.lang.String p_i50400_1_, SaveFormat p_i50400_2_, WorldInfo p_i50400_3_, boolean p_i50400_4_)
public void cancel()
private void optimize()
private java.util.List<ChunkPos> func_219953_b(DimensionType p_219953_1_)
public boolean isFinished()
public float getProgress(DimensionType p_212543_1_)
public float getTotalProgress()
public int getTotalChunks()
public int getConverted()
public int getSkipped()
public ITextComponent getStatusText()