public abstract class World extends java.lang.Object implements IBlockAccess
Modifier | Constructor and Description |
---|---|
protected |
World(ISaveHandler saveHandlerIn,
WorldInfo info,
WorldProvider providerIn,
Profiler profilerIn,
boolean client) |
Modifier and Type | Method and Description |
---|---|
void |
addBlockEvent(BlockPos pos,
Block blockIn,
int eventID,
int eventParam) |
void |
addEventListener(IWorldEventListener listener) |
void |
addTileEntities(java.util.Collection<TileEntity> tileEntityCollection) |
boolean |
addTileEntity(TileEntity tile) |
boolean |
addWeatherEffect(Entity entityIn) |
CrashReportCategory |
addWorldInfoToCrashReport(CrashReport report) |
void |
calculateInitialSkylight() |
protected void |
calculateInitialWeather() |
void |
calculateInitialWeatherBody() |
int |
calculateSkylightSubtracted(float p_72967_1_) |
boolean |
canBlockBePlaced(Block blockIn,
BlockPos pos,
boolean p_175716_3_,
EnumFacing side,
Entity entityIn,
ItemStack itemStackIn) |
boolean |
canBlockFreeze(BlockPos pos,
boolean noWaterAdj) |
boolean |
canBlockFreezeBody(BlockPos pos,
boolean noWaterAdj) |
boolean |
canBlockFreezeNoWater(BlockPos pos) |
boolean |
canBlockFreezeWater(BlockPos pos) |
boolean |
canBlockSeeSky(BlockPos pos) |
boolean |
canMineBlockBody(EntityPlayer player,
BlockPos pos) |
boolean |
canSeeSky(BlockPos pos) |
boolean |
canSnowAt(BlockPos pos,
boolean checkLight) |
boolean |
canSnowAtBody(BlockPos pos,
boolean checkLight) |
boolean |
checkBlockCollision(AxisAlignedBB bb) |
boolean |
checkLight(BlockPos pos) |
boolean |
checkLightFor(EnumSkyBlock lightType,
BlockPos pos) |
boolean |
checkNoEntityCollision(AxisAlignedBB bb) |
boolean |
checkNoEntityCollision(AxisAlignedBB bb,
Entity entityIn) |
void |
checkSessionLock() |
boolean |
collidesWithAnyBlock(AxisAlignedBB bbox) |
boolean |
containsAnyLiquid(AxisAlignedBB bb) |
int |
countEntities(java.lang.Class<?> entityType) |
int |
countEntities(EnumCreatureType type,
boolean forSpawnCount)
Returns a count of entities that classify themselves as the specified creature type.
|
protected abstract IChunkProvider |
createChunkProvider() |
Explosion |
createExplosion(Entity entityIn,
double x,
double y,
double z,
float strength,
boolean isSmoking) |
boolean |
destroyBlock(BlockPos pos,
boolean dropBlock) |
boolean |
extendedLevelsInChunkCache() |
boolean |
extinguishFire(EntityPlayer player,
BlockPos pos,
EnumFacing side) |
<T extends Entity> |
findNearestEntityWithinAABB(java.lang.Class<? extends T> entityType,
AxisAlignedBB aabb,
T closestTo) |
int |
getActualHeight() |
Biome |
getBiomeForCoordsBody(BlockPos pos) |
Biome |
getBiomeGenForCoords(BlockPos pos) |
BiomeProvider |
getBiomeProvider() |
float |
getBlockDensity(Vec3d vec,
AxisAlignedBB bb) |
int |
getBlockLightOpacity(BlockPos pos)
Readded as it was removed, very useful helper function
|
IBlockState |
getBlockState(BlockPos pos) |
float |
getCelestialAngle(float partialTicks) |
float |
getCelestialAngleRadians(float partialTicks) |
Chunk |
getChunkFromBlockCoords(BlockPos pos) |
Chunk |
getChunkFromChunkCoords(int chunkX,
int chunkZ) |
IChunkProvider |
getChunkProvider() |
int |
getChunksLowestHorizon(int x,
int z)
Deprecated.
|
EntityPlayer |
getClosestPlayer(double posX,
double posY,
double posZ,
double distance,
boolean spectator) |
EntityPlayer |
getClosestPlayerToEntity(Entity entityIn,
double distance) |
Vec3d |
getCloudColorBody(float partialTicks) |
Vec3d |
getCloudColour(float partialTicks) |
java.util.List<AxisAlignedBB> |
getCollisionBoxes(AxisAlignedBB bb) |
java.util.List<AxisAlignedBB> |
getCollisionBoxes(Entity entityIn,
AxisAlignedBB aabb) |
int |
getCombinedLight(BlockPos pos,
int lightValue) |
java.util.Calendar |
getCurrentDate() |
float |
getCurrentMoonPhaseFactor() |
float |
getCurrentMoonPhaseFactorBody() |
java.lang.String |
getDebugLoadedEntities() |
EnumDifficulty |
getDifficulty() |
DifficultyInstance |
getDifficultyForLocation(BlockPos pos) |
<T extends Entity> |
getEntities(java.lang.Class<? extends T> entityType,
com.google.common.base.Predicate<? super T> filter) |
java.util.List<Entity> |
getEntitiesInAABBexcluding(Entity entityIn,
AxisAlignedBB boundingBox,
com.google.common.base.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,
com.google.common.base.Predicate<? super T> filter) |
java.util.List<Entity> |
getEntitiesWithinAABBExcludingEntity(Entity entityIn,
AxisAlignedBB bb) |
Entity |
getEntityByID(int id) |
Vec3d |
getFogColor(float partialTicks) |
GameRules |
getGameRules() |
IBlockState |
getGroundAboveSeaLevel(BlockPos pos) |
int |
getHeight() |
BlockPos |
getHeight(BlockPos pos) |
double |
getHorizon() |
int |
getLastLightningBolt() |
int |
getLight(BlockPos pos) |
int |
getLight(BlockPos pos,
boolean checkNeighbors) |
float |
getLightBrightness(BlockPos pos) |
int |
getLightFor(EnumSkyBlock type,
BlockPos pos) |
int |
getLightFromNeighbors(BlockPos pos) |
int |
getLightFromNeighborsFor(EnumSkyBlock type,
BlockPos pos) |
java.util.List<Entity> |
getLoadedEntityList() |
LootTableManager |
getLootTableManager() |
MapStorage |
getMapStorage() |
MinecraftServer |
getMinecraftServer() |
int |
getMoonPhase() |
EntityPlayer |
getNearestAttackablePlayer(BlockPos pos,
double maxXZDistance,
double maxYDistance) |
EntityPlayer |
getNearestAttackablePlayer(double posX,
double posY,
double posZ,
double maxXZDistance,
double maxYDistance,
com.google.common.base.Function<EntityPlayer,java.lang.Double> playerToDouble,
com.google.common.base.Predicate<EntityPlayer> p_184150_12_) |
EntityPlayer |
getNearestAttackablePlayer(Entity entityIn,
double maxXZDistance,
double maxYDistance) |
EntityPlayer |
getNearestPlayerNotCreative(Entity entityIn,
double distance) |
java.util.List<NextTickListEntry> |
getPendingBlockUpdates(Chunk chunkIn,
boolean p_72920_2_) |
java.util.List<NextTickListEntry> |
getPendingBlockUpdates(StructureBoundingBox structureBB,
boolean p_175712_2_) |
java.util.Iterator<Chunk> |
getPersistentChunkIterable(java.util.Iterator<Chunk> chunkIterator) |
com.google.common.collect.ImmutableSetMultimap<ChunkPos,ForgeChunkManager.Ticket> |
getPersistentChunks()
Get the persistent chunks for this world
|
MapStorage |
getPerWorldStorage() |
EntityPlayer |
getPlayerEntityByName(java.lang.String name) |
EntityPlayer |
getPlayerEntityByUUID(java.util.UUID uuid) |
<T extends Entity> |
getPlayers(java.lang.Class<? extends T> playerType,
com.google.common.base.Predicate<? super T> filter) |
BlockPos |
getPrecipitationHeight(BlockPos pos) |
java.lang.String |
getProviderName() |
float |
getRainStrength(float delta) |
int |
getRedstonePower(BlockPos pos,
EnumFacing facing) |
ISaveHandler |
getSaveHandler() |
Scoreboard |
getScoreboard() |
int |
getSeaLevel() |
long |
getSeed() |
Vec3d |
getSkyColor(Entity entityIn,
float partialTicks) |
Vec3d |
getSkyColorBody(Entity entityIn,
float partialTicks) |
int |
getSkylightSubtracted() |
BlockPos |
getSpawnPoint() |
float |
getStarBrightness(float partialTicks) |
float |
getStarBrightnessBody(float partialTicks) |
int |
getStrongPower(BlockPos pos) |
int |
getStrongPower(BlockPos pos,
EnumFacing direction) |
float |
getSunBrightness(float p_72971_1_) |
float |
getSunBrightnessBody(float p_72971_1_) |
float |
getSunBrightnessFactor(float p_72967_1_)
The current sun brightness factor for this dimension.
0.0f means no light at all, and 1.0f means maximum sunlight.
|
float |
getThunderStrength(float delta) |
TileEntity |
getTileEntity(BlockPos pos) |
BlockPos |
getTopSolidOrLiquidBlock(BlockPos pos) |
long |
getTotalWorldTime() |
int |
getUniqueDataId(java.lang.String key) |
VillageCollection |
getVillageCollection() |
WorldBorder |
getWorldBorder() |
WorldInfo |
getWorldInfo() |
long |
getWorldTime() |
WorldType |
getWorldType() |
boolean |
handleMaterialAcceleration(AxisAlignedBB bb,
Material materialIn,
Entity entityIn) |
void |
immediateBlockTick(BlockPos pos,
IBlockState state,
java.util.Random random) |
World |
init() |
void |
initialize(WorldSettings settings) |
boolean |
isAABBInMaterial(AxisAlignedBB bb,
Material materialIn) |
boolean |
isAirBlock(BlockPos pos) |
boolean |
isAnyPlayerWithinRangeAt(double x,
double y,
double z,
double range) |
boolean |
isAreaLoaded(BlockPos from,
BlockPos to) |
boolean |
isAreaLoaded(BlockPos from,
BlockPos to,
boolean allowEmpty) |
boolean |
isAreaLoaded(BlockPos center,
int radius) |
boolean |
isAreaLoaded(BlockPos center,
int radius,
boolean allowEmpty) |
boolean |
isAreaLoaded(StructureBoundingBox box) |
boolean |
isAreaLoaded(StructureBoundingBox box,
boolean allowEmpty) |
boolean |
isBlockFullCube(BlockPos pos) |
int |
isBlockIndirectlyGettingPowered(BlockPos pos) |
boolean |
isBlockinHighHumidity(BlockPos pos) |
boolean |
isBlockLoaded(BlockPos pos) |
boolean |
isBlockLoaded(BlockPos pos,
boolean allowEmpty) |
boolean |
isBlockModifiable(EntityPlayer player,
BlockPos pos) |
boolean |
isBlockNormalCube(BlockPos pos,
boolean _default) |
boolean |
isBlockPowered(BlockPos pos) |
boolean |
isBlockTickPending(BlockPos pos,
Block blockType) |
protected abstract boolean |
isChunkLoaded(int x,
int z,
boolean allowEmpty) |
boolean |
isDaytime() |
boolean |
isFlammableWithin(AxisAlignedBB bb) |
boolean |
isInsideBorder(WorldBorder worldBorderIn,
Entity entityIn) |
boolean |
isMaterialInBB(AxisAlignedBB bb,
Material materialIn) |
boolean |
isRaining() |
boolean |
isRainingAt(BlockPos strikePosition) |
boolean |
isSidePowered(BlockPos pos,
EnumFacing side) |
boolean |
isSideSolid(BlockPos pos,
EnumFacing side)
Determine if the given block is considered solid on the
specified side.
|
boolean |
isSideSolid(BlockPos pos,
EnumFacing side,
boolean _default)
Determine if the given block is considered solid on the
specified side.
|
boolean |
isSpawnChunk(int x,
int z) |
boolean |
isThundering() |
boolean |
isUpdateScheduled(BlockPos pos,
Block blk) |
void |
joinEntityInSurroundings(Entity entityIn) |
void |
loadEntities(java.util.Collection<Entity> entityCollection) |
WorldSavedData |
loadItemData(java.lang.Class<? extends WorldSavedData> clazz,
java.lang.String dataID) |
void |
makeFireworks(double x,
double y,
double z,
double motionX,
double motionY,
double motionZ,
NBTTagCompound compund) |
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 x1,
int z1,
int x2,
int z2) |
void |
markChunkDirty(BlockPos pos,
TileEntity unusedTileEntity) |
void |
markTileEntityForRemoval(TileEntity tileEntityIn) |
Explosion |
newExplosion(Entity entityIn,
double x,
double y,
double z,
float strength,
boolean isFlaming,
boolean isSmoking) |
void |
notifyBlockOfStateChange(BlockPos pos,
Block blockIn) |
void |
notifyBlockUpdate(BlockPos pos,
IBlockState oldState,
IBlockState newState,
int flags) |
void |
notifyLightSet(BlockPos pos) |
void |
notifyNeighborsOfStateChange(BlockPos pos,
Block blockType) |
void |
notifyNeighborsOfStateExcept(BlockPos pos,
Block blockType,
EnumFacing skipSide) |
void |
notifyNeighborsRespectDebug(BlockPos pos,
Block blockType) |
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 p_147467_1_,
int p_147467_2_,
Chunk chunkIn) |
void |
playRecord(BlockPos blockPositionIn,
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,
boolean stopOnLiquid) |
RayTraceResult |
rayTraceBlocks(Vec3d vec31,
Vec3d vec32,
boolean stopOnLiquid,
boolean ignoreBlockWithoutBoundingBox,
boolean returnLastUncollidableBlock) |
void |
removeEntity(Entity entityIn) |
void |
removeEntityDangerously(Entity entityIn) |
void |
removeEventListener(IWorldEventListener listener) |
void |
removeTileEntity(BlockPos pos) |
void |
scheduleBlockUpdate(BlockPos pos,
Block blockIn,
int delay,
int priority) |
void |
scheduleUpdate(BlockPos pos,
Block blockIn,
int delay) |
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) |
boolean |
setBlockToAir(BlockPos pos) |
void |
setEntityState(Entity entityIn,
byte state) |
void |
setInitialSpawnLocation() |
void |
setItemData(java.lang.String dataID,
WorldSavedData worldSavedDataIn) |
void |
setLastLightningBolt(int lastLightningBoltIn) |
void |
setLightFor(EnumSkyBlock type,
BlockPos pos,
int lightValue) |
void |
setRainStrength(float strength) |
java.util.Random |
setRandomSeed(int p_72843_1_,
int p_72843_2_,
int p_72843_3_) |
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) |
void |
setWorldTime(long time) |
boolean |
spawnEntityInWorld(Entity entityIn) |
void |
spawnParticle(EnumParticleTypes particleType,
boolean ignoreRange,
double xCoord,
double yCoord,
double zCoord,
double xSpeed,
double ySpeed,
double zSpeed,
int... parameters) |
void |
spawnParticle(EnumParticleTypes particleType,
double xCoord,
double yCoord,
double zCoord,
double xSpeed,
double ySpeed,
double zSpeed,
int... parameters) |
void |
tick() |
protected void |
tickPlayers() |
boolean |
tickUpdates(boolean p_72955_1_) |
void |
unloadEntities(java.util.Collection<Entity> entityCollection) |
void |
updateAllPlayersSleepingFlag() |
protected void |
updateBlocks() |
void |
updateBlockTick(BlockPos pos,
Block blockIn,
int delay,
int priority) |
void |
updateComparatorOutputLevel(BlockPos pos,
Block blockIn) |
void |
updateEntities() |
void |
updateEntity(Entity ent) |
void |
updateEntityWithOptionalForce(Entity entityIn,
boolean forceUpdate) |
protected void |
updateWeather() |
void |
updateWeatherBody() |
public static double MAX_ENTITY_RADIUS
protected boolean scheduledUpdatesAreImmediate
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 WorldProvider provider
protected PathWorldListener pathListener
protected java.util.List<IWorldEventListener> eventListeners
protected IChunkProvider chunkProvider
protected final ISaveHandler saveHandler
protected WorldInfo worldInfo
protected boolean findingSpawnPoint
protected MapStorage mapStorage
public VillageCollection villageCollectionObj
protected LootTableManager lootTable
public final Profiler theProfiler
protected Scoreboard worldScoreboard
public final boolean isRemote
protected boolean spawnHostileMobs
protected boolean spawnPeacefulMobs
public boolean restoringBlockSnapshots
public boolean captureBlockSnapshots
public java.util.ArrayList<BlockSnapshot> capturedBlockSnapshots
protected MapStorage perWorldStorage
protected World(ISaveHandler saveHandlerIn, WorldInfo info, WorldProvider providerIn, Profiler profilerIn, boolean client)
public World init()
public Biome getBiomeGenForCoords(BlockPos pos)
getBiomeGenForCoords
in interface IBlockAccess
public BiomeProvider getBiomeProvider()
protected abstract IChunkProvider createChunkProvider()
public void initialize(WorldSettings settings)
@Nullable public MinecraftServer getMinecraftServer()
public void setInitialSpawnLocation()
public IBlockState getGroundAboveSeaLevel(BlockPos pos)
public boolean isAirBlock(BlockPos pos)
isAirBlock
in interface IBlockAccess
public boolean isBlockLoaded(BlockPos pos)
public boolean isBlockLoaded(BlockPos pos, boolean allowEmpty)
public boolean isAreaLoaded(BlockPos center, int radius)
public boolean isAreaLoaded(BlockPos center, int radius, boolean allowEmpty)
public boolean isAreaLoaded(StructureBoundingBox box)
public boolean isAreaLoaded(StructureBoundingBox box, boolean allowEmpty)
protected abstract boolean isChunkLoaded(int x, int z, boolean allowEmpty)
public Chunk getChunkFromChunkCoords(int chunkX, int chunkZ)
public boolean setBlockState(BlockPos pos, IBlockState newState, int flags)
public void markAndNotifyBlock(BlockPos pos, Chunk chunk, IBlockState iblockstate, IBlockState newState, int flags)
public boolean setBlockToAir(BlockPos pos)
public boolean destroyBlock(BlockPos pos, boolean dropBlock)
public boolean setBlockState(BlockPos pos, IBlockState state)
public void notifyBlockUpdate(BlockPos pos, IBlockState oldState, IBlockState newState, int flags)
public void markBlocksDirtyVertical(int x1, int z1, int x2, int z2)
public void markBlockRangeForRenderUpdate(BlockPos rangeMin, BlockPos rangeMax)
public void markBlockRangeForRenderUpdate(int x1, int y1, int z1, int x2, int y2, int z2)
public void notifyNeighborsOfStateChange(BlockPos pos, Block blockType)
public void notifyNeighborsOfStateExcept(BlockPos pos, Block blockType, EnumFacing skipSide)
public boolean canSeeSky(BlockPos pos)
public boolean canBlockSeeSky(BlockPos pos)
public int getLight(BlockPos pos)
public int getLightFromNeighbors(BlockPos pos)
public int getLight(BlockPos pos, boolean checkNeighbors)
@Deprecated public int getChunksLowestHorizon(int x, int z)
public int getLightFor(EnumSkyBlock type, BlockPos pos)
public int getLightFromNeighborsFor(EnumSkyBlock type, BlockPos pos)
public void setLightFor(EnumSkyBlock type, BlockPos pos, int lightValue)
public void notifyLightSet(BlockPos pos)
public int getCombinedLight(BlockPos pos, int lightValue)
getCombinedLight
in interface IBlockAccess
public float getLightBrightness(BlockPos pos)
public IBlockState getBlockState(BlockPos pos)
getBlockState
in interface IBlockAccess
public boolean isDaytime()
@Nullable public RayTraceResult rayTraceBlocks(Vec3d start, Vec3d end)
@Nullable public RayTraceResult rayTraceBlocks(Vec3d start, Vec3d end, boolean stopOnLiquid)
@Nullable public RayTraceResult rayTraceBlocks(Vec3d vec31, Vec3d vec32, boolean stopOnLiquid, boolean ignoreBlockWithoutBoundingBox, boolean returnLastUncollidableBlock)
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 blockPositionIn, @Nullable SoundEvent soundEventIn)
public void spawnParticle(EnumParticleTypes particleType, double xCoord, double yCoord, double zCoord, double xSpeed, double ySpeed, double zSpeed, int... parameters)
public void spawnParticle(EnumParticleTypes particleType, boolean ignoreRange, double xCoord, double yCoord, double zCoord, double xSpeed, double ySpeed, double zSpeed, int... parameters)
public boolean addWeatherEffect(Entity entityIn)
public boolean spawnEntityInWorld(Entity entityIn)
public void onEntityAdded(Entity entityIn)
public void onEntityRemoved(Entity entityIn)
public void removeEntity(Entity entityIn)
public void removeEntityDangerously(Entity entityIn)
public void addEventListener(IWorldEventListener listener)
public java.util.List<AxisAlignedBB> getCollisionBoxes(@Nullable Entity entityIn, AxisAlignedBB aabb)
public boolean isInsideBorder(WorldBorder worldBorderIn, Entity entityIn)
public java.util.List<AxisAlignedBB> getCollisionBoxes(AxisAlignedBB bb)
public void removeEventListener(IWorldEventListener listener)
public boolean collidesWithAnyBlock(AxisAlignedBB bbox)
public int calculateSkylightSubtracted(float p_72967_1_)
public float getSunBrightnessFactor(float p_72967_1_)
public float getSunBrightness(float p_72971_1_)
public float getSunBrightnessBody(float p_72971_1_)
public float getCelestialAngle(float partialTicks)
public int getMoonPhase()
public float getCurrentMoonPhaseFactor()
public float getCurrentMoonPhaseFactorBody()
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 float getStarBrightnessBody(float partialTicks)
public void scheduleBlockUpdate(BlockPos pos, Block blockIn, int delay, int priority)
public void updateEntities()
protected void tickPlayers()
public boolean addTileEntity(TileEntity tile)
public void addTileEntities(java.util.Collection<TileEntity> tileEntityCollection)
public void updateEntity(Entity ent)
public void updateEntityWithOptionalForce(Entity entityIn, boolean forceUpdate)
public boolean checkNoEntityCollision(AxisAlignedBB bb)
public boolean checkNoEntityCollision(AxisAlignedBB bb, @Nullable Entity entityIn)
public boolean checkBlockCollision(AxisAlignedBB bb)
public boolean containsAnyLiquid(AxisAlignedBB bb)
public boolean isFlammableWithin(AxisAlignedBB bb)
public boolean handleMaterialAcceleration(AxisAlignedBB bb, Material materialIn, Entity entityIn)
public boolean isMaterialInBB(AxisAlignedBB bb, Material materialIn)
public boolean isAABBInMaterial(AxisAlignedBB bb, Material materialIn)
public Explosion createExplosion(@Nullable Entity entityIn, double x, double y, double z, float strength, boolean isSmoking)
public Explosion newExplosion(@Nullable Entity entityIn, double x, double y, double z, float strength, boolean isFlaming, boolean isSmoking)
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 IBlockAccess
public void setTileEntity(BlockPos pos, @Nullable TileEntity tileEntityIn)
public void removeTileEntity(BlockPos pos)
public void markTileEntityForRemoval(TileEntity tileEntityIn)
public boolean isBlockFullCube(BlockPos pos)
public boolean isBlockNormalCube(BlockPos pos, boolean _default)
public void calculateInitialSkylight()
public void setAllowedSpawnTypes(boolean hostile, boolean peaceful)
public void tick()
protected void calculateInitialWeather()
public void calculateInitialWeatherBody()
protected void updateWeather()
public void updateWeatherBody()
protected void playMoodSoundAndCheckLight(int p_147467_1_, int p_147467_2_, Chunk chunkIn)
protected void updateBlocks()
public void immediateBlockTick(BlockPos pos, IBlockState state, java.util.Random random)
public boolean canBlockFreezeWater(BlockPos pos)
public boolean canBlockFreezeNoWater(BlockPos pos)
public boolean canBlockFreeze(BlockPos pos, boolean noWaterAdj)
public boolean canBlockFreezeBody(BlockPos pos, boolean noWaterAdj)
public boolean canSnowAt(BlockPos pos, boolean checkLight)
public boolean canSnowAtBody(BlockPos pos, boolean checkLight)
public boolean checkLight(BlockPos pos)
public boolean checkLightFor(EnumSkyBlock lightType, BlockPos pos)
public boolean tickUpdates(boolean p_72955_1_)
@Nullable public java.util.List<NextTickListEntry> getPendingBlockUpdates(Chunk chunkIn, boolean p_72920_2_)
@Nullable public java.util.List<NextTickListEntry> getPendingBlockUpdates(StructureBoundingBox structureBB, boolean p_175712_2_)
public java.util.List<Entity> getEntitiesWithinAABBExcludingEntity(@Nullable Entity entityIn, AxisAlignedBB bb)
public java.util.List<Entity> getEntitiesInAABBexcluding(@Nullable Entity entityIn, AxisAlignedBB boundingBox, @Nullable com.google.common.base.Predicate<? super Entity> predicate)
public <T extends Entity> java.util.List<T> getEntities(java.lang.Class<? extends T> entityType, com.google.common.base.Predicate<? super T> filter)
public <T extends Entity> java.util.List<T> getPlayers(java.lang.Class<? extends T> playerType, com.google.common.base.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 com.google.common.base.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 java.util.List<Entity> getLoadedEntityList()
public void markChunkDirty(BlockPos pos, TileEntity unusedTileEntity)
public int countEntities(java.lang.Class<?> entityType)
public void loadEntities(java.util.Collection<Entity> entityCollection)
public void unloadEntities(java.util.Collection<Entity> entityCollection)
public boolean canBlockBePlaced(Block blockIn, BlockPos pos, boolean p_175716_3_, EnumFacing side, @Nullable Entity entityIn, @Nullable ItemStack itemStackIn)
public int getSeaLevel()
public void setSeaLevel(int seaLevelIn)
public int getStrongPower(BlockPos pos, EnumFacing direction)
getStrongPower
in interface IBlockAccess
public WorldType getWorldType()
getWorldType
in interface IBlockAccess
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 isBlockIndirectlyGettingPowered(BlockPos pos)
@Nullable public EntityPlayer getClosestPlayerToEntity(Entity entityIn, double distance)
@Nullable public EntityPlayer getNearestPlayerNotCreative(Entity entityIn, double distance)
@Nullable public EntityPlayer getClosestPlayer(double posX, double posY, double posZ, double distance, boolean spectator)
public boolean isAnyPlayerWithinRangeAt(double x, double y, double z, double range)
@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 com.google.common.base.Function<EntityPlayer,java.lang.Double> playerToDouble, @Nullable com.google.common.base.Predicate<EntityPlayer> p_184150_12_)
@Nullable public EntityPlayer getPlayerEntityByName(java.lang.String name)
@Nullable public EntityPlayer getPlayerEntityByUUID(java.util.UUID uuid)
public void sendQuittingDisconnectingPacket()
public void checkSessionLock() throws MinecraftException
MinecraftException
public void setTotalWorldTime(long worldTime)
public long getSeed()
public long getTotalWorldTime()
public long getWorldTime()
public void setWorldTime(long time)
public BlockPos getSpawnPoint()
public 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()
public ISaveHandler getSaveHandler()
public WorldInfo getWorldInfo()
public 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 strikePosition)
public boolean isBlockinHighHumidity(BlockPos pos)
@Nullable public MapStorage getMapStorage()
public void setItemData(java.lang.String dataID, WorldSavedData worldSavedDataIn)
@Nullable public WorldSavedData loadItemData(java.lang.Class<? extends WorldSavedData> clazz, java.lang.String dataID)
public int getUniqueDataId(java.lang.String key)
public 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 java.util.Random setRandomSeed(int p_72843_1_, int p_72843_2_, int p_72843_3_)
public CrashReportCategory addWorldInfoToCrashReport(CrashReport report)
public boolean extendedLevelsInChunkCache()
extendedLevelsInChunkCache
in interface IBlockAccess
public double getHorizon()
public void sendBlockBreakProgress(int breakerId, BlockPos pos, int progress)
public java.util.Calendar getCurrentDate()
public void makeFireworks(double x, double y, double z, double motionX, double motionY, double motionZ, @Nullable NBTTagCompound compund)
public Scoreboard getScoreboard()
public DifficultyInstance getDifficultyForLocation(BlockPos pos)
public EnumDifficulty getDifficulty()
public int getSkylightSubtracted()
public void setSkylightSubtracted(int newSkylightSubtracted)
public int getLastLightningBolt()
public void setLastLightningBolt(int lastLightningBoltIn)
public VillageCollection getVillageCollection()
public WorldBorder getWorldBorder()
public boolean isSpawnChunk(int x, int z)
public boolean isSideSolid(BlockPos pos, EnumFacing side)
pos
- Block Positionside
- The Side in questionpublic boolean isSideSolid(BlockPos pos, EnumFacing side, boolean _default)
isSideSolid
in interface IBlockAccess
pos
- Block Positionside
- The Side in question_default
- The default to return if the block doesn't exist.public com.google.common.collect.ImmutableSetMultimap<ChunkPos,ForgeChunkManager.Ticket> getPersistentChunks()
public java.util.Iterator<Chunk> getPersistentChunkIterable(java.util.Iterator<Chunk> chunkIterator)
public int getBlockLightOpacity(BlockPos pos)
pos
- Block positionpublic int countEntities(EnumCreatureType type, boolean forSpawnCount)
public MapStorage getPerWorldStorage()
public void sendPacketToServer(Packet<?> packetIn)
public LootTableManager getLootTableManager()