类 FakePlayerFactory
java.lang.Object
net.neoforged.neoforge.common.util.FakePlayerFactory
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private static final Map
<FakePlayerFactory.FakePlayerKey, FakePlayer> private static final com.mojang.authlib.GameProfile
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static FakePlayer
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, or call this function every time and let Forge take care of the cleanup.static FakePlayer
getMinecraft
(ServerLevel level) static void
unloadLevel
(ServerLevel level)
-
字段详细资料
-
MINECRAFT
private static final com.mojang.authlib.GameProfile MINECRAFT -
fakePlayers
-
-
构造器详细资料
-
FakePlayerFactory
public FakePlayerFactory()
-
-
方法详细资料
-
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, or call this function every time and let Forge take care of the cleanup. -
unloadLevel
-