net.minecraftforge.common.util

## Class FakePlayerFactory

- java.lang.Object
- - net.minecraftforge.common.util.FakePlayerFactory

-     public class FakePlayerFactory
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FakePlayerFactory()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static FakePlayer` | `get(WorldServer 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(WorldServer world)`
    `static void` | `unloadWorld(WorldServer world)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FakePlayerFactory

          public FakePlayerFactory()

  - ### Method Detail

    - #### getMinecraft

          public static FakePlayer getMinecraft(WorldServer world)

    - #### get

          public static FakePlayer get(WorldServer 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.

    - #### unloadWorld

          public static void unloadWorld(WorldServer world)