Java 类net.minecraft.world.storage.IPlayerFileData 实例源码

项目:Gadomancy    文件:TileInfusionClaw.java   
private void loadResearch(EntityPlayer fakePlayer) {
    boolean online = false;
    for(String username : MinecraftServer.getServer().getAllUsernames()) {
        if(username.equals(player)) {
            online = true;
            break;
        }
    }

    if(online) {
        this.research = ResearchManager.getResearchForPlayer(player);
    } else {
        if(research == null) {
            Thaumcraft.proxy.getCompletedResearch().put(fakePlayer.getCommandSenderName(), new ArrayList<String>());

            IPlayerFileData playerNBTManagerObj = MinecraftServer.getServer().worldServerForDimension(0).getSaveHandler().getSaveHandler();
            SaveHandler sh = (SaveHandler)playerNBTManagerObj;
            File dir = ObfuscationReflectionHelper.getPrivateValue(SaveHandler.class, sh, "playersDirectory", "field_75771_c");
            File file1 = new File(dir, player + ".thaum");
            File file2 = new File(dir, player + ".thaumbak");
            ResearchManager.loadPlayerData(fakePlayer, file1, file2, false);

            this.research = ResearchManager.getResearchForPlayerSafe(fakePlayer.getCommandSenderName());
        }
    }

    Thaumcraft.proxy.getCompletedResearch().put(fakePlayer.getCommandSenderName(), research == null ? new ArrayList<String>() : research);
}
项目:CustomWorldGen    文件:ForgeEventFactory.java   
public static void firePlayerLoadingEvent(EntityPlayer player, IPlayerFileData playerFileData, String uuidString)
{
    SaveHandler sh = (SaveHandler) playerFileData;
    File dir = ObfuscationReflectionHelper.getPrivateValue(SaveHandler.class, sh, "playersDirectory", "field_"+"75771_c");
    MinecraftForge.EVENT_BUS.post(new PlayerEvent.LoadFromFile(player, dir, uuidString));
}
项目:ExtraUtilities    文件:FakeWorld.java   
public IPlayerFileData getSaveHandler() {
    return null;
}
项目:TRHS_Club_Mod_2016    文件:ForgeEventFactory.java   
public static void firePlayerLoadingEvent(EntityPlayer player, IPlayerFileData playerFileData, String uuidString)
{
    SaveHandler sh = (SaveHandler) playerFileData;
    File dir = ObfuscationReflectionHelper.getPrivateValue(SaveHandler.class, sh, "playersDirectory", "field_"+"75771_c");
    MinecraftForge.EVENT_BUS.post(new PlayerEvent.LoadFromFile(player, dir, uuidString));
}
项目:BlockSystems    文件:BlockSystemSaveHandler.java   
@Override
public IPlayerFileData getPlayerNBTManager() {
    return null;
}
项目:PopularMMOS-EpicProportions-Mod    文件:SaveHandler.java   
/**
 * returns null if no saveHandler is relevent (eg. SMP)
 */
