public class WorldGenRegion extends java.lang.Object implements IWorld
Constructor and Description |
---|
WorldGenRegion(ChunkPrimer[] chunkPrimersIn,
int sizeXIn,
int sizeZIn,
int mainChunkXIn,
int mainChunkZIn,
World worldIn) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCelestialAngle, getChunkDefault, getCurrentMoonPhaseFactor, getDifficulty, getMoonPhase
canBlockSeeSky, checkNoEntityCollision, checkNoEntityCollision, containsAnyLiquid, func_212388_b, func_212389_a, func_212391_a, func_212392_a, getBrightness, getClosestPlayer, getClosestPlayerToEntity, getCollisionBoxes, getHeight, getLight, getNearestPlayerNotCreative, getNeighborAwareLightSubtracted, hasWater, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isAreaLoaded, isBlockLoaded, isBlockLoaded, isCollisionBoxesEmpty, isCollisionBoxesEmpty, isInsideWorldBorder
getMaxLightLevel
func_212409_a, func_212410_a, func_212411_a
public WorldGenRegion(ChunkPrimer[] chunkPrimersIn, int sizeXIn, int sizeZIn, int mainChunkXIn, int mainChunkZIn, World worldIn)
public int getMainChunkX()
public int getMainChunkZ()
public boolean isChunkInBounds(int chunkX, int chunkZ)
public IBlockState getBlockState(BlockPos pos)
getBlockState
in interface IBlockReader
public IFluidState getFluidState(BlockPos pos)
getFluidState
in interface IBlockReader
@Nullable public EntityPlayer getClosestPlayer(double x, double y, double z, double distance, java.util.function.Predicate<Entity> predicate)
getClosestPlayer
in interface IWorldReaderBase
public int getSkylightSubtracted()
getSkylightSubtracted
in interface IWorldReaderBase
public boolean isAirBlock(BlockPos pos)
isAirBlock
in interface IWorldReaderBase
public Biome getBiome(BlockPos pos)
getBiome
in interface IWorldReaderBase
public int getLightFor(EnumLightType type, BlockPos pos)
getLightFor
in interface IWorldReaderBase
public int getLightSubtracted(BlockPos pos, int amount)
getLightSubtracted
in interface IWorldReaderBase
public boolean isChunkLoaded(int x, int z, boolean allowEmpty)
isChunkLoaded
in interface IWorldReaderBase
public boolean destroyBlock(BlockPos pos, boolean dropBlock)
destroyBlock
in interface IWorldWriter
public boolean canSeeSky(BlockPos pos)
canSeeSky
in interface IWorldReaderBase
@Nullable public TileEntity getTileEntity(BlockPos pos)
getTileEntity
in interface IBlockReader
public boolean setBlockState(BlockPos pos, IBlockState newState, int flags)
setBlockState
in interface IWorldWriter
public boolean spawnEntity(Entity entityIn)
spawnEntity
in interface IWorldWriter
public boolean removeBlock(BlockPos pos)
removeBlock
in interface IWorldWriter
public void setLightFor(EnumLightType type, BlockPos pos, int lightValue)
setLightFor
in interface IWorldWriter
public WorldBorder getWorldBorder()
getWorldBorder
in interface IWorldReaderBase
public boolean checkNoEntityCollision(@Nullable Entity entityIn, VoxelShape shape)
checkNoEntityCollision
in interface IWorldReaderBase
public int getStrongPower(BlockPos pos, EnumFacing direction)
getStrongPower
in interface IWorldReaderBase
public boolean isRemote()
isRemote
in interface IWorldReaderBase
public WorldInfo getWorldInfo()
getWorldInfo
in interface IWorld
public DifficultyInstance getDifficultyForLocation(BlockPos pos)
getDifficultyForLocation
in interface IWorld
@Nullable public WorldSavedDataStorage getMapStorage()
getMapStorage
in interface ISaveDataAccess
public IChunkProvider getChunkProvider()
getChunkProvider
in interface IWorld
public ISaveHandler getSaveHandler()
getSaveHandler
in interface IWorld
public ITickList<Block> getPendingBlockTicks()
getPendingBlockTicks
in interface IWorld
public ITickList<Fluid> getPendingFluidTicks()
getPendingFluidTicks
in interface IWorld
public int getSeaLevel()
getSeaLevel
in interface IWorldReaderBase
public void notifyNeighbors(BlockPos pos, Block blockIn)
notifyNeighbors
in interface IWorld
public int getHeight(Heightmap.Type heightmapType, int x, int z)
getHeight
in interface IWorldReaderBase
public void playSound(@Nullable EntityPlayer player, BlockPos pos, SoundEvent soundIn, SoundCategory category, float volume, float pitch)
public void spawnParticle(IParticleData particleData, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
spawnParticle
in interface IWorld
public BlockPos getSpawnPoint()
getSpawnPoint
in interface IWorld
public Dimension getDimension()
getDimension
in interface IWorldReaderBase