public class WorldGenRegion extends java.lang.Object implements IWorld
コンストラクタと説明 |
---|
WorldGenRegion(ServerWorld p_i50698_1_,
java.util.List<IChunk> p_i50698_2_) |
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
addEntity(Entity entityIn) |
void |
addParticle(IParticleData particleData,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed) |
boolean |
chunkExists(int chunkX,
int chunkZ) |
boolean |
destroyBlock(BlockPos p_225521_1_,
boolean p_225521_2_,
Entity p_225521_3_) |
BiomeManager |
getBiomeManager() |
BlockState |
getBlockState(BlockPos pos) |
IChunk |
getChunk(int chunkX,
int chunkZ) |
IChunk |
getChunk(int x,
int z,
ChunkStatus requiredStatus,
boolean nonnull) |
AbstractChunkProvider |
getChunkProvider()
Gets the world's chunk provider
|
PlayerEntity |
getClosestPlayer(double x,
double y,
double z,
double distance,
java.util.function.Predicate<Entity> predicate) |
DifficultyInstance |
getDifficultyForLocation(BlockPos pos) |
Dimension |
getDimension() |
java.util.List<Entity> |
getEntitiesInAABBexcluding(Entity entityIn,
AxisAlignedBB boundingBox,
java.util.function.Predicate<? super Entity> predicate)
Gets all entities within the specified AABB excluding the one passed into it.
|
<T extends Entity> |
getEntitiesWithinAABB(java.lang.Class<? extends T> clazz,
AxisAlignedBB aabb,
java.util.function.Predicate<? super T> filter) |
IFluidState |
getFluidState(BlockPos pos) |
int |
getHeight(Heightmap.Type heightmapType,
int x,
int z) |
WorldLightManager |
getLightManager() |
int |
getMainChunkX() |
int |
getMainChunkZ() |
Biome |
getNoiseBiomeRaw(int x,
int y,
int z) |
ITickList<Block> |
getPendingBlockTicks() |
ITickList<Fluid> |
getPendingFluidTicks() |
java.util.List<PlayerEntity> |
getPlayers() |
java.util.Random |
getRandom() |
int |
getSeaLevel() |
long |
getSeed()
gets the random world seed
|
int |
getSkylightSubtracted() |
BlockPos |
getSpawnPoint()
Gets the spawn point in the world
|
TileEntity |
getTileEntity(BlockPos pos) |
ServerWorld |
getWorld()
非推奨です。
|
WorldBorder |
getWorldBorder() |
WorldInfo |
getWorldInfo()
Returns the world's WorldInfo object
|
boolean |
hasBlockState(BlockPos p_217375_1_,
java.util.function.Predicate<BlockState> p_217375_2_) |
boolean |
isRemote() |
void |
notifyNeighbors(BlockPos pos,
Block blockIn) |
void |
playEvent(PlayerEntity player,
int type,
BlockPos pos,
int data) |
void |
playSound(PlayerEntity player,
BlockPos pos,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch)
Plays a sound.
|
boolean |
removeBlock(BlockPos pos,
boolean isMoving) |
boolean |
setBlockState(BlockPos pos,
BlockState newState,
int flags)
Sets a block state into this world.Flags are as follows:
1 will cause a block update.
2 will send the change to clients.
4 will prevent the block from being re-rendered.
8 will force any re-renders to run on the main thread instead
16 will prevent neighbor reactions (e.g. fences connecting, observers pulsing).
32 will prevent neighbor reactions from spawning drops.
64 will signify the block is being moved.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkNoEntityCollision, getCelestialAngle, getCurrentMoonPhaseFactor, getDifficulty, getEmptyCollisionShapes, getHeight, getMoonPhase, playEvent
func_225317_b, func_225318_b, getClosestEntity, getClosestEntityWithinAABB, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getEntitiesWithinAABB, getEntitiesWithinAABBExcludingEntity, getLoadedEntitiesWithinAABB, getPlayerByUuid, getTargettableEntitiesWithinAABB, getTargettablePlayersWithinAABB, isPlayerWithin
canBlockSeeSky, containsAnyLiquid, getBiome, getBlockColor, getBlockReader, getBrightness, getChunk, getChunk, getLight, getNeighborAwareLightSubtracted, getNoiseBiome, getStrongPower, hasWater, isAirBlock, isAreaLoaded, isAreaLoaded, isAreaLoaded, isBlockLoaded
canSeeSky, getLightFor, getLightSubtracted
checkNoEntityCollision, func_226663_a_, getCollisionShapes, getCollisionShapes, hasNoCollisions, hasNoCollisions, hasNoCollisions, hasNoCollisions
func_217300_a, getHeight, getLightValue, getMaxLightLevel, rayTraceBlocks, rayTraceBlocks
getMaxHeight
destroyBlock
public WorldGenRegion(ServerWorld p_i50698_1_, java.util.List<IChunk> p_i50698_2_)
public int getMainChunkX()
public int getMainChunkZ()
public IChunk getChunk(int chunkX, int chunkZ)
getChunk
インタフェース内 IWorldReader
@Nullable public IChunk getChunk(int x, int z, ChunkStatus requiredStatus, boolean nonnull)
getChunk
インタフェース内 IWorldReader
public boolean chunkExists(int chunkX, int chunkZ)
chunkExists
インタフェース内 IWorld
chunkExists
インタフェース内 IWorldReader
public BlockState getBlockState(BlockPos pos)
getBlockState
インタフェース内 IBlockReader
public IFluidState getFluidState(BlockPos pos)
getFluidState
インタフェース内 IBlockReader
@Nullable public PlayerEntity getClosestPlayer(double x, double y, double z, double distance, java.util.function.Predicate<Entity> predicate)
getClosestPlayer
インタフェース内 IEntityReader
public int getSkylightSubtracted()
getSkylightSubtracted
インタフェース内 IWorldReader
public BiomeManager getBiomeManager()
getBiomeManager
インタフェース内 IWorldReader
public Biome getNoiseBiomeRaw(int x, int y, int z)
getNoiseBiomeRaw
インタフェース内 IWorldReader
public WorldLightManager getLightManager()
getLightManager
インタフェース内 ILightReader
public boolean destroyBlock(BlockPos p_225521_1_, boolean p_225521_2_, @Nullable Entity p_225521_3_)
destroyBlock
インタフェース内 IWorldWriter
@Nullable public TileEntity getTileEntity(BlockPos pos)
getTileEntity
インタフェース内 IBlockReader
public boolean setBlockState(BlockPos pos, BlockState newState, int flags)
setBlockState
インタフェース内 IWorldWriter
public boolean addEntity(Entity entityIn)
addEntity
インタフェース内 IWorldWriter
public boolean removeBlock(BlockPos pos, boolean isMoving)
removeBlock
インタフェース内 IWorldWriter
public WorldBorder getWorldBorder()
getWorldBorder
インタフェース内 ICollisionReader
public boolean isRemote()
isRemote
インタフェース内 IWorldReader
@Deprecated public ServerWorld getWorld()
public WorldInfo getWorldInfo()
getWorldInfo
インタフェース内 IWorld
public DifficultyInstance getDifficultyForLocation(BlockPos pos)
getDifficultyForLocation
インタフェース内 IWorld
public AbstractChunkProvider getChunkProvider()
getChunkProvider
インタフェース内 IWorld
public ITickList<Block> getPendingBlockTicks()
getPendingBlockTicks
インタフェース内 IWorld
public ITickList<Fluid> getPendingFluidTicks()
getPendingFluidTicks
インタフェース内 IWorld
public int getSeaLevel()
getSeaLevel
インタフェース内 IWorldReader
public void notifyNeighbors(BlockPos pos, Block blockIn)
notifyNeighbors
インタフェース内 IWorld
public int getHeight(Heightmap.Type heightmapType, int x, int z)
getHeight
インタフェース内 IWorldReader
public void playSound(@Nullable PlayerEntity player, BlockPos pos, SoundEvent soundIn, SoundCategory category, float volume, float pitch)
public void addParticle(IParticleData particleData, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
addParticle
インタフェース内 IWorld
public void playEvent(@Nullable PlayerEntity player, int type, BlockPos pos, int data)
public BlockPos getSpawnPoint()
getSpawnPoint
インタフェース内 IWorld
public Dimension getDimension()
getDimension
インタフェース内 IWorldReader
public boolean hasBlockState(BlockPos p_217375_1_, java.util.function.Predicate<BlockState> p_217375_2_)
hasBlockState
インタフェース内 IWorldGenerationBaseReader
public <T extends Entity> java.util.List<T> getEntitiesWithinAABB(java.lang.Class<? extends T> clazz, AxisAlignedBB aabb, @Nullable java.util.function.Predicate<? super T> filter)
getEntitiesWithinAABB
インタフェース内 IEntityReader
public java.util.List<Entity> getEntitiesInAABBexcluding(@Nullable Entity entityIn, AxisAlignedBB boundingBox, @Nullable java.util.function.Predicate<? super Entity> predicate)
getEntitiesInAABBexcluding
インタフェース内 IEntityReader
public java.util.List<PlayerEntity> getPlayers()
getPlayers
インタフェース内 IEntityReader