Package net.minecraft.world.chunk
Class EmptyChunk
- java.lang.Object
-
- net.minecraft.world.chunk.Chunk
-
- net.minecraft.world.chunk.EmptyChunk
-
public class EmptyChunk extends Chunk
+ 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)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.world.chunk.Chunk
Chunk.EnumCreateEntityType
-
-
Constructor Summary
Constructors Constructor Description EmptyChunk(World worldIn, int x, int z)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEntity(Entity entityIn)+ Adds an entity to the chunk.voidaddTileEntity(TileEntity tileEntityIn)voidaddTileEntity(BlockPos pos, TileEntity tileEntityIn)booleancanSeeSky(BlockPos pos)voidgenerateHeightMap()+ Generates the height map for a chunk from scratchvoidgenerateSkylightMap()+ Generates the initial skylight map for the chunk upon generation or load.booleangetAreLevelsEmpty(int startY, int endY)+ Returns whether the ExtendedBlockStorages containing levels (in blocks) from arg 1 to arg 2 are fully empty (true) or not (false).BlockgetBlock(BlockPos pos)intgetBlockLightOpacity(BlockPos pos)intgetBlockMetadata(BlockPos pos)+ Return the metadata corresponding to the given coordinates inside a chunk.<T extends Entity>
voidgetEntitiesOfTypeWithinAAAB(java.lang.Class<? extends T> entityClass, AxisAlignedBB aabb, java.util.List<T> listToFill, Predicate<? super T> parPredicate)voidgetEntitiesWithinAABBForEntity(Entity entityIn, AxisAlignedBB aabb, java.util.List<Entity> listToFill, Predicate<? super Entity> parPredicate)+ Fills the given list of all entities that intersect within the given bounding box that aren't the passed entity.intgetHeightValue(int x, int z)+ Returns the value in the height map at this x, z coordinate in the chunkintgetLightFor(EnumSkyBlock pos, BlockPos parBlockPos)intgetLightSubtracted(BlockPos pos, int amount)EaglercraftRandomgetRandomWithSeed(long seed)TileEntitygetTileEntity(BlockPos pos, Chunk.EnumCreateEntityType parEnumCreateEntityType)booleanisAtLocation(int x, int z)+ Checks whether the chunk is at the X/Z location specifiedbooleanisEmpty()booleanneedsSaving(boolean parFlag)+ Returns true if this Chunk needs to be savedvoidonChunkLoad()+ Called when this Chunk is loaded by the ChunkProvidervoidonChunkUnload()+ Called when this Chunk is unloaded by the ChunkProvidervoidremoveEntity(Entity entityIn)+ removes entity using its y chunk coordinate as its indexvoidremoveEntityAtIndex(Entity entityIn, int parInt1)+ Removes entity at the specified index from the entity array.voidremoveTileEntity(BlockPos pos)voidsetChunkModified()+ Sets the isModified flag for this ChunkvoidsetLightFor(EnumSkyBlock pos, BlockPos value, int parInt1)-
Methods inherited from class net.minecraft.world.chunk.Chunk
enqueueRelightChecks, fillChunk, func_150804_b, func_150809_p, getBiome, getBiomeArray, getBlock, getBlockState, getBlockStateFaster, getBlockStorageArray, getChunkCoordIntPair, getEntityLists, getHeight, getHeightMap, getInhabitedTime, getLowestHeight, getPrecipitationHeight, getTileEntityMap, getTopFilledSegment, getWorld, isLightPopulated, isLoaded, isPopulated, isTerrainPopulated, populateChunk, resetRelightChecks, setBiomeArray, setBlockState, setChunkLoaded, setHasEntities, setHeightMap, setInhabitedTime, setLastSaveTime, setLightPopulated, setModified, setStorageArrays, setTerrainPopulated
-
-
-
-
Constructor Detail
-
EmptyChunk
public EmptyChunk(World worldIn, int x, int z)
-
-
Method Detail
-
isAtLocation
public boolean isAtLocation(int x, int z)+ Checks whether the chunk is at the X/Z location specified- Overrides:
isAtLocationin classChunk
-
getHeightValue
public int getHeightValue(int x, int z)+ Returns the value in the height map at this x, z coordinate in the chunk- Overrides:
getHeightValuein classChunk
-
generateHeightMap
public void generateHeightMap()
+ Generates the height map for a chunk from scratch- Overrides:
generateHeightMapin classChunk
-
generateSkylightMap
public void generateSkylightMap()
+ Generates the initial skylight map for the chunk upon generation or load.- Overrides:
generateSkylightMapin classChunk
-
getBlockLightOpacity
public int getBlockLightOpacity(BlockPos pos)
- Overrides:
getBlockLightOpacityin classChunk
-
getBlockMetadata
public int getBlockMetadata(BlockPos pos)
Description copied from class:Chunk+ Return the metadata corresponding to the given coordinates inside a chunk.- Overrides:
getBlockMetadatain classChunk
-
getLightFor
public int getLightFor(EnumSkyBlock pos, BlockPos parBlockPos)
- Overrides:
getLightForin classChunk
-
setLightFor
public void setLightFor(EnumSkyBlock pos, BlockPos value, int parInt1)
- Overrides:
setLightForin classChunk
-
getLightSubtracted
public int getLightSubtracted(BlockPos pos, int amount)
- Overrides:
getLightSubtractedin classChunk
-
addEntity
public void addEntity(Entity entityIn)
+ Adds an entity to the chunk. Args: entity
-
removeEntity
public void removeEntity(Entity entityIn)
+ removes entity using its y chunk coordinate as its index- Overrides:
removeEntityin classChunk
-
removeEntityAtIndex
public void removeEntityAtIndex(Entity entityIn, int parInt1)
+ Removes entity at the specified index from the entity array.- Overrides:
removeEntityAtIndexin classChunk
-
getTileEntity
public TileEntity getTileEntity(BlockPos pos, Chunk.EnumCreateEntityType parEnumCreateEntityType)
- Overrides:
getTileEntityin classChunk
-
addTileEntity
public void addTileEntity(TileEntity tileEntityIn)
- Overrides:
addTileEntityin classChunk
-
addTileEntity
public void addTileEntity(BlockPos pos, TileEntity tileEntityIn)
- Overrides:
addTileEntityin classChunk
-
removeTileEntity
public void removeTileEntity(BlockPos pos)
- Overrides:
removeTileEntityin classChunk
-
onChunkLoad
public void onChunkLoad()
+ Called when this Chunk is loaded by the ChunkProvider- Overrides:
onChunkLoadin classChunk
-
onChunkUnload
public void onChunkUnload()
+ Called when this Chunk is unloaded by the ChunkProvider- Overrides:
onChunkUnloadin classChunk
-
setChunkModified
public void setChunkModified()
+ Sets the isModified flag for this Chunk- Overrides:
setChunkModifiedin classChunk
-
getEntitiesWithinAABBForEntity
public void getEntitiesWithinAABBForEntity(Entity entityIn, AxisAlignedBB aabb, java.util.List<Entity> listToFill, Predicate<? super Entity> parPredicate)
+ Fills the given list of all entities that intersect within the given bounding box that aren't the passed entity.- Overrides:
getEntitiesWithinAABBForEntityin classChunk
-
getEntitiesOfTypeWithinAAAB
public <T extends Entity> void getEntitiesOfTypeWithinAAAB(java.lang.Class<? extends T> entityClass, AxisAlignedBB aabb, java.util.List<T> listToFill, Predicate<? super T> parPredicate)
- Overrides:
getEntitiesOfTypeWithinAAABin classChunk
-
needsSaving
public boolean needsSaving(boolean parFlag)
+ Returns true if this Chunk needs to be saved- Overrides:
needsSavingin classChunk
-
getRandomWithSeed
public EaglercraftRandom getRandomWithSeed(long seed)
- Overrides:
getRandomWithSeedin classChunk
-
getAreLevelsEmpty
public boolean getAreLevelsEmpty(int startY, int endY)+ Returns whether the ExtendedBlockStorages containing levels (in blocks) from arg 1 to arg 2 are fully empty (true) or not (false).- Overrides:
getAreLevelsEmptyin classChunk
-
-