mirror of
https://github.com/GTNewHorizons/ThaumicTinkerer.git
synced 2026-11-28 16:06:07 +00:00
Fixed AE API to stop crash with RV1 : Warning only compatible with AE2 rv1
This commit is contained in:
1 parent
cf600636bf
commit
6365e45ac8
158 files changed
+1674
-931
No files matched your search
@@ -2,6 +2,8 @@ package appeng.api.features;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
|
||||
import com.mojang.authlib.GameProfile;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
@@ -10,21 +12,21 @@ public interface IPlayerRegistry
|
||||
{
|
||||
|
||||
/**
|
||||
* @param player
|
||||
* @param gameProfile user game profile
|
||||
* @return user id of a username.
|
||||
*/
|
||||
int getID(String username);
|
||||
int getID(GameProfile gameProfile);
|
||||
|
||||
/**
|
||||
* @param player
|
||||
* @param player player
|
||||
* @return user id of a player entity.
|
||||
*/
|
||||
int getID(EntityPlayer player);
|
||||
|
||||
/**
|
||||
* @param id
|
||||
* @return Username of an ID
|
||||
* @param playerID to be found player id
|
||||
* @return PlayerEntity, or null if the player could not be found.
|
||||
*/
|
||||
String getUsername(int id);
|
||||
EntityPlayer findPlayer(int playerID);
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user