public abstract class World extends CapabilityProvider<World> implements IEntityReader, IWorld, IWorldReader, java.lang.AutoCloseable, IForgeWorld
| Modifier | Constructor and Description |
|---|---|
protected |
World(ISaveHandler p_i49813_1_,
WorldSavedDataStorage p_i49813_2_,
WorldInfo p_i49813_3_,
Dimension p_i49813_4_,
Profiler p_i49813_5_,
boolean p_i49813_6_) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBlockEvent(BlockPos pos,
Block blockIn,
int eventID,
int eventParam) |
void |
addEventListener(IWorldEventListener listener) |
void |
addOptionalParticle(IParticleData particleData,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed) |
void |
addParticle(IParticleData particleData,
boolean forceAlwaysRender,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed) |
void |
addTileEntities(java.util.Collection<TileEntity> tileEntityCollection) |
boolean |
addTileEntity(TileEntity tile) |
boolean |
addWeatherEffect(Entity entityIn) |
void |
calculateInitialSkylight() |
protected void |
calculateInitialWeather() |
void |
calculateInitialWeatherBody() |
int |
calculateSkylightSubtracted(float partialTicks) |
boolean |
canMineBlockBody(EntityPlayer player,
BlockPos pos) |
boolean |
canSeeSky(BlockPos pos) |
boolean |
checkBlockCollision(AxisAlignedBB bb) |
boolean |
checkLight(BlockPos pos) |
boolean |
checkLightFor(EnumLightType lightType,
BlockPos pos) |
boolean |
checkNoEntityCollision(Entity entityIn,
VoxelShape shape) |
void |
checkSessionLock() |
void |
close() |
int |
countEntities(java.lang.Class<?> entityType,
int p_72907_2_) |
int |
countEntities(EnumCreatureType type,
int max,
boolean forSpawnCount) |
protected abstract IChunkProvider |
createChunkProvider() |
Explosion |
createExplosion(Entity entityIn,
DamageSource damageSourceIn,
double x,
double y,
double z,
float strength,
boolean causesFire,
boolean damagesTerrain) |
Explosion |
createExplosion(Entity entityIn,
double x,
double y,
double z,
float strength,
boolean damagesTerrain) |
boolean |
destroyBlock(BlockPos pos,
boolean dropBlock) |
boolean |
extinguishFire(EntityPlayer player,
BlockPos pos,
EnumFacing side) |
CrashReportCategory |
fillCrashReport(CrashReport report) |
IBlockState |
findBlockstateInArea(AxisAlignedBB area,
Block blockIn) |
<T extends Entity> |
findNearestEntityWithinAABB(java.lang.Class<? extends T> entityType,
AxisAlignedBB aabb,
T closestTo) |
BlockPos |
findNearestStructure(java.lang.String name,
BlockPos pos,
int radius,
boolean p_211157_4_) |
java.util.stream.Stream<VoxelShape> |
func_212392_a(Entity p_212392_1_,
VoxelShape p_212392_2_,
VoxelShape p_212392_3_,
java.util.Set<Entity> p_212392_4_) |
it.unimi.dsi.fastutil.longs.LongSet |
func_212412_ag() |
boolean |
func_212414_b(int p_212414_1_,
int p_212414_2_,
boolean p_212414_3_) |
boolean |
func_212416_f(int p_212416_1_,
int p_212416_2_) |
boolean |
func_212417_b(double p_212417_1_,
double p_212417_3_,
double p_212417_5_,
double p_212417_7_) |
int |
func_212419_R() |
void |
func_212420_a(java.util.stream.Stream<Entity> p_212420_1_) |
EntityPlayer |
func_212817_a(double p_212817_1_,
double p_212817_3_,
double p_212817_5_) |
int |
getActualHeight() |
Biome |
getBiome(BlockPos pos) |
Biome |
getBiomeBody(BlockPos pos) |
float |
getBlockDensity(Vec3d vec,
AxisAlignedBB bb) |
IBlockState |
getBlockState(BlockPos pos) |
float |
getCelestialAngleRadians(float partialTicks) |
Chunk |
getChunk(BlockPos pos) |
Chunk |
getChunk(int chunkX,
int chunkZ) |
IChunkProvider |
getChunkProvider() |
int |
getChunksLowestHorizon(int x,
int z)
Deprecated.
|
EntityPlayer |
getClosestPlayer(double x,
double y,
double z,
double distance,
java.util.function.Predicate<Entity> predicate) |
Vec3d |
getCloudColorBody(float partialTicks) |
Vec3d |
getCloudColour(float partialTicks) |
int |
getCombinedLight(BlockPos pos,
int lightValue) |
long |
getDayTime() |
java.lang.String |
getDebugLoadedEntities() |
DifficultyInstance |
getDifficultyForLocation(BlockPos pos) |
Dimension |
getDimension() |
<T extends Entity> |
getEntities(java.lang.Class<? extends T> entityType,
java.util.function.Predicate<? super T> filter) |
java.util.List<Entity> |
getEntitiesInAABBexcluding(Entity entityIn,
AxisAlignedBB boundingBox,
java.util.function.Predicate<? super Entity> predicate) |
<T extends Entity> |
getEntitiesWithinAABB(java.lang.Class<? extends T> classEntity,
AxisAlignedBB bb) |
<T extends Entity> |
getEntitiesWithinAABB(java.lang.Class<? extends T> clazz,
AxisAlignedBB aabb,
java.util.function.Predicate<? super T> filter) |
Entity |
getEntityByID(int id) |
IFluidState |
getFluidState(BlockPos pos) |
Vec3d |
getFogColor(float partialTicks) |
GameRules |
getGameRules() |
long |
getGameTime() |
IBlockState |
getGroundAboveSeaLevel(BlockPos pos) |
int |
getHeight() |
int |
getHeight(Heightmap.Type heightmapType,
int x,
int z) |
double |
getHorizon() |
int |
getLastLightningBolt() |
int |
getLightFor(EnumLightType type,
BlockPos pos) |
int |
getLightFromNeighborsFor(EnumLightType type,
BlockPos pos) |
int |
getLightSubtracted(BlockPos pos,
int amount) |
WorldSavedDataStorage |
getMapStorage() |
double |
getMaxEntityRadius()
The maximum radius to scan for entities when trying to check bounding boxes.
|
EntityPlayer |
getNearestAttackablePlayer(BlockPos pos,
double maxXZDistance,
double maxYDistance) |
EntityPlayer |
getNearestAttackablePlayer(double posX,
double posY,
double posZ,
double maxXZDistance,
double maxYDistance,
java.util.function.Function<EntityPlayer,java.lang.Double> playerToDouble,
java.util.function.Predicate<EntityPlayer> predicate) |
EntityPlayer |
getNearestAttackablePlayer(Entity entityIn,
double maxXZDistance,
double maxYDistance) |
EntityPlayer |
getPlayerEntityByName(java.lang.String name) |
EntityPlayer |
getPlayerEntityByUUID(java.util.UUID uuid) |
<T extends Entity> |
getPlayers(java.lang.Class<? extends T> playerType,
java.util.function.Predicate<? super T> filter) |
java.lang.String |
getProviderName() |
float |
getRainStrength(float delta) |
java.util.Random |
getRandom() |
abstract RecipeManager |
getRecipeManager() |
int |
getRedstonePower(BlockPos pos,
EnumFacing facing) |
int |
getRedstonePowerFromNeighbors(BlockPos pos) |
ISaveHandler |
getSaveHandler() |
abstract Scoreboard |
getScoreboard() |
int |
getSeaLevel() |
long |
getSeed() |
MinecraftServer |
getServer() |
Vec3d |
getSkyColor(Entity entityIn,
float partialTicks) |
Vec3d |
getSkyColorBody(Entity entityIn,
float partialTicks) |
int |
getSkylightSubtracted() |
BlockPos |
getSpawnPoint() |
float |
getStarBrightness(float partialTicks) |
int |
getStrongPower(BlockPos pos) |
int |
getStrongPower(BlockPos pos,
EnumFacing direction) |
float |
getSunBrightness(float partialTicks) |
float |
getSunBrightnessBody(float partialTicks) |
float |
getSunBrightnessFactor(float partialTicks) |
abstract NetworkTagManager |
getTags() |
float |
getThunderStrength(float delta) |
TileEntity |
getTileEntity(BlockPos pos) |
VillageCollection |
getVillageCollection() |
World |
getWorld() |
WorldBorder |
getWorldBorder() |
WorldInfo |
getWorldInfo() |
WorldType |
getWorldType() |
double |
increaseMaxEntityRadius(double value)
Increases the max entity radius, this is safe to call with any value.
|
protected void |
initCapabilities() |
void |
initialize(WorldSettings settings) |
boolean |
isAirBlock(BlockPos pos) |
boolean |
isAnyPlayerWithinRangeAt(double x,
double y,
double z,
double range) |
boolean |
isBlockFullCube(BlockPos pos) |
boolean |
isBlockinHighHumidity(BlockPos pos) |
boolean |
isBlockModifiable(EntityPlayer player,
BlockPos pos) |
boolean |
isBlockPowered(BlockPos pos) |
boolean |
isBlockPresent(BlockPos pos) |
boolean |
isDaytime() |
boolean |
isFlammableWithin(AxisAlignedBB bb) |
boolean |
isMaterialInBB(AxisAlignedBB bb,
Material materialIn) |
static boolean |
isOutsideBuildHeight(BlockPos p_189509_0_) |
boolean |
isRaining() |
boolean |
isRainingAt(BlockPos position) |
boolean |
isRemote() |
boolean |
isSidePowered(BlockPos pos,
EnumFacing side) |
boolean |
isSpawnChunk(int x,
int z) |
boolean |
isThundering() |
boolean |
isTopSolid(BlockPos pos) |
static boolean |
isValid(BlockPos p_175701_0_) |
void |
joinEntityInSurroundings(Entity entityIn) |
void |
makeFireworks(double x,
double y,
double z,
double motionX,
double motionY,
double motionZ,
NBTTagCompound compound) |
void |
markAndNotifyBlock(BlockPos pos,
Chunk chunk,
IBlockState iblockstate,
IBlockState newState,
int flags) |
void |
markBlockRangeForRenderUpdate(BlockPos rangeMin,
BlockPos rangeMax) |
void |
markBlockRangeForRenderUpdate(int x1,
int y1,
int z1,
int x2,
int y2,
int z2) |
void |
markBlocksDirtyVertical(int x,
int z,
int y1,
int y2) |
void |
markChunkDirty(BlockPos pos,
TileEntity unusedTileEntity) |
void |
markTileEntityForRemoval(TileEntity tileEntityIn) |
void |
neighborChanged(BlockPos pos,
Block blockIn,
BlockPos fromPos) |
Explosion |
newExplosion(Entity entityIn,
double x,
double y,
double z,
float strength,
boolean causesFire,
boolean damagesTerrain) |
void |
notifyBlockUpdate(BlockPos pos,
IBlockState oldState,
IBlockState newState,
int flags) |
void |
notifyLightSet(BlockPos pos) |
void |
notifyNeighbors(BlockPos pos,
Block blockIn) |
void |
notifyNeighborsOfStateChange(BlockPos pos,
Block blockIn) |
void |
notifyNeighborsOfStateExcept(BlockPos pos,
Block blockType,
EnumFacing skipSide) |
void |
onEntityAdded(Entity entityIn) |
void |
onEntityRemoved(Entity entityIn) |
void |
playBroadcastSound(int id,
BlockPos pos,
int data) |
void |
playEvent(EntityPlayer player,
int type,
BlockPos pos,
int data) |
void |
playEvent(int type,
BlockPos pos,
int data) |
protected void |
playMoodSoundAndCheckLight(int x,
int z,
Chunk chunkIn) |
void |
playRecord(BlockPos pos,
SoundEvent soundEventIn) |
void |
playSound(double x,
double y,
double z,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch,
boolean distanceDelay) |
void |
playSound(EntityPlayer player,
BlockPos pos,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch) |
void |
playSound(EntityPlayer player,
double x,
double y,
double z,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch) |
RayTraceResult |
rayTraceBlocks(Vec3d start,
Vec3d end) |
RayTraceResult |
rayTraceBlocks(Vec3d start,
Vec3d end,
RayTraceFluidMode fluidMode) |
RayTraceResult |
rayTraceBlocks(Vec3d start,
Vec3d end,
RayTraceFluidMode fluidMode,
boolean p_200259_4_,
boolean p_200259_5_) |
boolean |
removeBlock(BlockPos pos) |
void |
removeEntity(Entity entityIn) |
void |
removeEntity(Entity entityIn,
boolean keepData) |
void |
removeEntityDangerously(Entity entityIn) |
void |
removeEntityDangerously(Entity entityIn,
boolean keepData) |
void |
removeEventListener(IWorldEventListener listener) |
void |
removeTileEntity(BlockPos pos) |
void |
sendBlockBreakProgress(int breakerId,
BlockPos pos,
int progress) |
void |
sendPacketToServer(Packet<?> packetIn) |
void |
sendQuittingDisconnectingPacket() |
void |
setAllowedSpawnTypes(boolean hostile,
boolean peaceful) |
boolean |
setBlockState(BlockPos pos,
IBlockState state) |
boolean |
setBlockState(BlockPos pos,
IBlockState newState,
int flags) |
void |
setDayTime(long time) |
void |
setEntityState(Entity entityIn,
byte state) |
void |
setInitialSpawnLocation() |
void |
setLastLightningBolt(int lastLightningBoltIn) |
void |
setLightFor(EnumLightType type,
BlockPos pos,
int lightValue) |
void |
setRainStrength(float strength) |
void |
setSeaLevel(int seaLevelIn) |
void |
setSkylightSubtracted(int newSkylightSubtracted) |
void |
setSpawnPoint(BlockPos pos) |
void |
setThunderStrength(float strength) |
void |
setTileEntity(BlockPos pos,
TileEntity tileEntityIn) |
void |
setTotalWorldTime(long worldTime) |
boolean |
spawnEntity(Entity entityIn) |
void |
spawnParticle(IParticleData particleData,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed) |
void |
tick(java.util.function.BooleanSupplier p_72835_1_) |
protected void |
tickBlocks() |
void |
tickEntities() |
void |
tickEntity(Entity ent) |
void |
tickEntity(Entity entityIn,
boolean forceUpdate) |
protected void |
tickPlayers() |
protected void |
tickWeather() |
void |
unloadEntities(java.util.Collection<Entity> entityCollection) |
void |
updateAllPlayersSleepingFlag() |
void |
updateComparatorOutputLevel(BlockPos pos,
Block blockIn) |
void |
updateWeatherBody() |
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCollisionBoxes, getEntitiesWithinAABBExcludingEntitygetCelestialAngle, getChunkDefault, getCurrentMoonPhaseFactor, getDifficulty, getMoonPhase, getPendingBlockTicks, getPendingFluidTicksfunc_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, isChunkLoaded, isCollisionBoxesEmpty, isCollisionBoxesEmpty, isInsideWorldBordergetMaxLightLevelgetCapability, getCapabilityprotected static final org.apache.logging.log4j.Logger LOGGER
public final java.util.List<Entity> loadedEntityList
protected final java.util.List<Entity> unloadedEntityList
public final java.util.List<TileEntity> loadedTileEntityList
public final java.util.List<TileEntity> tickableTileEntities
public final java.util.List<EntityPlayer> playerEntities
public final java.util.List<Entity> weatherEffects
protected final IntHashMap<Entity> entitiesById
protected int updateLCG
protected final int DIST_HASH_MAGIC
public float prevRainingStrength
public float rainingStrength
public float prevThunderingStrength
public float thunderingStrength
public final java.util.Random rand
public final Dimension dimension
protected PathWorldListener pathListener
protected java.util.List<IWorldEventListener> eventListeners
protected IChunkProvider chunkProvider
protected final ISaveHandler saveHandler
protected WorldInfo worldInfo
public VillageCollection villageCollection
public final Profiler profiler
public final boolean isRemote
protected boolean spawnHostileMobs
protected boolean spawnPeacefulMobs
public boolean restoringBlockSnapshots
public boolean captureBlockSnapshots
public java.util.ArrayList<BlockSnapshot> capturedBlockSnapshots
protected World(ISaveHandler p_i49813_1_, @Nullable WorldSavedDataStorage p_i49813_2_, WorldInfo p_i49813_3_, Dimension p_i49813_4_, Profiler p_i49813_5_, boolean p_i49813_6_)
public Biome getBiome(BlockPos pos)
getBiome in interface IWorldReaderBaseprotected abstract IChunkProvider createChunkProvider()
public void initialize(WorldSettings settings)
public boolean isRemote()
isRemote in interface IWorldReaderBase@Nullable public MinecraftServer getServer()
public void setInitialSpawnLocation()
public IBlockState getGroundAboveSeaLevel(BlockPos pos)
public static boolean isValid(BlockPos p_175701_0_)
public static boolean isOutsideBuildHeight(BlockPos p_189509_0_)
public boolean isAirBlock(BlockPos pos)
isAirBlock in interface IWorldReaderBasepublic boolean setBlockState(BlockPos pos, IBlockState newState, int flags)
setBlockState in interface IWorldWriterpublic void markAndNotifyBlock(BlockPos pos, @Nullable Chunk chunk, IBlockState iblockstate, IBlockState newState, int flags)
public boolean removeBlock(BlockPos pos)
removeBlock in interface IWorldWriterpublic boolean destroyBlock(BlockPos pos, boolean dropBlock)
destroyBlock in interface IWorldWriterpublic boolean setBlockState(BlockPos pos, IBlockState state)
public void notifyBlockUpdate(BlockPos pos, IBlockState oldState, IBlockState newState, int flags)
public void notifyNeighbors(BlockPos pos, Block blockIn)
notifyNeighbors in interface IWorldpublic void markBlocksDirtyVertical(int x,
int z,
int y1,
int y2)
public void markBlockRangeForRenderUpdate(BlockPos rangeMin, BlockPos rangeMax)
public void markBlockRangeForRenderUpdate(int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
public void notifyNeighborsOfStateExcept(BlockPos pos, Block blockType, EnumFacing skipSide)
public boolean canSeeSky(BlockPos pos)
canSeeSky in interface IWorldReaderBasepublic int getLightSubtracted(BlockPos pos, int amount)
getLightSubtracted in interface IWorldReaderBasepublic int getHeight(Heightmap.Type heightmapType, int x, int z)
getHeight in interface IWorldReaderBase@Deprecated
public int getChunksLowestHorizon(int x,
int z)
public int getLightFromNeighborsFor(EnumLightType type, BlockPos pos)
public int getLightFor(EnumLightType type, BlockPos pos)
getLightFor in interface IWorldReaderBasepublic void setLightFor(EnumLightType type, BlockPos pos, int lightValue)
setLightFor in interface IWorldWriterpublic void notifyLightSet(BlockPos pos)
public int getCombinedLight(BlockPos pos, int lightValue)
getCombinedLight in interface IWorldReaderpublic IBlockState getBlockState(BlockPos pos)
getBlockState in interface IBlockReaderpublic IFluidState getFluidState(BlockPos pos)
getFluidState in interface IBlockReaderpublic boolean isDaytime()
@Nullable public RayTraceResult rayTraceBlocks(Vec3d start, Vec3d end)
@Nullable public RayTraceResult rayTraceBlocks(Vec3d start, Vec3d end, RayTraceFluidMode fluidMode)
@Nullable public RayTraceResult rayTraceBlocks(Vec3d start, Vec3d end, RayTraceFluidMode fluidMode, boolean p_200259_4_, boolean p_200259_5_)
public void playSound(@Nullable
EntityPlayer player,
BlockPos pos,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch)
public void playSound(@Nullable
EntityPlayer player,
double x,
double y,
double z,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch)
public void playSound(double x,
double y,
double z,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch,
boolean distanceDelay)
public void playRecord(BlockPos pos, @Nullable SoundEvent soundEventIn)
public void spawnParticle(IParticleData particleData, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
spawnParticle in interface IWorldpublic void addParticle(IParticleData particleData, boolean forceAlwaysRender, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
public void addOptionalParticle(IParticleData particleData, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
public boolean addWeatherEffect(Entity entityIn)
public boolean spawnEntity(Entity entityIn)
spawnEntity in interface IWorldWriterpublic void onEntityAdded(Entity entityIn)
public void onEntityRemoved(Entity entityIn)
public void removeEntity(Entity entityIn)
public void removeEntity(Entity entityIn, boolean keepData)
public void removeEntityDangerously(Entity entityIn)
public void removeEntityDangerously(Entity entityIn, boolean keepData)
public void addEventListener(IWorldEventListener listener)
public void removeEventListener(IWorldEventListener listener)
public int calculateSkylightSubtracted(float partialTicks)
public float getSunBrightnessFactor(float partialTicks)
public float getSunBrightness(float partialTicks)
public float getSunBrightnessBody(float partialTicks)
public float getCelestialAngleRadians(float partialTicks)
public Vec3d getCloudColour(float partialTicks)
public Vec3d getCloudColorBody(float partialTicks)
public Vec3d getFogColor(float partialTicks)
public float getStarBrightness(float partialTicks)
public void tickEntities()
protected void tickPlayers()
public boolean addTileEntity(TileEntity tile)
public void addTileEntities(java.util.Collection<TileEntity> tileEntityCollection)
public void tickEntity(Entity ent)
public void tickEntity(Entity entityIn, boolean forceUpdate)
public boolean checkNoEntityCollision(@Nullable
Entity entityIn,
VoxelShape shape)
checkNoEntityCollision in interface IWorldReaderBasepublic boolean checkBlockCollision(AxisAlignedBB bb)
public boolean isFlammableWithin(AxisAlignedBB bb)
@Nullable public IBlockState findBlockstateInArea(AxisAlignedBB area, Block blockIn)
public boolean isMaterialInBB(AxisAlignedBB bb, Material materialIn)
public Explosion createExplosion(@Nullable Entity entityIn, double x, double y, double z, float strength, boolean damagesTerrain)
public Explosion newExplosion(@Nullable Entity entityIn, double x, double y, double z, float strength, boolean causesFire, boolean damagesTerrain)
public Explosion createExplosion(@Nullable Entity entityIn, @Nullable DamageSource damageSourceIn, double x, double y, double z, float strength, boolean causesFire, boolean damagesTerrain)
public float getBlockDensity(Vec3d vec, AxisAlignedBB bb)
public boolean extinguishFire(@Nullable
EntityPlayer player,
BlockPos pos,
EnumFacing side)
public java.lang.String getDebugLoadedEntities()
public java.lang.String getProviderName()
@Nullable public TileEntity getTileEntity(BlockPos pos)
getTileEntity in interface IBlockReaderpublic void setTileEntity(BlockPos pos, @Nullable TileEntity tileEntityIn)
public void removeTileEntity(BlockPos pos)
public void markTileEntityForRemoval(TileEntity tileEntityIn)
public boolean isBlockFullCube(BlockPos pos)
public boolean isBlockPresent(BlockPos pos)
public boolean isTopSolid(BlockPos pos)
public void calculateInitialSkylight()
public void setAllowedSpawnTypes(boolean hostile,
boolean peaceful)
public void tick(java.util.function.BooleanSupplier p_72835_1_)
protected void calculateInitialWeather()
public void calculateInitialWeatherBody()
public void close()
close in interface java.lang.AutoCloseableprotected void tickWeather()
public void updateWeatherBody()
protected void playMoodSoundAndCheckLight(int x,
int z,
Chunk chunkIn)
protected void tickBlocks()
public boolean checkLight(BlockPos pos)
public boolean checkLightFor(EnumLightType lightType, BlockPos pos)
public java.util.stream.Stream<VoxelShape> func_212392_a(@Nullable Entity p_212392_1_, VoxelShape p_212392_2_, VoxelShape p_212392_3_, java.util.Set<Entity> p_212392_4_)
func_212392_a in interface IWorldReaderBasepublic java.util.List<Entity> getEntitiesInAABBexcluding(@Nullable Entity entityIn, AxisAlignedBB boundingBox, @Nullable java.util.function.Predicate<? super Entity> predicate)
getEntitiesInAABBexcluding in interface IEntityReaderpublic <T extends Entity> java.util.List<T> getEntities(java.lang.Class<? extends T> entityType, java.util.function.Predicate<? super T> filter)
public <T extends Entity> java.util.List<T> getPlayers(java.lang.Class<? extends T> playerType, java.util.function.Predicate<? super T> filter)
public <T extends Entity> java.util.List<T> getEntitiesWithinAABB(java.lang.Class<? extends T> classEntity, AxisAlignedBB bb)
public <T extends Entity> java.util.List<T> getEntitiesWithinAABB(java.lang.Class<? extends T> clazz, AxisAlignedBB aabb, @Nullable java.util.function.Predicate<? super T> filter)
@Nullable public <T extends Entity> T findNearestEntityWithinAABB(java.lang.Class<? extends T> entityType, AxisAlignedBB aabb, T closestTo)
@Nullable public Entity getEntityByID(int id)
public int func_212419_R()
public void markChunkDirty(BlockPos pos, TileEntity unusedTileEntity)
public int countEntities(java.lang.Class<?> entityType,
int p_72907_2_)
public void func_212420_a(java.util.stream.Stream<Entity> p_212420_1_)
public void unloadEntities(java.util.Collection<Entity> entityCollection)
public int getSeaLevel()
getSeaLevel in interface IWorldReaderBasepublic void setSeaLevel(int seaLevelIn)
public int getStrongPower(BlockPos pos, EnumFacing direction)
getStrongPower in interface IWorldReaderBasepublic WorldType getWorldType()
public int getStrongPower(BlockPos pos)
public boolean isSidePowered(BlockPos pos, EnumFacing side)
public int getRedstonePower(BlockPos pos, EnumFacing facing)
public boolean isBlockPowered(BlockPos pos)
public int getRedstonePowerFromNeighbors(BlockPos pos)
@Nullable public EntityPlayer getClosestPlayer(double x, double y, double z, double distance, java.util.function.Predicate<Entity> predicate)
getClosestPlayer in interface IWorldReaderBasepublic boolean isAnyPlayerWithinRangeAt(double x,
double y,
double z,
double range)
public boolean func_212417_b(double p_212417_1_,
double p_212417_3_,
double p_212417_5_,
double p_212417_7_)
@Nullable public EntityPlayer func_212817_a(double p_212817_1_, double p_212817_3_, double p_212817_5_)
@Nullable public EntityPlayer getNearestAttackablePlayer(Entity entityIn, double maxXZDistance, double maxYDistance)
@Nullable public EntityPlayer getNearestAttackablePlayer(BlockPos pos, double maxXZDistance, double maxYDistance)
@Nullable public EntityPlayer getNearestAttackablePlayer(double posX, double posY, double posZ, double maxXZDistance, double maxYDistance, @Nullable java.util.function.Function<EntityPlayer,java.lang.Double> playerToDouble, @Nullable java.util.function.Predicate<EntityPlayer> predicate)
@Nullable public EntityPlayer getPlayerEntityByName(java.lang.String name)
@Nullable public EntityPlayer getPlayerEntityByUUID(java.util.UUID uuid)
public void sendQuittingDisconnectingPacket()
public void checkSessionLock()
throws SessionLockException
SessionLockExceptionpublic void setTotalWorldTime(long worldTime)
public long getGameTime()
public long getDayTime()
public void setDayTime(long time)
public BlockPos getSpawnPoint()
getSpawnPoint in interface IWorldpublic void setSpawnPoint(BlockPos pos)
public void joinEntityInSurroundings(Entity entityIn)
public boolean isBlockModifiable(EntityPlayer player, BlockPos pos)
public boolean canMineBlockBody(EntityPlayer player, BlockPos pos)
public void setEntityState(Entity entityIn, byte state)
public IChunkProvider getChunkProvider()
getChunkProvider in interface IWorldpublic ISaveHandler getSaveHandler()
getSaveHandler in interface IWorldpublic WorldInfo getWorldInfo()
getWorldInfo in interface IWorldpublic GameRules getGameRules()
public void updateAllPlayersSleepingFlag()
public float getThunderStrength(float delta)
public void setThunderStrength(float strength)
public float getRainStrength(float delta)
public void setRainStrength(float strength)
public boolean isThundering()
public boolean isRaining()
public boolean isRainingAt(BlockPos position)
public boolean isBlockinHighHumidity(BlockPos pos)
@Nullable public WorldSavedDataStorage getMapStorage()
getMapStorage in interface ISaveDataAccesspublic void playBroadcastSound(int id,
BlockPos pos,
int data)
public void playEvent(int type,
BlockPos pos,
int data)
public void playEvent(@Nullable
EntityPlayer player,
int type,
BlockPos pos,
int data)
public int getHeight()
public int getActualHeight()
public double getHorizon()
public CrashReportCategory fillCrashReport(CrashReport report)
public void sendBlockBreakProgress(int breakerId,
BlockPos pos,
int progress)
public void makeFireworks(double x,
double y,
double z,
double motionX,
double motionY,
double motionZ,
@Nullable
NBTTagCompound compound)
public abstract Scoreboard getScoreboard()
public DifficultyInstance getDifficultyForLocation(BlockPos pos)
getDifficultyForLocation in interface IWorldpublic int getSkylightSubtracted()
getSkylightSubtracted in interface IWorldReaderBasepublic void setSkylightSubtracted(int newSkylightSubtracted)
public int getLastLightningBolt()
public void setLastLightningBolt(int lastLightningBoltIn)
public VillageCollection getVillageCollection()
public WorldBorder getWorldBorder()
getWorldBorder in interface IWorldReaderBasepublic boolean isSpawnChunk(int x,
int z)
public it.unimi.dsi.fastutil.longs.LongSet func_212412_ag()
public boolean func_212416_f(int p_212416_1_,
int p_212416_2_)
public boolean func_212414_b(int p_212414_1_,
int p_212414_2_,
boolean p_212414_3_)
public void sendPacketToServer(Packet<?> packetIn)
@Nullable public BlockPos findNearestStructure(java.lang.String name, BlockPos pos, int radius, boolean p_211157_4_)
public Dimension getDimension()
getDimension in interface IWorldReaderBasepublic abstract RecipeManager getRecipeManager()
public abstract NetworkTagManager getTags()
protected void initCapabilities()
public int countEntities(EnumCreatureType type, int max, boolean forSpawnCount)
public double getMaxEntityRadius()
IForgeWorldgetMaxEntityRadius in interface IForgeWorldpublic double increaseMaxEntityRadius(double value)
IForgeWorldincreaseMaxEntityRadius in interface IForgeWorldvalue - New max radius to set.