当前位置: 首页>>代码示例>>Java>>正文


Java IPlayerFileData类代码示例

本文整理汇总了Java中net.minecraft.world.storage.IPlayerFileData的典型用法代码示例。如果您正苦于以下问题:Java IPlayerFileData类的具体用法?Java IPlayerFileData怎么用?Java IPlayerFileData使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


IPlayerFileData类属于net.minecraft.world.storage包,在下文中一共展示了IPlayerFileData类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: loadResearch

import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
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);
}
 
开发者ID:makeoo,项目名称:Gadomancy,代码行数:29,代码来源:TileInfusionClaw.java

示例2: getSaveHandler

import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
public IPlayerFileData getSaveHandler() {
    return null;
}
 
开发者ID:sameer,项目名称:ExtraUtilities,代码行数:4,代码来源:FakeWorld.java

示例3: firePlayerLoadingEvent

import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
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));
}
 
开发者ID:SchrodingersSpy,项目名称:TRHS_Club_Mod_2016,代码行数:7,代码来源:ForgeEventFactory.java

示例4: getPlayerNBTManager

import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
@Override
public IPlayerFileData getPlayerNBTManager() {
    return null;
}
 
开发者ID:gegy1000,项目名称:BlockSystems,代码行数:5,代码来源:BlockSystemSaveHandler.java

示例5: getSaveHandler

import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
/**
 * returns null if no saveHandler is relevent (eg. SMP)
 */
public IPlayerFileData getSaveHandler()
{
    return this;
}
 
开发者ID:jtrent238,项目名称:PopularMMOS-EpicProportions-Mod,代码行数:8,代码来源:SaveHandler.java

示例6: getPlayerNBTManager

import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
@Override
public IPlayerFileData getPlayerNBTManager() {
	return null;
}
 
开发者ID:OreCruncher,项目名称:Restructured,代码行数:5,代码来源:SaveHandler.java

示例7: getSaveHandler

import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
@Override
public IPlayerFileData getSaveHandler() {
	return null;
}
 
开发者ID:OreCruncher,项目名称:ThermalRecycling,代码行数:5,代码来源:SaveHandler.java

示例8: getSaveHandler

import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
@Override
public IPlayerFileData getSaveHandler() {
    return null;
}
 
开发者ID:makeoo,项目名称:Gadomancy,代码行数:5,代码来源:FakeWorld.java

示例9: getSaveHandler

import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
@Override
public IPlayerFileData getSaveHandler() {

    return null;
}
 
开发者ID:amadornes,项目名称:Framez,代码行数:6,代码来源:FakeWorldServer.java

示例10: func_75756_e

import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
public IPlayerFileData func_75756_e() {
   return null;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:4,代码来源:SaveHandlerMP.java

示例11: func_75756_e

import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
public IPlayerFileData func_75756_e() {
   return this;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:4,代码来源:SaveHandler.java

示例12: getPlayerNBTManager

import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
@Override public IPlayerFileData getPlayerNBTManager() { return parent.getPlayerNBTManager(); } 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:2,代码来源:WorldSpecificSaveHandler.java

示例13: func_75756_e

import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
@Override public IPlayerFileData func_75756_e() { return parent.func_75756_e(); } 
开发者ID:SchrodingersSpy,项目名称:TRHS_Club_Mod_2016,代码行数:2,代码来源:WorldSpecificSaveHandler.java

示例14: getSaveHandler

import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
@Override public IPlayerFileData getSaveHandler() { return parent.getSaveHandler(); } 
开发者ID:alexandrage,项目名称:CauldronGit,代码行数:2,代码来源:WorldSpecificSaveHandler.java

示例15: getPlayerNBTManager

import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
public IPlayerFileData getPlayerNBTManager() { return null; } 
开发者ID:copygirl,项目名称:WearableBackpacks,代码行数:2,代码来源:GuiEntityRender.java


注:本文中的net.minecraft.world.storage.IPlayerFileData类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。