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_); } }
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); } }
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)); }
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(); }
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(); }
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)); }