Uses of Class
net.minecraftforge.common.util.FakePlayer
-
Uses of FakePlayer in net.minecraftforge.common.util
Modifier and TypeFieldDescriptionprivate static final Map<FakePlayerFactory.FakePlayerKey,
FakePlayer> FakePlayerFactory.fakePlayers
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, or call this function every time and let Forge take care of the cleanup.static FakePlayer
FakePlayerFactory.getMinecraft
(ServerLevel level)