public enum FakePlayerProvider extends java.lang.Enum<FakePlayerProvider> implements IFakePlayerProvider
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Field and Description |
|---|---|
static com.mojang.authlib.GameProfile |
NULL_PROFILE
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
FakePlayerBC |
getBuildCraftPlayer(net.minecraft.world.WorldServer world)
Deprecated.
|
FakePlayerBC |
getFakePlayer(net.minecraft.world.WorldServer world,
com.mojang.authlib.GameProfile profile) |
FakePlayerBC |
getFakePlayer(net.minecraft.world.WorldServer world,
com.mojang.authlib.GameProfile profile,
net.minecraft.util.math.BlockPos pos) |
void |
unloadWorld(net.minecraft.world.WorldServer world) |
static FakePlayerProvider |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FakePlayerProvider[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FakePlayerProvider INSTANCE
@Deprecated public static final com.mojang.authlib.GameProfile NULL_PROFILE
GameProfile to use if a tile entity cannot determine its real owner. Most of the time this
shouldn't be necessary, as we should be able to get a GameProfile from all EntityPlayer's that
place or create tiles/robotspublic static FakePlayerProvider[] values()
for (FakePlayerProvider c : FakePlayerProvider.values()) System.out.println(c);
public static FakePlayerProvider valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null@Deprecated public FakePlayerBC getBuildCraftPlayer(net.minecraft.world.WorldServer world)
IFakePlayerProvidergetBuildCraftPlayer in interface IFakePlayerProviderpublic FakePlayerBC getFakePlayer(net.minecraft.world.WorldServer world, com.mojang.authlib.GameProfile profile)
getFakePlayer in interface IFakePlayerProviderprofile - The owner's profile.public FakePlayerBC getFakePlayer(net.minecraft.world.WorldServer world, com.mojang.authlib.GameProfile profile, net.minecraft.util.math.BlockPos pos)
getFakePlayer in interface IFakePlayerProviderprofile - The owner's profile.public void unloadWorld(net.minecraft.world.WorldServer world)