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[][]chunkArrayprotected intchunkXprotected intchunkZprotected booleanhasExtendedLevelsprotected WorldworldObj
-
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 booleanextendedLevelsInChunkCache()+ set by !chunk.getAreLevelsEmptyBiomeGenBasegetBiomeGenForCoords(BlockPos blockpos)IBlockStategetBlockState(BlockPos blockpos)intgetCombinedLight(BlockPos blockpos, int i)intgetLightFor(EnumSkyBlock pos, BlockPos parBlockPos)intgetStrongPower(BlockPos blockpos, EnumFacing enumfacing)TileEntitygetTileEntity(BlockPos blockpos)WorldTypegetWorldType()booleanisAirBlock(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:
extendedLevelsInChunkCachein interfaceIBlockAccess
-
getTileEntity
public TileEntity getTileEntity(BlockPos blockpos)
- Specified by:
getTileEntityin interfaceIBlockAccess
-
getCombinedLight
public int getCombinedLight(BlockPos blockpos, int i)
- Specified by:
getCombinedLightin interfaceIBlockAccess
-
getBlockState
public IBlockState getBlockState(BlockPos blockpos)
- Specified by:
getBlockStatein interfaceIBlockAccess
-
getBiomeGenForCoords
public BiomeGenBase getBiomeGenForCoords(BlockPos blockpos)
- Specified by:
getBiomeGenForCoordsin 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:
isAirBlockin interfaceIBlockAccess
-
getLightFor
public int getLightFor(EnumSkyBlock pos, BlockPos parBlockPos)
-
getStrongPower
public int getStrongPower(BlockPos blockpos, EnumFacing enumfacing)
- Specified by:
getStrongPowerin interfaceIBlockAccess
-
getWorldType
public WorldType getWorldType()
- Specified by:
getWorldTypein interfaceIBlockAccess
-
-