Applied-Energistics-2-tiler.../core/features/registries/PlayerRegistry.java
2014-07-25 21:52:21 -05:00

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() );
}
}