Package | Description |
---|---|
net.minecraftforge.common.util |
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<com.mojang.authlib.GameProfile,FakePlayer> |
FakePlayerFactory.fakePlayers |
private static java.lang.ref.WeakReference<FakePlayer> |
FakePlayerFactory.MINECRAFT_PLAYER |
Modifier and Type | Method and Description |
---|---|
static FakePlayer |
FakePlayerFactory.get(ServerWorld 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 |
FakePlayerFactory.getMinecraft(ServerWorld world) |