public class WorldServer extends World implements IThreadListener, IForgeWorldServer
| Modifier and Type | Field and Description |
|---|---|
java.util.List<Teleporter> |
customTeleporters |
boolean |
disableLevelSaving |
protected java.util.Set<ChunkPos> |
doneChunks
Stores the recently processed (lighting) chunks
|
protected VillageSiege |
villageSiege |
captureBlockSnapshots, capturedBlockSnapshots, chunkProvider, dimension, DIST_HASH_MAGIC, entitiesById, eventListeners, isRemote, loadedEntityList, loadedTileEntityList, pathListener, playerEntities, prevRainingStrength, prevThunderingStrength, profiler, rainingStrength, rand, restoringBlockSnapshots, saveHandler, spawnHostileMobs, spawnPeacefulMobs, thunderingStrength, tickableTileEntities, unloadedEntityList, updateLCG, villageCollection, weatherEffects, worldInfo| Constructor and Description |
|---|
WorldServer(MinecraftServer p_i49819_1_,
ISaveHandler p_i49819_2_,
WorldSavedDataStorage p_i49819_3_,
WorldInfo p_i49819_4_,
DimensionType p_i49819_5_,
Profiler p_i49819_6_) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBlockEvent(BlockPos pos,
Block blockIn,
int eventID,
int eventParam) |
com.google.common.util.concurrent.ListenableFuture<java.lang.Object> |
addScheduledTask(java.lang.Runnable runnableToSchedule) |
boolean |
addWeatherEffect(Entity entityIn) |
protected BlockPos |
adjustPosToNearbyEntity(BlockPos pos) |
boolean |
areAllPlayersAsleep() |
boolean |
canCreatureTypeSpawnHere(EnumCreatureType creatureType,
Biome.SpawnListEntry spawnListEntry,
BlockPos pos) |
boolean |
canMineBlockBody(EntityPlayer player,
BlockPos pos) |
void |
close() |
protected void |
createBonusChest() |
protected IChunkProvider |
createChunkProvider() |
Explosion |
createExplosion(Entity entityIn,
DamageSource damageSourceIn,
double x,
double y,
double z,
float strength,
boolean causesFire,
boolean damagesTerrain) |
BlockPos |
findNearestStructure(java.lang.String name,
BlockPos pos,
int radius,
boolean p_211157_4_) |
void |
flushToDisk() |
WorldServer |
func_212251_i__() |
void |
func_212420_a(java.util.stream.Stream<Entity> p_212420_1_) |
ChunkProviderServer |
getChunkProvider() |
java.io.File |
getChunkSaveLocation() |
Teleporter |
getDefaultTeleporter() |
Entity |
getEntityFromUuid(java.util.UUID uuid) |
EntityTracker |
getEntityTracker() |
ServerTickList<Block> |
getPendingBlockTicks() |
ServerTickList<Fluid> |
getPendingFluidTicks() |
PlayerChunkMap |
getPlayerChunkMap() |
RecipeManager |
getRecipeManager() |
ServerScoreboard |
getScoreboard() |
MinecraftServer |
getServer() |
BlockPos |
getSpawnCoordinate() |
Biome.SpawnListEntry |
getSpawnListEntryForTypeAt(EnumCreatureType creatureType,
BlockPos pos) |
TemplateManager |
getStructureTemplateManager() |
NetworkTagManager |
getTags() |
void |
initialize(WorldSettings settings) |
boolean |
isBlockModifiable(EntityPlayer player,
BlockPos pos) |
boolean |
isCallingFromMinecraftThread() |
boolean |
isChunkLoaded(int p_201697_1_,
int p_201697_2_) |
boolean |
isChunkLoaded(int x,
int z,
boolean allowEmpty) |
boolean |
isInsideTick() |
void |
onEntityAdded(Entity entityIn) |
void |
onEntityRemoved(Entity entityIn) |
protected void |
playerCheckLight() |
void |
resetUpdateEntityTick() |
void |
saveAllChunks(boolean all,
IProgressUpdate progressCallback) |
protected void |
saveLevel() |
void |
setEntityState(Entity entityIn,
byte state) |
void |
setInitialSpawnLocation() |
boolean |
spawnEntity(Entity entityIn) |
<T extends IParticleData> |
spawnParticle(EntityPlayerMP p_195600_1_,
T p_195600_2_,
boolean p_195600_3_,
double p_195600_4_,
double p_195600_6_,
double p_195600_8_,
int p_195600_10_,
double p_195600_11_,
double p_195600_13_,
double p_195600_15_,
double p_195600_17_) |
<T extends IParticleData> |
spawnParticle(T p_195598_1_,
double p_195598_2_,
double p_195598_4_,
double p_195598_6_,
int p_195598_8_,
double p_195598_9_,
double p_195598_11_,
double p_195598_13_,
double p_195598_15_) |
void |
tick(java.util.function.BooleanSupplier p_72835_1_) |
protected void |
tickBlocks() |
void |
tickEntities() |
void |
tickEntity(Entity entityIn,
boolean forceUpdate) |
void |
tickPending() |
protected void |
tickPlayers() |
protected void |
tickWeather() |
void |
updateAllPlayersSleepingFlag() |
protected void |
wakeAllPlayers() |
addEventListener, addOptionalParticle, addParticle, addTileEntities, addTileEntity, calculateInitialSkylight, calculateInitialWeather, calculateInitialWeatherBody, calculateSkylightSubtracted, canSeeSky, checkBlockCollision, checkLight, checkLightFor, checkNoEntityCollision, checkSessionLock, countEntities, countEntities, createExplosion, destroyBlock, extinguishFire, fillCrashReport, findBlockstateInArea, findNearestEntityWithinAABB, func_212392_a, func_212412_ag, func_212414_b, func_212416_f, func_212417_b, func_212419_R, func_212817_a, getActualHeight, getBiome, getBiomeBody, getBlockDensity, getBlockState, getCelestialAngleRadians, getChunk, getChunk, getChunksLowestHorizon, getClosestPlayer, getCloudColorBody, getCloudColour, getCombinedLight, getDayTime, getDebugLoadedEntities, getDifficultyForLocation, getDimension, getEntities, getEntitiesInAABBexcluding, getEntitiesWithinAABB, getEntitiesWithinAABB, getEntityByID, getFluidState, getFogColor, getGameRules, getGameTime, getGroundAboveSeaLevel, getHeight, getHeight, getHorizon, getLastLightningBolt, getLightFor, getLightFromNeighborsFor, getLightSubtracted, getMapStorage, getMaxEntityRadius, getNearestAttackablePlayer, getNearestAttackablePlayer, getNearestAttackablePlayer, getPlayerEntityByName, getPlayerEntityByUUID, getPlayers, getProviderName, getRainStrength, getRandom, getRedstonePower, getRedstonePowerFromNeighbors, getSaveHandler, getSeaLevel, getSeed, getSkyColor, getSkyColorBody, getSkylightSubtracted, getSpawnPoint, getStarBrightness, getStrongPower, getStrongPower, getSunBrightness, getSunBrightnessBody, getSunBrightnessFactor, getThunderStrength, getTileEntity, getVillageCollection, getWorld, getWorldBorder, getWorldInfo, getWorldType, increaseMaxEntityRadius, initCapabilities, isAirBlock, isAnyPlayerWithinRangeAt, isBlockFullCube, isBlockinHighHumidity, isBlockPowered, isBlockPresent, isDaytime, isFlammableWithin, isMaterialInBB, isOutsideBuildHeight, isRaining, isRainingAt, isRemote, isSidePowered, isSpawnChunk, isThundering, isTopSolid, isValid, joinEntityInSurroundings, makeFireworks, markAndNotifyBlock, markBlockRangeForRenderUpdate, markBlockRangeForRenderUpdate, markBlocksDirtyVertical, markChunkDirty, markTileEntityForRemoval, neighborChanged, newExplosion, notifyBlockUpdate, notifyLightSet, notifyNeighbors, notifyNeighborsOfStateChange, notifyNeighborsOfStateExcept, playBroadcastSound, playEvent, playEvent, playMoodSoundAndCheckLight, playRecord, playSound, playSound, playSound, rayTraceBlocks, rayTraceBlocks, rayTraceBlocks, removeBlock, removeEntity, removeEntity, removeEntityDangerously, removeEntityDangerously, removeEventListener, removeTileEntity, sendBlockBreakProgress, sendPacketToServer, sendQuittingDisconnectingPacket, setAllowedSpawnTypes, setBlockState, setBlockState, setDayTime, setLastLightningBolt, setLightFor, setRainStrength, setSeaLevel, setSkylightSubtracted, setSpawnPoint, setThunderStrength, setTileEntity, setTotalWorldTime, spawnParticle, tickEntity, unloadEntities, updateComparatorOutputLevel, updateWeatherBodyareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetWorldServergetMaxEntityRadius, increaseMaxEntityRadiusgetCapability, getCapabilitygetCollisionBoxes, getEntitiesWithinAABBExcludingEntitygetCelestialAngle, getChunkDefault, getCurrentMoonPhaseFactor, getDifficulty, getMoonPhasefunc_212409_a, func_212410_a, func_212411_acanBlockSeeSky, checkNoEntityCollision, checkNoEntityCollision, containsAnyLiquid, func_212388_b, func_212389_a, func_212391_a, getBrightness, getClosestPlayer, getClosestPlayerToEntity, getCollisionBoxes, getHeight, getLight, getNearestPlayerNotCreative, getNeighborAwareLightSubtracted, hasWater, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isBlockLoaded, isBlockLoaded, isCollisionBoxesEmpty, isCollisionBoxesEmpty, isInsideWorldBordergetMaxLightLevelpublic boolean disableLevelSaving
protected final VillageSiege villageSiege
protected java.util.Set<ChunkPos> doneChunks
public java.util.List<Teleporter> customTeleporters
public WorldServer(MinecraftServer p_i49819_1_, ISaveHandler p_i49819_2_, WorldSavedDataStorage p_i49819_3_, WorldInfo p_i49819_4_, DimensionType p_i49819_5_, Profiler p_i49819_6_)
public WorldServer func_212251_i__()
public boolean isInsideTick()
@Nullable public Biome.SpawnListEntry getSpawnListEntryForTypeAt(EnumCreatureType creatureType, BlockPos pos)
public boolean canCreatureTypeSpawnHere(EnumCreatureType creatureType, Biome.SpawnListEntry spawnListEntry, BlockPos pos)
public void updateAllPlayersSleepingFlag()
updateAllPlayersSleepingFlag in class Worldpublic ServerScoreboard getScoreboard()
getScoreboard in class Worldprotected void wakeAllPlayers()
public boolean areAllPlayersAsleep()
public void setInitialSpawnLocation()
setInitialSpawnLocation in class Worldpublic boolean isChunkLoaded(int x,
int z,
boolean allowEmpty)
isChunkLoaded in interface IWorldReaderBasepublic boolean isChunkLoaded(int p_201697_1_,
int p_201697_2_)
protected void playerCheckLight()
protected void tickBlocks()
tickBlocks in class Worldpublic void tickEntities()
tickEntities in class Worldprotected void tickPlayers()
tickPlayers in class Worldpublic void resetUpdateEntityTick()
public void tickPending()
public void tickEntity(Entity entityIn, boolean forceUpdate)
tickEntity in class Worldprotected IChunkProvider createChunkProvider()
createChunkProvider in class Worldpublic 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()
@Nullable public BlockPos getSpawnCoordinate()
public void saveAllChunks(boolean all,
@Nullable
IProgressUpdate progressCallback)
throws SessionLockException
SessionLockExceptionpublic void flushToDisk()
protected void saveLevel()
throws SessionLockException
SessionLockExceptionpublic boolean spawnEntity(Entity entityIn)
spawnEntity in interface IWorldWriterspawnEntity in class Worldpublic void func_212420_a(java.util.stream.Stream<Entity> p_212420_1_)
func_212420_a in class Worldpublic void onEntityAdded(Entity entityIn)
onEntityAdded in class Worldpublic void onEntityRemoved(Entity entityIn)
onEntityRemoved in class Worldpublic boolean addWeatherEffect(Entity entityIn)
addWeatherEffect in class Worldpublic void setEntityState(Entity entityIn, byte state)
setEntityState in class Worldpublic ChunkProviderServer getChunkProvider()
getChunkProvider in interface IWorldgetChunkProvider in class Worldpublic Explosion createExplosion(@Nullable Entity entityIn, DamageSource damageSourceIn, double x, double y, double z, float strength, boolean causesFire, boolean damagesTerrain)
createExplosion in class Worldpublic void addBlockEvent(BlockPos pos, Block blockIn, int eventID, int eventParam)
addBlockEvent in class Worldpublic void close()
protected void tickWeather()
tickWeather in class Worldpublic ServerTickList<Block> getPendingBlockTicks()
getPendingBlockTicks in interface IWorldpublic ServerTickList<Fluid> getPendingFluidTicks()
getPendingFluidTicks in interface IWorld@Nonnull public MinecraftServer getServer()
public EntityTracker getEntityTracker()
public PlayerChunkMap getPlayerChunkMap()
public Teleporter getDefaultTeleporter()
public TemplateManager getStructureTemplateManager()
public <T extends IParticleData> int spawnParticle(T p_195598_1_, double p_195598_2_, double p_195598_4_, double p_195598_6_, int p_195598_8_, double p_195598_9_, double p_195598_11_, double p_195598_13_, double p_195598_15_)
public <T extends IParticleData> boolean spawnParticle(EntityPlayerMP p_195600_1_, T p_195600_2_, boolean p_195600_3_, double p_195600_4_, double p_195600_6_, double p_195600_8_, int p_195600_10_, double p_195600_11_, double p_195600_13_, double p_195600_15_, double p_195600_17_)
@Nullable public Entity getEntityFromUuid(java.util.UUID uuid)
public com.google.common.util.concurrent.ListenableFuture<java.lang.Object> addScheduledTask(java.lang.Runnable runnableToSchedule)
addScheduledTask in interface IThreadListenerpublic boolean isCallingFromMinecraftThread()
isCallingFromMinecraftThread in interface IThreadListener@Nullable public BlockPos findNearestStructure(java.lang.String name, BlockPos pos, int radius, boolean p_211157_4_)
findNearestStructure in class Worldpublic RecipeManager getRecipeManager()
getRecipeManager in class Worldpublic NetworkTagManager getTags()
public java.io.File getChunkSaveLocation()
getChunkSaveLocation in interface IForgeWorldServer