public class WorldServer extends World
| Modifier and Type | Field and Description |
|---|---|
static WeightedRandomChestContent[] |
bonusChestContent |
java.util.List<Teleporter> |
customTeleporters |
protected java.util.Set<ChunkCoordIntPair> |
doneChunks
Stores the recently processed (lighting) chunks
|
boolean |
levelSaving |
ChunkProviderServer |
theChunkProviderServer |
activeChunkSet, chunkProvider, difficultySetting, DIST_HASH_MAGIC, findingSpawnPoint, isRemote, lastLightningBolt, loadedEntityList, loadedTileEntityList, mapStorage, MAX_ENTITY_RADIUS, perWorldStorage, playerEntities, prevRainingStrength, prevThunderingStrength, provider, rainingStrength, rand, saveHandler, scheduledUpdatesAreImmediate, skylightSubtracted, spawnHostileMobs, spawnPeacefulMobs, theProfiler, thunderingStrength, unloadedEntityList, updateLCG, villageCollectionObj, villageSiegeObj, weatherEffects, worldAccesses, worldInfo, worldScoreboard| Constructor and Description |
|---|
WorldServer(MinecraftServer p_i45284_1_,
ISaveHandler p_i45284_2_,
java.lang.String p_i45284_3_,
int p_i45284_4_,
WorldSettings p_i45284_5_,
Profiler p_i45284_6_) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBlockEvent(int p_147452_1_,
int p_147452_2_,
int p_147452_3_,
Block p_147452_4_,
int p_147452_5_,
int p_147452_6_) |
boolean |
addWeatherEffect(Entity par1Entity) |
boolean |
areAllPlayersAsleep() |
boolean |
canMineBlock(EntityPlayer par1EntityPlayer,
int par2,
int par3,
int par4) |
boolean |
canMineBlockBody(EntityPlayer par1EntityPlayer,
int par2,
int par3,
int par4) |
protected void |
createBonusChest() |
protected IChunkProvider |
createChunkProvider() |
protected void |
createSpawnPosition(WorldSettings par1WorldSettings) |
void |
flush() |
void |
func_147446_b(int p_147446_1_,
int p_147446_2_,
int p_147446_3_,
Block p_147446_4_,
int p_147446_5_,
int p_147446_6_) |
protected void |
func_147456_g() |
java.util.List |
func_147486_a(int p_147486_1_,
int p_147486_2_,
int p_147486_3_,
int p_147486_4_,
int p_147486_5_,
int p_147486_6_) |
void |
func_147487_a(java.lang.String p_147487_1_,
double p_147487_2_,
double p_147487_4_,
double p_147487_6_,
int p_147487_8_,
double p_147487_9_,
double p_147487_11_,
double p_147487_13_,
double p_147487_15_) |
MinecraftServer |
func_73046_m() |
java.io.File |
getChunkSaveLocation() |
Teleporter |
getDefaultTeleporter() |
Entity |
getEntityByID(int par1) |
EntityTracker |
getEntityTracker() |
ChunkCoordinates |
getEntrancePortalLocation() |
java.util.List |
getPendingBlockUpdates(Chunk par1Chunk,
boolean par2) |
PlayerManager |
getPlayerManager() |
protected void |
initialize(WorldSettings par1WorldSettings) |
boolean |
isBlockTickScheduledThisTick(int p_147477_1_,
int p_147477_2_,
int p_147477_3_,
Block p_147477_4_) |
Explosion |
newExplosion(Entity par1Entity,
double par2,
double par4,
double par6,
float par8,
boolean par9,
boolean par10) |
void |
onEntityAdded(Entity par1Entity) |
void |
onEntityRemoved(Entity par1Entity) |
void |
resetUpdateEntityTick() |
void |
saveAllChunks(boolean par1,
IProgressUpdate par2IProgressUpdate) |
void |
saveChunkData() |
protected void |
saveLevel() |
void |
scheduleBlockUpdate(int p_147464_1_,
int p_147464_2_,
int p_147464_3_,
Block p_147464_4_,
int p_147464_5_) |
void |
scheduleBlockUpdateWithPriority(int p_147454_1_,
int p_147454_2_,
int p_147454_3_,
Block p_147454_4_,
int p_147454_5_,
int p_147454_6_) |
void |
setEntityState(Entity par1Entity,
byte par2) |
void |
setSpawnLocation() |
BiomeGenBase.SpawnListEntry |
spawnRandomCreature(EnumCreatureType par1EnumCreatureType,
int par2,
int par3,
int par4) |
void |
tick() |
boolean |
tickUpdates(boolean par1) |
void |
updateAllPlayersSleepingFlag() |
void |
updateEntities() |
void |
updateEntityWithOptionalForce(Entity par1Entity,
boolean par2) |
protected void |
updateWeather() |
protected void |
wakeAllPlayers() |
addLoadedEntities, addTileEntity, addWorldAccess, addWorldInfoToCrashReport, blockExists, calculateInitialSkylight, calculateInitialWeatherBody, calculateSkylightSubtracted, canBlockFreeze, canBlockFreezeBody, canBlockSeeTheSky, canLightningStrikeAt, canPlaceEntityOnSide, canSnowAtBody, checkBlockCollision, checkChunksExist, checkNoEntityCollision, checkNoEntityCollision, checkSessionLock, chunkExists, countEntities, countEntities, createExplosion, destroyBlockInWorldPartially, doChunksNearChunkExist, doesBlockHaveSolidTopSurface, drawCloudsBody, extendedLevelsInChunkCache, extinguishFire, findClosestStructure, findNearestEntityWithinAABB, finishSetup, func_147447_a, func_147448_a, func_147450_X, func_147451_t, func_147453_f, func_147457_a, func_147461_a, func_147462_b, func_147467_a, func_147469_q, func_147470_e, func_147473_B, func_147478_e, func_147479_m, func_147480_a, func_82738_a, getActualHeight, getBiomeGenForCoords, getBiomeGenForCoordsBody, getBlock, getBlockDensity, getBlockLightOpacity, getBlockLightValue_do, getBlockLightValue, getBlockMetadata, getBlockPowerInput, getCelestialAngle, getCelestialAngleRadians, getChunkFromBlockCoords, getChunkFromChunkCoords, getChunkHeightMapMinimum, getChunkProvider, getClosestPlayer, getClosestPlayerToEntity, getClosestVulnerablePlayer, getClosestVulnerablePlayerToEntity, getCloudColour, getCollidingBoundingBoxes, getCurrentDate, getCurrentMoonPhaseFactor, getDebugLoadedEntities, getEntitiesWithinAABB, getEntitiesWithinAABBExcludingEntity, getEntitiesWithinAABBExcludingEntity, getEntityPathToXYZ, getFogColor, getFullBlockLightValue, getGameRules, getHeight, getHeightValue, getHorizon, getIndirectPowerLevelTo, getIndirectPowerOutput, getLightBrightness, getLightBrightnessForSkyBlocks, getLoadedEntityList, getMoonPhase, getPathEntityToEntity, getPersistentChunks, getPlayerEntityByName, getPrecipitationHeight, getProviderName, getRainStrength, getSavedLightValue, getSaveHandler, getScoreboard, getSeed, getSkyBlockTypeBrightness, getSkyColor, getSkyColorBody, getSpawnPoint, getStarBrightness, getStarBrightnessBody, getStrongestIndirectPower, getSunBrightness, getTileEntity, getTopBlock, getTopSolidOrLiquidBlock, getTotalWorldTime, getUniqueDataId, getWeightedThunderStrength, getWorldChunkManager, getWorldInfo, getWorldTime, getWorldVec3Pool, handleMaterialAcceleration, isAABBInMaterial, isAirBlock, isAnyLiquid, isBlockFreezable, isBlockFreezableNaturally, isBlockHighHumidity, isBlockIndirectlyGettingPowered, isBlockNormalCubeDefault, isBlockProvidingPowerTo, isDaytime, isMaterialInBB, isRaining, isSideSolid, isSideSolid, isThundering, joinEntityInSurroundings, loadItemData, makeFireworks, markBlockForUpdate, markBlockRangeForRenderUpdate, markBlocksDirtyVertical, markTileEntityChunkModified, notifyBlockChange, notifyBlockOfNeighborChange, notifyBlocksOfNeighborChange, notifyBlocksOfNeighborChange, playAuxSFX, playAuxSFXAtEntity, playBroadcastSound, playRecord, playSound, playSoundAtEntity, playSoundEffect, playSoundToNearExcept, rayTraceBlocks, rayTraceBlocks, removeEntity, removePlayerEntityDangerously, removeTileEntity, removeWorldAccess, selectEntitiesWithinAABB, sendQuittingDisconnectingPacket, setActivePlayerChunksAndCheckLight, setAllowedSpawnTypes, setBlock, setBlock, setBlockMetadataWithNotify, setBlockToAir, setItemData, setLightValue, setRainStrength, setRandomSeed, setSpawnLocation, setThunderStrength, setTileEntity, setWorldTime, spawnEntityInWorld, spawnParticle, unloadEntities, updateEntity, updateLightByType, updateWeatherBodypublic ChunkProviderServer theChunkProviderServer
public boolean levelSaving
public static final WeightedRandomChestContent[] bonusChestContent
protected java.util.Set<ChunkCoordIntPair> doneChunks
public java.util.List<Teleporter> customTeleporters
public WorldServer(MinecraftServer p_i45284_1_, ISaveHandler p_i45284_2_, java.lang.String p_i45284_3_, int p_i45284_4_, WorldSettings p_i45284_5_, Profiler p_i45284_6_)
public BiomeGenBase.SpawnListEntry spawnRandomCreature(EnumCreatureType par1EnumCreatureType, int par2, int par3, int par4)
public void updateAllPlayersSleepingFlag()
updateAllPlayersSleepingFlag in class Worldprotected void wakeAllPlayers()
public boolean areAllPlayersAsleep()
public void setSpawnLocation()
setSpawnLocation in class Worldprotected void func_147456_g()
func_147456_g in class Worldpublic boolean isBlockTickScheduledThisTick(int p_147477_1_,
int p_147477_2_,
int p_147477_3_,
Block p_147477_4_)
isBlockTickScheduledThisTick in class Worldpublic void scheduleBlockUpdate(int p_147464_1_,
int p_147464_2_,
int p_147464_3_,
Block p_147464_4_,
int p_147464_5_)
scheduleBlockUpdate in class Worldpublic void scheduleBlockUpdateWithPriority(int p_147454_1_,
int p_147454_2_,
int p_147454_3_,
Block p_147454_4_,
int p_147454_5_,
int p_147454_6_)
scheduleBlockUpdateWithPriority in class Worldpublic void func_147446_b(int p_147446_1_,
int p_147446_2_,
int p_147446_3_,
Block p_147446_4_,
int p_147446_5_,
int p_147446_6_)
func_147446_b in class Worldpublic void updateEntities()
updateEntities in class Worldpublic void resetUpdateEntityTick()
public boolean tickUpdates(boolean par1)
tickUpdates in class Worldpublic java.util.List getPendingBlockUpdates(Chunk par1Chunk, boolean par2)
getPendingBlockUpdates in class Worldpublic void updateEntityWithOptionalForce(Entity par1Entity, boolean par2)
updateEntityWithOptionalForce in class Worldprotected IChunkProvider createChunkProvider()
createChunkProvider in class Worldpublic java.util.List func_147486_a(int p_147486_1_,
int p_147486_2_,
int p_147486_3_,
int p_147486_4_,
int p_147486_5_,
int p_147486_6_)
public boolean canMineBlock(EntityPlayer par1EntityPlayer, int par2, int par3, int par4)
canMineBlock in class Worldpublic boolean canMineBlockBody(EntityPlayer par1EntityPlayer, int par2, int par3, int par4)
canMineBlockBody in class Worldprotected void initialize(WorldSettings par1WorldSettings)
initialize in class Worldprotected void createSpawnPosition(WorldSettings par1WorldSettings)
protected void createBonusChest()
public ChunkCoordinates getEntrancePortalLocation()
public void saveAllChunks(boolean par1,
IProgressUpdate par2IProgressUpdate)
throws MinecraftException
MinecraftExceptionpublic void saveChunkData()
protected void saveLevel()
throws MinecraftException
MinecraftExceptionpublic void onEntityAdded(Entity par1Entity)
onEntityAdded in class Worldpublic void onEntityRemoved(Entity par1Entity)
onEntityRemoved in class Worldpublic Entity getEntityByID(int par1)
getEntityByID in class Worldpublic boolean addWeatherEffect(Entity par1Entity)
addWeatherEffect in class Worldpublic void setEntityState(Entity par1Entity, byte par2)
setEntityState in class Worldpublic Explosion newExplosion(Entity par1Entity, double par2, double par4, double par6, float par8, boolean par9, boolean par10)
newExplosion in class Worldpublic void addBlockEvent(int p_147452_1_,
int p_147452_2_,
int p_147452_3_,
Block p_147452_4_,
int p_147452_5_,
int p_147452_6_)
addBlockEvent in class Worldpublic void flush()
protected void updateWeather()
updateWeather in class Worldpublic MinecraftServer func_73046_m()
public EntityTracker getEntityTracker()
public PlayerManager getPlayerManager()
public Teleporter getDefaultTeleporter()
public void func_147487_a(java.lang.String p_147487_1_,
double p_147487_2_,
double p_147487_4_,
double p_147487_6_,
int p_147487_8_,
double p_147487_9_,
double p_147487_11_,
double p_147487_13_,
double p_147487_15_)
public java.io.File getChunkSaveLocation()