More 1.7.2 stuff

This commit is contained in:
nekosune committed 2014-03-21 23:20:32 +00:00
1 parent 777ad58305
commit cccc40ccdf
469 files changed
+11277 -7405

No files matched your search

@@ -0,0 +1,30 @@
package appeng.api.features;
import net.minecraft.entity.player.EntityPlayer;
/**
* Maintains a save specific list of userids and username combinations this greatly simplifies storage internally and
* gives a common place to look up and get IDs for the security framework.
*/
public interface IPlayerRegistry
{
/**
* @param player
* @return user id of a username.
*/
int getID(String username);
/**
* @param player
* @return user id of a player entity.
*/
int getID(EntityPlayer player);
/**
* @param id
* @return Username of an ID
*/
String getUsername(int id);
}