public class WorldServer extends World implements IThreadListener
| Modifier and Type | Field and Description |
|---|---|
java.util.List<Teleporter> |
customTeleporters |
boolean |
disableLevelSaving |
protected java.util.Set<ChunkCoordIntPair> |
doneChunks
Stores the recently processed (lighting) chunks
|
ChunkProviderServer |
theChunkProviderServer |
protected VillageSiege |
villageSiege |
activeChunkSet, captureBlockSnapshots, capturedBlockSnapshots, chunkProvider, DIST_HASH_MAGIC, entitiesById, findingSpawnPoint, isRemote, loadedEntityList, loadedTileEntityList, mapStorage, MAX_ENTITY_RADIUS, perWorldStorage, playerEntities, prevRainingStrength, prevThunderingStrength, provider, rainingStrength, rand, restoringBlockSnapshots, saveHandler, scheduledUpdatesAreImmediate, spawnHostileMobs, spawnPeacefulMobs, theProfiler, thunderingStrength, tickableTileEntities, unloadedEntityList, updateLCG, villageCollectionObj, weatherEffects, worldAccesses, worldInfo, worldScoreboard| Constructor and Description |
|---|
WorldServer(MinecraftServer server,
ISaveHandler saveHandlerIn,
WorldInfo info,
int dimensionId,
Profiler profilerIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBlockEvent(BlockPos pos,
Block blockIn,
int eventID,
int eventParam) |
com.google.common.util.concurrent.ListenableFuture |
addScheduledTask(java.lang.Runnable runnableToSchedule) |
boolean |
addWeatherEffect(Entity p_72942_1_) |
boolean |
areAllPlayersAsleep() |
boolean |
canMineBlockBody(EntityPlayer player,
BlockPos pos) |
protected void |
createBonusChest() |
protected IChunkProvider |
createChunkProvider() |
static void |
fillChestHook() |
void |
flush() |
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_) |
java.util.List |
func_175712_a(StructureBoundingBox p_175712_1_,
boolean p_175712_2_) |
boolean |
func_175732_a(EnumCreatureType p_175732_1_,
BiomeGenBase.SpawnListEntry p_175732_2_,
BlockPos p_175732_3_) |
BiomeGenBase.SpawnListEntry |
func_175734_a(EnumCreatureType p_175734_1_,
BlockPos p_175734_2_) |
protected BlockPos |
func_175736_a(BlockPos pos) |
void |
func_180497_b(BlockPos pos,
Block p_180497_2_,
int p_180497_3_,
int p_180497_4_) |
BlockPos |
func_180504_m() |
java.io.File |
getChunkSaveLocation() |
Teleporter |
getDefaultTeleporter() |
Entity |
getEntityFromUuid(java.util.UUID uuid) |
EntityTracker |
getEntityTracker() |
MinecraftServer |
getMinecraftServer() |
java.util.List |
getPendingBlockUpdates(Chunk p_72920_1_,
boolean p_72920_2_) |
PlayerManager |
getPlayerManager() |
protected int |
getRenderDistanceChunks() |
World |
init() |
void |
initialize(WorldSettings settings) |
boolean |
isBlockModifiable(EntityPlayer player,
BlockPos pos) |
boolean |
isBlockTickPending(BlockPos pos,
Block blockType) |
boolean |
isCallingFromMinecraftThread() |
Explosion |
newExplosion(Entity p_72885_1_,
double p_72885_2_,
double p_72885_4_,
double p_72885_6_,
float p_72885_8_,
boolean p_72885_9_,
boolean p_72885_10_) |
void |
onEntityAdded(Entity p_72923_1_) |
void |
onEntityRemoved(Entity p_72847_1_) |
void |
resetUpdateEntityTick() |
void |
saveAllChunks(boolean p_73044_1_,
IProgressUpdate p_73044_2_) |
void |
saveChunkData() |
protected void |
saveLevel() |
void |
scheduleUpdate(BlockPos pos,
Block blockIn,
int delay) |
void |
setEntityState(Entity entityIn,
byte state) |
void |
setInitialSpawnLocation() |
void |
spawnParticle(EnumParticleTypes particleType,
boolean p_180505_2_,
double xCoord,
double yCoord,
double zCoord,
int numberOfParticles,
double xOffset,
double yOffset,
double zOffset,
double p_180505_16_,
int... p_180505_18_) |
void |
spawnParticle(EnumParticleTypes particleType,
double xCoord,
double yCoord,
double zCoord,
int numberOfParticles,
double p_175739_9_,
double p_175739_11_,
double p_175739_13_,
double p_175739_15_,
int... p_175739_17_) |
void |
tick() |
boolean |
tickUpdates(boolean p_72955_1_) |
void |
updateAllPlayersSleepingFlag() |
protected void |
updateBlocks() |
void |
updateBlockTick(BlockPos p_175654_1_,
Block p_175654_2_,
int p_175654_3_,
int p_175654_4_) |
void |
updateEntities() |
void |
updateEntityWithOptionalForce(Entity p_72866_1_,
boolean p_72866_2_) |
protected void |
updateWeather() |
protected void |
wakeAllPlayers() |
addTileEntities, addTileEntity, addWorldAccess, addWorldInfoToCrashReport, calculateInitialSkylight, calculateInitialWeather, calculateInitialWeatherBody, calculateSkylightSubtracted, canBlockBePlaced, canBlockFreeze, canBlockFreezeBody, canBlockSeeSky, canLightningStrike, canSeeSky, canSnowAt, canSnowAtBody, checkBlockCollision, checkLight, checkLightFor, checkNoEntityCollision, checkNoEntityCollision, checkSessionLock, countEntities, countEntities, createExplosion, destroyBlock, doesBlockHaveSolidTopSurface, drawCloudsBody, extendedLevelsInChunkCache, extinguishFire, findNearestEntityWithinAABB, forceBlockUpdateTick, func_147461_a, func_147470_e, func_175636_b, func_175662_w, func_175665_u, func_175674_a, func_175675_v, getActualHeight, getBiomeGenForCoords, getBiomeGenForCoordsBody, getBlockDensity, getBlockLightOpacity, getBlockState, getCelestialAngle, getCelestialAngleRadians, getChunkFromBlockCoords, getChunkFromChunkCoords, getChunkProvider, getChunksLowestHorizon, getClosestPlayer, getClosestPlayerToEntity, getCloudColour, getCollidingBoundingBoxes, getCombinedLight, getCurrentDate, getCurrentMoonPhaseFactor, getCurrentMoonPhaseFactorBody, getDebugLoadedEntities, getDifficulty, getDifficultyForLocation, getEntities, getEntitiesWithinAABB, getEntitiesWithinAABB, getEntitiesWithinAABBExcludingEntity, getEntityByID, getFogColor, getGameRules, getGroundAboveSeaLevel, getHeight, getHorizon, getHorizon, getLastLightningBolt, getLight, getLight, getLightBrightness, getLightFor, getLightFromNeighbors, getLightFromNeighborsFor, getLoadedEntityList, getMapStorage, getMoonPhase, getPersistentChunks, getPerWorldStorage, getPlayerEntityByName, getPlayerEntityByUUID, getPlayers, getPrecipitationHeight, getProviderName, getRainStrength, getRedstonePower, getSaveHandler, getScoreboard, getSeed, getSkyColor, getSkyColorBody, getSkylightSubtracted, getSpawnPoint, getStarBrightness, getStarBrightnessBody, getStrongholdPos, getStrongPower, getStrongPower, getSunBrightness, getSunBrightnessBody, getSunBrightnessFactor, getThunderStrength, getTileEntity, getTopSolidOrLiquidBlock, getTotalWorldTime, getUniqueDataId, getVillageCollection, getWorldBorder, getWorldChunkManager, getWorldInfo, getWorldTime, getWorldType, handleMaterialAcceleration, isAABBInMaterial, isAirBlock, isAnyLiquid, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isBlockIndirectlyGettingPowered, isBlockinHighHumidity, isBlockLoaded, isBlockLoaded, isBlockNormalCube, isBlockPowered, isChunkLoaded, isDaytime, isFindingSpawnPoint, isInsideBorder, isMaterialInBB, isRaining, isSidePowered, isSideSolid, isSideSolid, isSpawnChunk, isThundering, joinEntityInSurroundings, loadEntities, loadItemData, makeFireworks, markAndNotifyBlock, markBlockForUpdate, markBlockRangeForRenderUpdate, markBlockRangeForRenderUpdate, markBlocksDirtyVertical, markChunkDirty, markTileEntityForRemoval, notifyBlockOfStateChange, notifyLightSet, notifyNeighborsOfStateChange, notifyNeighborsOfStateExcept, notifyNeighborsRespectDebug, playAuxSFX, playAuxSFXAtEntity, playBroadcastSound, playMoodSoundAndCheckLight, playRecord, playSound, playSoundAtEntity, playSoundEffect, playSoundToNearExcept, rayTraceBlocks, rayTraceBlocks, rayTraceBlocks, removeEntity, removePlayerEntityDangerously, removeTileEntity, removeWorldAccess, sendBlockBreakProgress, sendQuittingDisconnectingPacket, setActivePlayerChunksAndCheckLight, setAllowedSpawnTypes, setBlockState, setBlockState, setBlockToAir, setItemData, setLastLightningBolt, setLightFor, setRainStrength, setRandomSeed, setSkylightSubtracted, setSpawnPoint, setThunderStrength, setTileEntity, setTotalWorldTime, setWorldTime, spawnEntityInWorld, spawnParticle, spawnParticle, unloadEntities, updateComparatorOutputLevel, updateEntity, updateWeatherBodypublic ChunkProviderServer theChunkProviderServer
public boolean disableLevelSaving
protected final VillageSiege villageSiege
protected java.util.Set<ChunkCoordIntPair> doneChunks
public java.util.List<Teleporter> customTeleporters
public WorldServer(MinecraftServer server, ISaveHandler saveHandlerIn, WorldInfo info, int dimensionId, Profiler profilerIn)
public static void fillChestHook()
public BiomeGenBase.SpawnListEntry func_175734_a(EnumCreatureType p_175734_1_, BlockPos p_175734_2_)
public boolean func_175732_a(EnumCreatureType p_175732_1_, BiomeGenBase.SpawnListEntry p_175732_2_, BlockPos p_175732_3_)
public void updateAllPlayersSleepingFlag()
updateAllPlayersSleepingFlag in class Worldprotected void wakeAllPlayers()
public boolean areAllPlayersAsleep()
public void setInitialSpawnLocation()
setInitialSpawnLocation in class Worldprotected void updateBlocks()
updateBlocks in class Worldpublic boolean isBlockTickPending(BlockPos pos, Block blockType)
isBlockTickPending in class Worldpublic void scheduleUpdate(BlockPos pos, Block blockIn, int delay)
scheduleUpdate in class Worldpublic void updateBlockTick(BlockPos p_175654_1_, Block p_175654_2_, int p_175654_3_, int p_175654_4_)
updateBlockTick in class Worldpublic void func_180497_b(BlockPos pos, Block p_180497_2_, int p_180497_3_, int p_180497_4_)
func_180497_b in class Worldpublic void updateEntities()
updateEntities in class Worldpublic void resetUpdateEntityTick()
public boolean tickUpdates(boolean p_72955_1_)
tickUpdates in class Worldpublic java.util.List getPendingBlockUpdates(Chunk p_72920_1_, boolean p_72920_2_)
getPendingBlockUpdates in class Worldpublic java.util.List func_175712_a(StructureBoundingBox p_175712_1_, boolean p_175712_2_)
func_175712_a in class Worldpublic void updateEntityWithOptionalForce(Entity p_72866_1_, boolean p_72866_2_)
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 isBlockModifiable(EntityPlayer player, BlockPos pos)
isBlockModifiable in class Worldpublic boolean canMineBlockBody(EntityPlayer player, BlockPos pos)
canMineBlockBody in class Worldpublic void initialize(WorldSettings settings)
initialize in class Worldprotected void createBonusChest()
public BlockPos func_180504_m()
public void saveAllChunks(boolean p_73044_1_,
IProgressUpdate p_73044_2_)
throws MinecraftException
MinecraftExceptionpublic void saveChunkData()
protected void saveLevel()
throws MinecraftException
MinecraftExceptionpublic void onEntityAdded(Entity p_72923_1_)
onEntityAdded in class Worldpublic void onEntityRemoved(Entity p_72847_1_)
onEntityRemoved in class Worldpublic boolean addWeatherEffect(Entity p_72942_1_)
addWeatherEffect in class Worldpublic void setEntityState(Entity entityIn, byte state)
setEntityState in class Worldpublic Explosion newExplosion(Entity p_72885_1_, double p_72885_2_, double p_72885_4_, double p_72885_6_, float p_72885_8_, boolean p_72885_9_, boolean p_72885_10_)
newExplosion in class Worldpublic void addBlockEvent(BlockPos pos, Block blockIn, int eventID, int eventParam)
addBlockEvent in class Worldpublic void flush()
protected void updateWeather()
updateWeather in class Worldprotected int getRenderDistanceChunks()
getRenderDistanceChunks in class Worldpublic MinecraftServer getMinecraftServer()
public EntityTracker getEntityTracker()
public PlayerManager getPlayerManager()
public Teleporter getDefaultTeleporter()
public void spawnParticle(EnumParticleTypes particleType, double xCoord, double yCoord, double zCoord, int numberOfParticles, double p_175739_9_, double p_175739_11_, double p_175739_13_, double p_175739_15_, int... p_175739_17_)
public void spawnParticle(EnumParticleTypes particleType, boolean p_180505_2_, double xCoord, double yCoord, double zCoord, int numberOfParticles, double xOffset, double yOffset, double zOffset, double p_180505_16_, int... p_180505_18_)
public Entity getEntityFromUuid(java.util.UUID uuid)
public com.google.common.util.concurrent.ListenableFuture addScheduledTask(java.lang.Runnable runnableToSchedule)
addScheduledTask in interface IThreadListenerpublic boolean isCallingFromMinecraftThread()
isCallingFromMinecraftThread in interface IThreadListenerpublic java.io.File getChunkSaveLocation()