public class PreYggdrasilConverter
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
PreYggdrasilConverter.ConversionError |
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
static java.io.File |
OLD_IPBAN_FILE |
static java.io.File |
OLD_OPS_FILE |
static java.io.File |
OLD_PLAYERBAN_FILE |
static java.io.File |
OLD_WHITELIST_FILE |
Constructor and Description |
---|
PreYggdrasilConverter() |
Modifier and Type | Method and Description |
---|---|
private static void |
backupConverted(java.io.File convertedFile) |
static boolean |
convertIpBanlist(MinecraftServer server) |
static java.lang.String |
convertMobOwnerIfNeeded(MinecraftServer server,
java.lang.String username) |
static boolean |
convertOplist(MinecraftServer server) |
static boolean |
convertSaveFiles(DedicatedServer server,
PropertyManager p_152723_1_) |
static boolean |
convertUserBanlist(MinecraftServer server) |
static boolean |
convertWhitelist(MinecraftServer server) |
private static java.io.File |
getPlayersDirectory(PropertyManager properties) |
private static boolean |
hasUnconvertableFiles(PropertyManager properties) |
private static boolean |
hasUnconvertablePlayerFiles(PropertyManager properties) |
private static void |
lookupNames(MinecraftServer server,
java.util.Collection<java.lang.String> names,
com.mojang.authlib.ProfileLookupCallback callback) |
private static void |
mkdir(java.io.File dir) |
private static java.util.Date |
parseDate(java.lang.String input,
java.util.Date defaultValue) |
(package private) static java.util.List<java.lang.String> |
readFile(java.io.File inFile,
java.util.Map<java.lang.String,java.lang.String[]> read) |
static boolean |
tryConvert(PropertyManager properties) |
private static final org.apache.logging.log4j.Logger LOGGER
public static final java.io.File OLD_IPBAN_FILE
public static final java.io.File OLD_PLAYERBAN_FILE
public static final java.io.File OLD_OPS_FILE
public static final java.io.File OLD_WHITELIST_FILE
private static void lookupNames(MinecraftServer server, java.util.Collection<java.lang.String> names, com.mojang.authlib.ProfileLookupCallback callback)
public static java.lang.String convertMobOwnerIfNeeded(MinecraftServer server, java.lang.String username)
static java.util.List<java.lang.String> readFile(java.io.File inFile, java.util.Map<java.lang.String,java.lang.String[]> read) throws java.io.IOException
java.io.IOException
public static boolean convertUserBanlist(MinecraftServer server) throws java.io.IOException
java.io.IOException
public static boolean convertIpBanlist(MinecraftServer server) throws java.io.IOException
java.io.IOException
public static boolean convertOplist(MinecraftServer server) throws java.io.IOException
java.io.IOException
public static boolean convertWhitelist(MinecraftServer server) throws java.io.IOException
java.io.IOException
public static boolean convertSaveFiles(DedicatedServer server, PropertyManager p_152723_1_)
private static void mkdir(java.io.File dir)
public static boolean tryConvert(PropertyManager properties)
private static boolean hasUnconvertableFiles(PropertyManager properties)
private static boolean hasUnconvertablePlayerFiles(PropertyManager properties)
private static java.io.File getPlayersDirectory(PropertyManager properties)
private static void backupConverted(java.io.File convertedFile)
private static java.util.Date parseDate(java.lang.String input, java.util.Date defaultValue)