Package net.minecraftforge.common.util
Class FakePlayerFactory
java.lang.Object
net.minecraftforge.common.util.FakePlayerFactory
-
Field Summary
Modifier and TypeFieldDescriptionprivate static Map<com.mojang.authlib.GameProfile,FakePlayer>
private static com.mojang.authlib.GameProfile
private static WeakReference<FakePlayer>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic FakePlayer
get(ServerLevel world, com.mojang.authlib.GameProfile username)
Get a fake player with a given username, Mods should either hold weak references to the return value, or listen for a WorldEvent.Unload and kill all references to prevent worlds staying in memory.static FakePlayer
getMinecraft(ServerLevel world)
static void
unloadWorld(ServerLevel world)
-
Field Details
-
MINECRAFT
private static com.mojang.authlib.GameProfile MINECRAFT -
fakePlayers
-
MINECRAFT_PLAYER
-
-
Constructor Details
-
FakePlayerFactory
public FakePlayerFactory()
-
-
Method Details
-
getMinecraft
-
get
Get a fake player with a given username, Mods should either hold weak references to the return value, or listen for a WorldEvent.Unload and kill all references to prevent worlds staying in memory. -
unloadWorld
-