Uses of Class
net.minecraftforge.common.util.FakePlayer
-
Uses of FakePlayer in net.minecraftforge.common.util
Modifier and TypeFieldDescriptionprivate static Map<com.mojang.authlib.GameProfile,
FakePlayer> FakePlayerFactory.fakePlayers
private static WeakReference<FakePlayer>
FakePlayerFactory.MINECRAFT_PLAYER
Modifier and TypeMethodDescriptionstatic FakePlayer
FakePlayerFactory.get
(ServerLevel level, 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
FakePlayerFactory.getMinecraft
(ServerLevel level)