本文整理汇总了Java中net.minecraft.world.storage.SaveHandlerMP类的典型用法代码示例。如果您正苦于以下问题:Java SaveHandlerMP类的具体用法?Java SaveHandlerMP怎么用?Java SaveHandlerMP使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SaveHandlerMP类属于net.minecraft.world.storage包,在下文中一共展示了SaveHandlerMP类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: WorldClient
import net.minecraft.world.storage.SaveHandlerMP; //导入依赖的package包/类
public WorldClient(NetHandlerPlayClient p_i45063_1_, WorldSettings p_i45063_2_, int p_i45063_3_, EnumDifficulty p_i45063_4_, Profiler p_i45063_5_)
{
super(new SaveHandlerMP(), new WorldInfo(p_i45063_2_, "MpServer"), WorldProvider.getProviderForDimension(p_i45063_3_), p_i45063_5_, true);
this.sendQueue = p_i45063_1_;
this.getWorldInfo().setDifficulty(p_i45063_4_);
this.provider.registerWorld(this);
this.setSpawnPoint(new BlockPos(8, 64, 8));
this.chunkProvider = this.createChunkProvider();
this.mapStorage = new SaveDataMemoryStorage();
this.calculateInitialSkylight();
this.calculateInitialWeather();
Reflector.postForgeBusEvent(Reflector.WorldEvent_Load_Constructor, new Object[] {this});
if (this.mc.playerController != null && this.mc.playerController.getClass() == PlayerControllerMP.class)
{
this.mc.playerController = new PlayerControllerOF(this.mc, p_i45063_1_);
}
}
示例2: WorldClient
import net.minecraft.world.storage.SaveHandlerMP; //导入依赖的package包/类
public WorldClient(NetHandlerPlayClient netHandler, WorldSettings settings, int dimension, EnumDifficulty difficulty, Profiler profilerIn)
{
super(new SaveHandlerMP(), new WorldInfo(settings, "MpServer"), makeWorldProvider(dimension), profilerIn, true);
this.ambienceTicks = this.rand.nextInt(12000);
this.viewableChunks = Sets.<ChunkPos>newHashSet();
this.connection = netHandler;
this.getWorldInfo().setDifficulty(difficulty);
this.provider.registerWorld(this);
this.setSpawnPoint(new BlockPos(8, 64, 8));
this.chunkProvider = this.createChunkProvider();
this.mapStorage = new SaveDataMemoryStorage();
this.calculateInitialSkylight();
this.calculateInitialWeather();
Reflector.call(this, Reflector.ForgeWorld_initCapabilities, new Object[0]);
Reflector.postForgeBusEvent(Reflector.WorldEvent_Load_Constructor, new Object[] {this});
if (this.mc.playerController != null && this.mc.playerController.getClass() == PlayerControllerMP.class)
{
this.mc.playerController = new PlayerControllerOF(this.mc, netHandler);
}
}
示例3: WorldClient
import net.minecraft.world.storage.SaveHandlerMP; //导入依赖的package包/类
public WorldClient(NetHandlerPlayClient netHandler, WorldSettings settings, int dimension, EnumDifficulty difficulty, Profiler profilerIn)
{
super(new SaveHandlerMP(), new WorldInfo(settings, "MpServer"), net.minecraftforge.common.DimensionManager.createProviderFor(dimension), profilerIn, true);
this.ambienceTicks = this.rand.nextInt(12000);
this.viewableChunks = Sets.<ChunkPos>newHashSet();
this.connection = netHandler;
this.getWorldInfo().setDifficulty(difficulty);
this.provider.registerWorld(this);
this.setSpawnPoint(new BlockPos(8, 64, 8)); //Forge: Moved below registerWorld to prevent NPE in our redirect.
this.chunkProvider = this.createChunkProvider();
this.mapStorage = new SaveDataMemoryStorage();
this.calculateInitialSkylight();
this.calculateInitialWeather();
this.initCapabilities();
net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(new net.minecraftforge.event.world.WorldEvent.Load(this));
}
示例4: WorldClient
import net.minecraft.world.storage.SaveHandlerMP; //导入依赖的package包/类
public WorldClient(NetHandlerPlayClient p_i45063_1_, WorldSettings p_i45063_2_, int p_i45063_3_, EnumDifficulty p_i45063_4_, Profiler p_i45063_5_)
{
super(new SaveHandlerMP(), new WorldInfo(p_i45063_2_, "MpServer"), WorldProvider.getProviderForDimension(p_i45063_3_), p_i45063_5_, true);
this.sendQueue = p_i45063_1_;
this.getWorldInfo().setDifficulty(p_i45063_4_);
this.setSpawnPoint(new BlockPos(8, 64, 8));
this.provider.registerWorld(this);
this.chunkProvider = this.createChunkProvider();
this.mapStorage = new SaveDataMemoryStorage();
this.calculateInitialSkylight();
this.calculateInitialWeather();
}
示例5: WorldClient
import net.minecraft.world.storage.SaveHandlerMP; //导入依赖的package包/类
public WorldClient(NetHandlerPlayClient p_i45063_1_, WorldSettings p_i45063_2_, int p_i45063_3_, EnumDifficulty p_i45063_4_, Profiler p_i45063_5_)
{
super(new SaveHandlerMP(), new WorldInfo(p_i45063_2_, "MpServer"), WorldProvider.getProviderForDimension(p_i45063_3_), p_i45063_5_, true);
this.sendQueue = p_i45063_1_;
this.getWorldInfo().setDifficulty(p_i45063_4_);
this.provider.registerWorld(this);
this.setSpawnPoint(new BlockPos(8, 64, 8));
this.chunkProvider = this.createChunkProvider();
this.mapStorage = new SaveDataMemoryStorage();
this.calculateInitialSkylight();
this.calculateInitialWeather();
}
示例6: WorldClient
import net.minecraft.world.storage.SaveHandlerMP; //导入依赖的package包/类
public WorldClient(NetHandlerPlayClient p_i45063_1_, WorldSettings p_i45063_2_, int p_i45063_3_, EnumDifficulty p_i45063_4_, Profiler p_i45063_5_)
{
super(new SaveHandlerMP(), "MpServer", WorldProvider.getProviderForDimension(p_i45063_3_), p_i45063_2_, p_i45063_5_);
this.sendQueue = p_i45063_1_;
this.difficultySetting = p_i45063_4_;
this.setSpawnLocation(8, 64, 8);
this.mapStorage = p_i45063_1_.mapStorageOrigin;
}
示例7: WorldClient
import net.minecraft.world.storage.SaveHandlerMP; //导入依赖的package包/类
public WorldClient(NetHandlerPlayClient netHandler, WorldSettings settings, int dimension, EnumDifficulty difficulty, Profiler profilerIn)
{
super(new SaveHandlerMP(), new WorldInfo(settings, "MpServer"), net.minecraftforge.common.DimensionManager.createProviderFor(dimension), profilerIn, true);
this.ambienceTicks = this.rand.nextInt(12000);
this.viewableChunks = Sets.<ChunkPos>newHashSet();
this.connection = netHandler;
this.getWorldInfo().setDifficulty(difficulty);
this.provider.registerWorld(this);
this.setSpawnPoint(new BlockPos(8, 64, 8)); //Forge: Moved below registerWorld to prevent NPE in our redirect.
this.chunkProvider = this.createChunkProvider();
this.mapStorage = new SaveDataMemoryStorage();
this.calculateInitialSkylight();
this.calculateInitialWeather();
net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(new net.minecraftforge.event.world.WorldEvent.Load(this));
}
示例8: WorldClient
import net.minecraft.world.storage.SaveHandlerMP; //导入依赖的package包/类
public WorldClient(NetHandlerPlayClient p_i45063_1_, WorldSettings p_i45063_2_, int p_i45063_3_, EnumDifficulty p_i45063_4_, Profiler p_i45063_5_)
{
super(new SaveHandlerMP(), "MpServer", WorldProvider.getProviderForDimension(p_i45063_3_), p_i45063_2_, p_i45063_5_);
this.sendQueue = p_i45063_1_;
this.difficultySetting = p_i45063_4_;
this.mapStorage = p_i45063_1_.mapStorageOrigin;
this.isRemote = true;
this.finishSetup();
this.setSpawnLocation(8, 64, 8);
MinecraftForge.EVENT_BUS.post(new WorldEvent.Load(this));
}
示例9: WorldClient
import net.minecraft.world.storage.SaveHandlerMP; //导入依赖的package包/类
public WorldClient(NetClientHandler p_i1188_1_, WorldSettings p_i1188_2_, int p_i1188_3_, int p_i1188_4_, Profiler p_i1188_5_, ILogAgent p_i1188_6_) {
super(new SaveHandlerMP(), "MpServer", WorldProvider.func_76570_a(p_i1188_3_), p_i1188_2_, p_i1188_5_, p_i1188_6_);
this.field_73035_a = p_i1188_1_;
this.field_73013_u = p_i1188_4_;
this.func_72950_A(8, 64, 8);
this.field_72988_C = p_i1188_1_.field_72558_b;
}
示例10: WorldClient
import net.minecraft.world.storage.SaveHandlerMP; //导入依赖的package包/类
public WorldClient(NetClientHandler par1NetClientHandler, WorldSettings par2WorldSettings, int par3, int par4, Profiler par5Profiler, ILogAgent par6ILogAgent)
{
super(new SaveHandlerMP(), "MpServer", WorldProvider.getProviderForDimension(par3), par2WorldSettings, par5Profiler, par6ILogAgent);
this.sendQueue = par1NetClientHandler;
this.difficultySetting = par4;
this.mapStorage = par1NetClientHandler.mapStorage;
this.isRemote = true;
finishSetup();
this.setSpawnLocation(8, 64, 8);
MinecraftForge.EVENT_BUS.post(new WorldEvent.Load(this));
}