public abstract class PlayerUtil
extends java.lang.Object
| Constructor and Description |
|---|
PlayerUtil() |
| Modifier and Type | Method and Description |
|---|---|
static net.minecraft.entity.player.EntityPlayer |
getFakePlayer(net.minecraft.world.World world,
com.mojang.authlib.GameProfile profile)
Get a fake player for a given World and GameProfile.
|
static java.lang.String |
getOwnerName(com.mojang.authlib.GameProfile profile) |
static net.minecraft.entity.player.EntityPlayer |
getPlayer(net.minecraft.world.World world,
com.mojang.authlib.GameProfile profile)
Get a player for a given World and GameProfile.
|
static boolean |
isSameGameProfile(com.mojang.authlib.GameProfile player1,
com.mojang.authlib.GameProfile player2) |
static com.mojang.authlib.GameProfile |
readGameProfileFromNBT(net.minecraft.nbt.NBTTagCompound compound) |
static void |
writeGameProfile(net.minecraft.nbt.NBTTagCompound tagCompound,
com.mojang.authlib.GameProfile profile) |
public static boolean isSameGameProfile(com.mojang.authlib.GameProfile player1,
com.mojang.authlib.GameProfile player2)
public static java.lang.String getOwnerName(@Nullable
com.mojang.authlib.GameProfile profile)
@Nullable
public static net.minecraft.entity.player.EntityPlayer getPlayer(net.minecraft.world.World world,
@Nullable
com.mojang.authlib.GameProfile profile)
@Nullable
public static net.minecraft.entity.player.EntityPlayer getFakePlayer(net.minecraft.world.World world,
@Nullable
com.mojang.authlib.GameProfile profile)
public static void writeGameProfile(net.minecraft.nbt.NBTTagCompound tagCompound,
com.mojang.authlib.GameProfile profile)
@Nullable public static com.mojang.authlib.GameProfile readGameProfileFromNBT(net.minecraft.nbt.NBTTagCompound compound)