package net.minecraft.world.chunk;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import java.util.List;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.command.IEntitySelector;
import net.minecraft.entity.Entity;
import net.minecraft.init.Blocks;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.EnumSkyBlock;
import net.minecraft.world.World;
public class EmptyChunk extends Chunk
{
private static final String __OBFID = "CL_00000372";
public EmptyChunk(World p_i1994_1_, int p_i1994_2_, int p_i1994_3_)
{
super(p_i1994_1_, p_i1994_2_, p_i1994_3_);
}
/**
* Checks whether the chunk is at the X/Z location specified
*/
public boolean isAtLocation(int x, int z)
{
return x == this.xPosition && z == this.zPosition;
}
/**
* Returns the value in the height map at this x, z coordinate in the chunk
*/
public int getHeightValue(int x, int z)
{
return 0;
}
/**
* Generates the initial skylight map for the chunk upon generation or load.
*/
public void generateSkylightMap() {}
/**
* Generates the height map for a chunk from scratch
*/
@SideOnly(Side.CLIENT)
public void generateHeightMap() {}
/**
* Returns the block corresponding to the given coordinates inside a chunk.
*/
public Block getBlock(int p_150810_1_, int p_150810_2_, int p_150810_3_)
{
return Blocks.air;
}
public int getBlockLightOpacity(int p_150808_1_, int p_150808_2_, int p_150808_3_)
{
return 255;
}
public boolean setBlockIDWithMetadata(int p_150807_1_, int p_150807_2_, int p_150807_3_, Block p_150807_4_, int p_150807_5_)
{
return true;
}
/**
* Return the metadata corresponding to the given coordinates inside a chunk.
*/
public int getBlockMetadata(int p_76628_1_, int p_76628_2_, int p_76628_3_)
{
return 0;
}
/**
* Set the metadata of a block in the chunk
*/
public boolean setBlockMetadata(int p_76589_1_, int p_76589_2_, int p_76589_3_, int p_76589_4_)
{
return false;
}
/**
* Gets the amount of light saved in this block (doesn't adjust for daylight)
*/
public int getSavedLightValue(EnumSkyBlock p_76614_1_, int p_76614_2_, int p_76614_3_, int p_76614_4_)
{
return 0;
}
/**
* Sets the light value at the coordinate. If enumskyblock is set to sky it sets it in the skylightmap and if its a
* block then into the blocklightmap. Args enumSkyBlock, x, y, z, lightValue
*/
public void setLightValue(EnumSkyBlock p_76633_1_, int p_76633_2_, int p_76633_3_, int p_76633_4_, int p_76633_5_) {}
/**
* Gets the amount of light on a block taking into account sunlight
*/
public int getBlockLightValue(int p_76629_1_, int p_76629_2_, int p_76629_3_, int p_76629_4_)
{
return 0;
}
/**
* Adds an entity to the chunk. Args: entity
*/
public void addEntity(Entity p_76612_1_) {}
/**
* removes entity using its y chunk coordinate as its index
*/
public void removeEntity(Entity p_76622_1_) {}
/**
* Removes entity at the specified index from the entity array.
*/
public void removeEntityAtIndex(Entity p_76608_1_, int p_76608_2_) {}
/**
* Returns whether is not a block above this one blocking sight to the sky (done via checking against the heightmap)
*/
public boolean canBlockSeeTheSky(int p_76619_1_, int p_76619_2_, int p_76619_3_)
{
return false;
}
public TileEntity getBlockTileEntityInChunk(int p_150806_1_, int p_150806_2_, int p_150806_3_)
{
return null;
}
public void addTileEntity(TileEntity p_150813_1_) {}
public void setBlockTileEntityInChunk(int p_150812_1_, int p_150812_2_, int p_150812_3_, TileEntity p_150812_4_) {}
public void removeTileEntity(int p_150805_1_, int p_150805_2_, int p_150805_3_) {}
/**
* Called when this Chunk is loaded by the ChunkProvider
*/
public void onChunkLoad() {}
/**
* Called when this Chunk is unloaded by the ChunkProvider
*/
public void onChunkUnload() {}
/**
* Sets the isModified flag for this Chunk
*/
public void setChunkModified() {}
/**
* Fills the given list of all entities that intersect within the given bounding box that aren't the passed entity
* Args: entity, aabb, listToFill
*/
public void getEntitiesWithinAABBForEntity(Entity p_76588_1_, AxisAlignedBB p_76588_2_, List p_76588_3_, IEntitySelector p_76588_4_) {}
/**
* Gets all entities that can be assigned to the specified class. Args: entityClass, aabb, listToFill
*/
public void getEntitiesOfTypeWithinAAAB(Class p_76618_1_, AxisAlignedBB p_76618_2_, List p_76618_3_, IEntitySelector p_76618_4_) {}
/**
* Returns true if this Chunk needs to be saved
*/
public boolean needsSaving(boolean p_76601_1_)
{
return false;
}
public Random getRandomWithSeed(long p_76617_1_)
{
return new Random(this.worldObj.getSeed() + (long)(this.xPosition * this.xPosition * 4987142) + (long)(this.xPosition * 5947611) + (long)(this.zPosition * this.zPosition) * 4392871L + (long)(this.zPosition * 389711) ^ p_76617_1_);
}
public boolean isEmpty()
{
return true;
}
/**
* Returns whether the ExtendedBlockStorages containing levels (in blocks) from arg 1 to arg 2 are fully empty
* (true) or not (false).
*/
public boolean getAreLevelsEmpty(int p_76606_1_, int p_76606_2_)
{
return true;
}
}