本文整理汇总了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);
}
示例2: getSaveHandler
import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
public IPlayerFileData getSaveHandler() {
return null;
}
示例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));
}
示例4: getPlayerNBTManager
import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
@Override
public IPlayerFileData getPlayerNBTManager() {
return null;
}
示例5: getSaveHandler
import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
/**
* returns null if no saveHandler is relevent (eg. SMP)
*/
public IPlayerFileData getSaveHandler()
{
return this;
}
示例6: getPlayerNBTManager
import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
@Override
public IPlayerFileData getPlayerNBTManager() {
return null;
}
示例7: getSaveHandler
import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
@Override
public IPlayerFileData getSaveHandler() {
return null;
}
示例8: getSaveHandler
import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
@Override
public IPlayerFileData getSaveHandler() {
return null;
}
示例9: getSaveHandler
import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
@Override
public IPlayerFileData getSaveHandler() {
return null;
}
示例10: func_75756_e
import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
public IPlayerFileData func_75756_e() {
return null;
}
示例11: func_75756_e
import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
public IPlayerFileData func_75756_e() {
return this;
}
示例12: getPlayerNBTManager
import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
@Override public IPlayerFileData getPlayerNBTManager() { return parent.getPlayerNBTManager(); }
示例13: func_75756_e
import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
@Override public IPlayerFileData func_75756_e() { return parent.func_75756_e(); }
示例14: getSaveHandler
import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
@Override public IPlayerFileData getSaveHandler() { return parent.getSaveHandler(); }
示例15: getPlayerNBTManager
import net.minecraft.world.storage.IPlayerFileData; //导入依赖的package包/类
public IPlayerFileData getPlayerNBTManager() { return null; }