Package net.minecraft.server.management
Class PreYggdrasilConverter
- java.lang.Object
-
- net.minecraft.server.management.PreYggdrasilConverter
-
public class PreYggdrasilConverter extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
PreYggdrasilConverter.ConversionError
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.logging.log4j.Logger
LOGGER
static java.io.File
OLD_IPBANLIST
static java.io.File
OLD_OPLIST
static java.io.File
OLD_USERBANLIST
static java.io.File
OLD_WHITELIST
-
Constructor Summary
Constructors Constructor Description PreYggdrasilConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static boolean
areOldPlayersConverted(MinecraftServer p_219589_0_)
private static boolean
areOldUserlistsRemoved()
static boolean
convertIpBanlist(MinecraftServer p_152722_0_)
static java.util.UUID
convertMobOwnerIfNecessary(MinecraftServer p_187473_0_, java.lang.String p_187473_1_)
static boolean
convertOpsList(MinecraftServer p_152718_0_)
static boolean
convertPlayers(DedicatedServer p_152723_0_)
static boolean
convertUserBanlist(MinecraftServer p_152724_0_)
static boolean
convertWhiteList(MinecraftServer p_152710_0_)
private static void
ensureDirectoryExists(java.io.File p_152711_0_)
private static java.io.File
getWorldPlayersDirectory(MinecraftServer p_219585_0_)
private static void
lookupPlayers(MinecraftServer p_152717_0_, java.util.Collection<java.lang.String> p_152717_1_, com.mojang.authlib.ProfileLookupCallback p_152717_2_)
private static java.util.Date
parseDate(java.lang.String p_152713_0_, java.util.Date p_152713_1_)
(package private) static java.util.List<java.lang.String>
readOldListFormat(java.io.File p_152721_0_, java.util.Map<java.lang.String,java.lang.String[]> p_152721_1_)
private static void
renameOldFile(java.io.File p_152727_0_)
static boolean
serverReadyAfterUserconversion(MinecraftServer p_219587_0_)
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
OLD_IPBANLIST
public static final java.io.File OLD_IPBANLIST
-
OLD_USERBANLIST
public static final java.io.File OLD_USERBANLIST
-
OLD_OPLIST
public static final java.io.File OLD_OPLIST
-
OLD_WHITELIST
public static final java.io.File OLD_WHITELIST
-
-
Method Detail
-
readOldListFormat
static java.util.List<java.lang.String> readOldListFormat(java.io.File p_152721_0_, java.util.Map<java.lang.String,java.lang.String[]> p_152721_1_) throws java.io.IOException
- Throws:
java.io.IOException
-
lookupPlayers
private static void lookupPlayers(MinecraftServer p_152717_0_, java.util.Collection<java.lang.String> p_152717_1_, com.mojang.authlib.ProfileLookupCallback p_152717_2_)
-
convertUserBanlist
public static boolean convertUserBanlist(MinecraftServer p_152724_0_)
-
convertIpBanlist
public static boolean convertIpBanlist(MinecraftServer p_152722_0_)
-
convertOpsList
public static boolean convertOpsList(MinecraftServer p_152718_0_)
-
convertWhiteList
public static boolean convertWhiteList(MinecraftServer p_152710_0_)
-
convertMobOwnerIfNecessary
@Nullable public static java.util.UUID convertMobOwnerIfNecessary(MinecraftServer p_187473_0_, java.lang.String p_187473_1_)
-
convertPlayers
public static boolean convertPlayers(DedicatedServer p_152723_0_)
-
ensureDirectoryExists
private static void ensureDirectoryExists(java.io.File p_152711_0_)
-
serverReadyAfterUserconversion
public static boolean serverReadyAfterUserconversion(MinecraftServer p_219587_0_)
-
areOldUserlistsRemoved
private static boolean areOldUserlistsRemoved()
-
areOldPlayersConverted
private static boolean areOldPlayersConverted(MinecraftServer p_219589_0_)
-
getWorldPlayersDirectory
private static java.io.File getWorldPlayersDirectory(MinecraftServer p_219585_0_)
-
renameOldFile
private static void renameOldFile(java.io.File p_152727_0_)
-
parseDate
private static java.util.Date parseDate(java.lang.String p_152713_0_, java.util.Date p_152713_1_)
-
-