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, waitcheckNoEntityCollision, getCelestialAngle, getCurrentMoonPhaseFactor, getDifficulty, getEmptyCollisionShapes, getHeight, getMoonPhase, playEventfunc_225317_b, func_225318_b, getClosestEntity, getClosestEntityWithinAABB, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getEntitiesWithinAABB, getEntitiesWithinAABBExcludingEntity, getLoadedEntitiesWithinAABB, getPlayerByUuid, getTargettableEntitiesWithinAABB, getTargettablePlayersWithinAABB, isPlayerWithincanBlockSeeSky, containsAnyLiquid, getBiome, getBlockColor, getBlockReader, getBrightness, getChunk, getChunk, getLight, getNeighborAwareLightSubtracted, getNoiseBiome, getStrongPower, hasWater, isAirBlock, isAreaLoaded, isAreaLoaded, isAreaLoaded, isBlockLoadedcanSeeSky, getLightFor, getLightSubtractedcheckNoEntityCollision, func_226663_a_, getCollisionShapes, getCollisionShapes, hasNoCollisions, hasNoCollisions, hasNoCollisions, hasNoCollisionsfunc_217300_a, getHeight, getLightValue, getMaxLightLevel, rayTraceBlocks, rayTraceBlocksgetMaxHeightdestroyBlockpublic 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 インタフェース内 IWorldReaderpublic boolean chunkExists(int chunkX,
int chunkZ)
chunkExists インタフェース内 IWorldchunkExists インタフェース内 IWorldReaderpublic BlockState getBlockState(BlockPos pos)
getBlockState インタフェース内 IBlockReaderpublic 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 インタフェース内 IEntityReaderpublic int getSkylightSubtracted()
getSkylightSubtracted インタフェース内 IWorldReaderpublic BiomeManager getBiomeManager()
getBiomeManager インタフェース内 IWorldReaderpublic Biome getNoiseBiomeRaw(int x, int y, int z)
getNoiseBiomeRaw インタフェース内 IWorldReaderpublic WorldLightManager getLightManager()
getLightManager インタフェース内 ILightReaderpublic boolean destroyBlock(BlockPos p_225521_1_, boolean p_225521_2_, @Nullable Entity p_225521_3_)
destroyBlock インタフェース内 IWorldWriter@Nullable public TileEntity getTileEntity(BlockPos pos)
getTileEntity インタフェース内 IBlockReaderpublic boolean setBlockState(BlockPos pos, BlockState newState, int flags)
setBlockState インタフェース内 IWorldWriterpublic boolean addEntity(Entity entityIn)
addEntity インタフェース内 IWorldWriterpublic boolean removeBlock(BlockPos pos, boolean isMoving)
removeBlock インタフェース内 IWorldWriterpublic WorldBorder getWorldBorder()
getWorldBorder インタフェース内 ICollisionReaderpublic boolean isRemote()
isRemote インタフェース内 IWorldReader@Deprecated public ServerWorld getWorld()
public WorldInfo getWorldInfo()
getWorldInfo インタフェース内 IWorldpublic DifficultyInstance getDifficultyForLocation(BlockPos pos)
getDifficultyForLocation インタフェース内 IWorldpublic AbstractChunkProvider getChunkProvider()
getChunkProvider インタフェース内 IWorldpublic ITickList<Block> getPendingBlockTicks()
getPendingBlockTicks インタフェース内 IWorldpublic ITickList<Fluid> getPendingFluidTicks()
getPendingFluidTicks インタフェース内 IWorldpublic int getSeaLevel()
getSeaLevel インタフェース内 IWorldReaderpublic void notifyNeighbors(BlockPos pos, Block blockIn)
notifyNeighbors インタフェース内 IWorldpublic int getHeight(Heightmap.Type heightmapType, int x, int z)
getHeight インタフェース内 IWorldReaderpublic 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 インタフェース内 IWorldpublic void playEvent(@Nullable
PlayerEntity player,
int type,
BlockPos pos,
int data)
public BlockPos getSpawnPoint()
getSpawnPoint インタフェース内 IWorldpublic Dimension getDimension()
getDimension インタフェース内 IWorldReaderpublic boolean hasBlockState(BlockPos p_217375_1_, java.util.function.Predicate<BlockState> p_217375_2_)
hasBlockState インタフェース内 IWorldGenerationBaseReaderpublic <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 インタフェース内 IEntityReaderpublic java.util.List<Entity> getEntitiesInAABBexcluding(@Nullable Entity entityIn, AxisAlignedBB boundingBox, @Nullable java.util.function.Predicate<? super Entity> predicate)
getEntitiesInAABBexcluding インタフェース内 IEntityReaderpublic java.util.List<PlayerEntity> getPlayers()
getPlayers インタフェース内 IEntityReader