Applied-Energistics-2-tiler.../core/features/registries/PlayerRegistry.java

25 lines
524 B
Java
Raw Normal View History

package appeng.core.features.registries;
2014-07-09 22:07:53 +02:00
import com.mojang.authlib.GameProfile;
import net.minecraft.entity.player.EntityPlayer;
import appeng.api.features.IPlayerRegistry;
import appeng.core.WorldSettings;
public class PlayerRegistry implements IPlayerRegistry
{
@Override
2014-07-09 22:07:53 +02:00
public int getID(GameProfile username)
{
return WorldSettings.getInstance().getPlayerID( username );
}
@Override
public int getID(EntityPlayer player)
{
2014-07-09 22:07:53 +02:00
return WorldSettings.getInstance().getPlayerID( player.getGameProfile() );
}
}