public class FakePlayerFactory
extends java.lang.Object
コンストラクタと説明 |
---|
FakePlayerFactory() |
修飾子とタイプ | メソッドと説明 |
---|---|
static FakePlayer |
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 |
getMinecraft(ServerWorld world) |
static void |
unloadWorld(ServerWorld world) |
public static FakePlayer getMinecraft(ServerWorld world)
public static FakePlayer get(ServerWorld world, com.mojang.authlib.GameProfile username)
public static void unloadWorld(ServerWorld world)