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 void
addEntity(Entity entityIn)
+ Adds an entity to the chunk.void
addTileEntity(TileEntity tileEntityIn)
void
addTileEntity(BlockPos pos, TileEntity tileEntityIn)
boolean
canSeeSky(BlockPos pos)
void
generateHeightMap()
+ Generates the height map for a chunk from scratchvoid
generateSkylightMap()
+ Generates the initial skylight map for the chunk upon generation or load.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).Block
getBlock(BlockPos pos)
int
getBlockLightOpacity(BlockPos pos)
int
getBlockMetadata(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)
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.int
getHeightValue(int x, int z)
+ Returns the value in the height map at this x, z coordinate in the chunkint
getLightFor(EnumSkyBlock pos, BlockPos parBlockPos)
int
getLightSubtracted(BlockPos pos, int amount)
EaglercraftRandom
getRandomWithSeed(long seed)
TileEntity
getTileEntity(BlockPos pos, Chunk.EnumCreateEntityType parEnumCreateEntityType)
boolean
isAtLocation(int x, int z)
+ Checks whether the chunk is at the X/Z location specifiedboolean
isEmpty()
boolean
needsSaving(boolean parFlag)
+ Returns true if this Chunk needs to be savedvoid
onChunkLoad()
+ Called when this Chunk is loaded by the ChunkProvidervoid
onChunkUnload()
+ Called when this Chunk is unloaded by the ChunkProvidervoid
removeEntity(Entity entityIn)
+ removes entity using its y chunk coordinate as its indexvoid
removeEntityAtIndex(Entity entityIn, int parInt1)
+ Removes entity at the specified index from the entity array.void
removeTileEntity(BlockPos pos)
void
setChunkModified()
+ Sets the isModified flag for this Chunkvoid
setLightFor(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:
isAtLocation
in 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:
getHeightValue
in classChunk
-
generateHeightMap
public void generateHeightMap()
+ Generates the height map for a chunk from scratch- Overrides:
generateHeightMap
in classChunk
-
generateSkylightMap
public void generateSkylightMap()
+ Generates the initial skylight map for the chunk upon generation or load.- Overrides:
generateSkylightMap
in classChunk
-
getBlockLightOpacity
public int getBlockLightOpacity(BlockPos pos)
- Overrides:
getBlockLightOpacity
in classChunk
-
getBlockMetadata
public int getBlockMetadata(BlockPos pos)
Description copied from class:Chunk
+ Return the metadata corresponding to the given coordinates inside a chunk.- Overrides:
getBlockMetadata
in classChunk
-
getLightFor
public int getLightFor(EnumSkyBlock pos, BlockPos parBlockPos)
- Overrides:
getLightFor
in classChunk
-
setLightFor
public void setLightFor(EnumSkyBlock pos, BlockPos value, int parInt1)
- Overrides:
setLightFor
in classChunk
-
getLightSubtracted
public int getLightSubtracted(BlockPos pos, int amount)
- Overrides:
getLightSubtracted
in 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:
removeEntity
in classChunk
-
removeEntityAtIndex
public void removeEntityAtIndex(Entity entityIn, int parInt1)
+ Removes entity at the specified index from the entity array.- Overrides:
removeEntityAtIndex
in classChunk
-
getTileEntity
public TileEntity getTileEntity(BlockPos pos, Chunk.EnumCreateEntityType parEnumCreateEntityType)
- Overrides:
getTileEntity
in classChunk
-
addTileEntity
public void addTileEntity(TileEntity tileEntityIn)
- Overrides:
addTileEntity
in classChunk
-
addTileEntity
public void addTileEntity(BlockPos pos, TileEntity tileEntityIn)
- Overrides:
addTileEntity
in classChunk
-
removeTileEntity
public void removeTileEntity(BlockPos pos)
- Overrides:
removeTileEntity
in classChunk
-
onChunkLoad
public void onChunkLoad()
+ Called when this Chunk is loaded by the ChunkProvider- Overrides:
onChunkLoad
in classChunk
-
onChunkUnload
public void onChunkUnload()
+ Called when this Chunk is unloaded by the ChunkProvider- Overrides:
onChunkUnload
in classChunk
-
setChunkModified
public void setChunkModified()
+ Sets the isModified flag for this Chunk- Overrides:
setChunkModified
in 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:
getEntitiesWithinAABBForEntity
in 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:
getEntitiesOfTypeWithinAAAB
in classChunk
-
needsSaving
public boolean needsSaving(boolean parFlag)
+ Returns true if this Chunk needs to be saved- Overrides:
needsSaving
in classChunk
-
getRandomWithSeed
public EaglercraftRandom getRandomWithSeed(long seed)
- Overrides:
getRandomWithSeed
in 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:
getAreLevelsEmpty
in classChunk
-
-