Package net.minecraft.world
Class ChunkCache
- java.lang.Object
-
- net.minecraft.world.ChunkCache
-
- All Implemented Interfaces:
IBlockAccess
- Direct Known Subclasses:
RegionRenderCache
public class ChunkCache extends java.lang.Object implements IBlockAccess
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Field Summary
Fields Modifier and Type Field Description protected Chunk[][]
chunkArray
protected int
chunkX
protected int
chunkZ
protected boolean
hasExtendedLevels
protected World
worldObj
-
Constructor Summary
Constructors Constructor Description ChunkCache(World worldIn, BlockPos posFromIn, BlockPos posToIn, int subIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
extendedLevelsInChunkCache()
+ set by !chunk.getAreLevelsEmptyBiomeGenBase
getBiomeGenForCoords(BlockPos blockpos)
IBlockState
getBlockState(BlockPos blockpos)
int
getCombinedLight(BlockPos blockpos, int i)
int
getLightFor(EnumSkyBlock pos, BlockPos parBlockPos)
int
getStrongPower(BlockPos blockpos, EnumFacing enumfacing)
TileEntity
getTileEntity(BlockPos blockpos)
WorldType
getWorldType()
boolean
isAirBlock(BlockPos blockpos)
+ Checks to see if an air block exists at the provided location.
-
-
-
Method Detail
-
extendedLevelsInChunkCache
public boolean extendedLevelsInChunkCache()
+ set by !chunk.getAreLevelsEmpty- Specified by:
extendedLevelsInChunkCache
in interfaceIBlockAccess
-
getTileEntity
public TileEntity getTileEntity(BlockPos blockpos)
- Specified by:
getTileEntity
in interfaceIBlockAccess
-
getCombinedLight
public int getCombinedLight(BlockPos blockpos, int i)
- Specified by:
getCombinedLight
in interfaceIBlockAccess
-
getBlockState
public IBlockState getBlockState(BlockPos blockpos)
- Specified by:
getBlockState
in interfaceIBlockAccess
-
getBiomeGenForCoords
public BiomeGenBase getBiomeGenForCoords(BlockPos blockpos)
- Specified by:
getBiomeGenForCoords
in interfaceIBlockAccess
-
isAirBlock
public boolean isAirBlock(BlockPos blockpos)
+ Checks to see if an air block exists at the provided location. Note that this only checks to see if the blocks material is set to air, meaning it is possible for non-vanilla blocks to still pass this check.- Specified by:
isAirBlock
in interfaceIBlockAccess
-
getLightFor
public int getLightFor(EnumSkyBlock pos, BlockPos parBlockPos)
-
getStrongPower
public int getStrongPower(BlockPos blockpos, EnumFacing enumfacing)
- Specified by:
getStrongPower
in interfaceIBlockAccess
-
getWorldType
public WorldType getWorldType()
- Specified by:
getWorldType
in interfaceIBlockAccess
-
-