public IPlayerFileData getSaveHandler()
{
    return this;
}
项目:Restructured    文件:SaveHandler.java   
@Override
public IPlayerFileData getPlayerNBTManager() {
    return null;
}
项目:CauldronGit    文件:ForgeEventFactory.java   
public static void firePlayerLoadingEvent(EntityPlayer player, IPlayerFileData playerFileData, String uuidString)
{
    SaveHandler sh = (SaveHandler) playerFileData;
    File dir = ObfuscationReflectionHelper.getPrivateValue(SaveHandler.class, sh, "playersDirectory", "field_"+"75771_c");
    MinecraftForge.EVENT_BUS.post(new PlayerEvent.LoadFromFile(player, dir, uuidString));
}
项目:ThermalRecycling    文件:SaveHandler.java   
@Override
public IPlayerFileData getSaveHandler() {
    return null;
}
项目:AdvancedRocketry    文件:DummySaveHandler.java   
@Override
public IPlayerFileData getSaveHandler() {
    return null;
}
项目:Easy-Editors    文件:FakeWorld.java   
@Override
public IPlayerFileData getPlayerNBTManager() {
    return null;
}
项目:Gadomancy    文件:FakeWorld.java   
@Override
public IPlayerFileData getSaveHandler() {
    return null;
}
项目:Framez    文件:FakeWorldServer.java   
@Override
public IPlayerFileData getSaveHandler() {

    return null;
}
项目:Cauldron    文件:ForgeEventFactory.java   
public static void firePlayerLoadingEvent(EntityPlayer player, IPlayerFileData playerFileData, String uuidString)
{
    SaveHandler sh = (SaveHandler) playerFileData;
    File dir = ObfuscationReflectionHelper.getPrivateValue(SaveHandler.class, sh, "playersDirectory", "field_"+"75771_c");
    MinecraftForge.EVENT_BUS.post(new PlayerEvent.LoadFromFile(player, dir, uuidString));
}
项目:Cauldron    文件:ForgeEventFactory.java   
public static void firePlayerLoadingEvent(EntityPlayer player, IPlayerFileData playerFileData, String uuidString)
{
    SaveHandler sh = (SaveHandler) playerFileData;
    File dir = ObfuscationReflectionHelper.getPrivateValue(SaveHandler.class, sh, "playersDirectory", "field_"+"75771_c");
    MinecraftForge.EVENT_BUS.post(new PlayerEvent.LoadFromFile(player, dir, uuidString));
}
项目:Cauldron    文件:ForgeEventFactory.java   
public static void firePlayerLoadingEvent(EntityPlayer player, IPlayerFileData playerFileData, String uuidString)
{
    SaveHandler sh = (SaveHandler) playerFileData;
    File dir = ObfuscationReflectionHelper.getPrivateValue(SaveHandler.class, sh, "playersDirectory", "field_"+"75771_c");
    MinecraftForge.EVENT_BUS.post(new PlayerEvent.LoadFromFile(player, dir, uuidString));
}
项目:RuneCraftery    文件:SaveHandlerMP.java   
public IPlayerFileData func_75756_e() {
   return null;
}
项目:RuneCraftery    文件:SaveHandler.java   
public IPlayerFileData func_75756_e() {
   return this;
}
项目:CustomWorldGen    文件:WorldSpecificSaveHandler.java   
@Override public IPlayerFileData getPlayerNBTManager() { return parent.getPlayerNBTManager(); }
项目:TRHS_Club_Mod_2016    文件:WorldSpecificSaveHandler.java   
@Override public IPlayerFileData func_75756_e() { return parent.func_75756_e(); }
项目:CauldronGit    文件:WorldSpecificSaveHandler.java   
@Override public IPlayerFileData getSaveHandler() { return parent.getSaveHandler(); }
项目:Cauldron    文件:WorldSpecificSaveHandler.java   
@Override public IPlayerFileData getSaveHandler() { return parent.getSaveHandler(); }
项目:Cauldron    文件:WorldSpecificSaveHandler.java   
@Override public IPlayerFileData getSaveHandler() { return parent.getSaveHandler(); }
项目:Cauldron    文件:WorldSpecificSaveHandler.java   
@Override public IPlayerFileData getSaveHandler() { return parent.getSaveHandler(); }
项目:WearableBackpacks    文件:GuiEntityRender.java   
public IPlayerFileData getPlayerNBTManager() { return null; }
项目:RuneCraftery    文件:ISaveHandler.java   
IPlayerFileData func_75756_e();
项目:RuneCraftery    文件:WorldSpecificSaveHandler.java   
@Override public IPlayerFileData getSaveHandler() { return parent.getSaveHandler(); }
项目:RuneCraftery    文件:WorldSpecificSaveHandler.java   
@Override public IPlayerFileData getSaveHandler() { return parent.getSaveHandler(); }
项目:BetterNutritionMod    文件:WorldSpecificSaveHandler.java   
@Override public IPlayerFileData getSaveHandler() { return parent.getSaveHandler(); }