mirror of
https://github.com/GTNewHorizons/ThaumicTinkerer.git
synced 2026-11-28 16:06:07 +00:00
More 1.7.2 stuff
This commit is contained in:
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);
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user