24 lines
524 B
Java
24 lines
524 B
Java
package appeng.core.features.registries;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import appeng.api.features.IPlayerRegistry;
|
|
import appeng.core.WorldSettings;
|
|
|
|
import com.mojang.authlib.GameProfile;
|
|
|
|
public class PlayerRegistry implements IPlayerRegistry
|
|
{
|
|
|
|
@Override
|
|
public int getID(GameProfile username)
|
|
{
|
|
return WorldSettings.getInstance().getPlayerID( username );
|
|
}
|
|
|
|
@Override
|
|
public int getID(EntityPlayer player)
|
|
{
|
|
return WorldSettings.getInstance().getPlayerID( player.getGameProfile() );
|
|
}
|
|
|
|
}
|