类 WorldGenRegion
java.lang.Object
net.minecraft.server.level.WorldGenRegion
- 所有已实现的接口:
BiomeManager.NoiseBiomeSource
,BlockAndTintGetter
,BlockGetter
,CollisionGetter
,CommonLevelAccessor
,EntityGetter
,LevelAccessor
,LevelHeightAccessor
,LevelReader
,LevelSimulatedReader
,LevelSimulatedRW
,LevelTimeAccess
,LevelWriter
,ScheduledTickAccess
,ServerLevelAccessor
,SignalGetter
,WorldGenLevel
,IBlockAndTintGetterExtension
,IBlockGetterExtension
,ILevelReaderExtension
-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.world.level.BlockGetter
BlockGetter.BlockStepVisitor
-
字段概要
字段修饰符和类型字段说明private final BiomeManager
private final WorldGenTickAccess
<Block> private final StaticCache2D
<GenerationChunkHolder> private final ChunkAccess
private final DimensionType
private final WorldGenTickAccess
<Fluid> private final ChunkStep
private final ServerLevel
private final LevelData
private static final org.slf4j.Logger
private final RandomSource
private final long
private final AtomicLong
private static final ResourceLocation
从接口继承的字段 net.minecraft.world.level.BlockGetter
MAX_BLOCK_ITERATIONS_ALONG_TRAVEL
从接口继承的字段 net.minecraft.world.level.SignalGetter
DIRECTIONS
-
构造器概要
构造器构造器说明WorldGenRegion
(ServerLevel p_143484_, StaticCache2D<GenerationChunkHolder> p_347548_, ChunkStep p_347626_, ChunkAccess p_347663_) -
方法概要
修饰符和类型方法说明boolean
addFreshEntity
(Entity p_9580_) void
addParticle
(ParticleOptions p_9561_, double p_9562_, double p_9563_, double p_9564_, double p_9565_, double p_9566_, double p_9567_) boolean
destroyBlock
(BlockPos p_9550_, boolean p_9551_, Entity p_9552_, int p_9553_) boolean
ensureCanWrite
(BlockPos p_181031_) void
gameEvent
(Holder<GameEvent> p_316792_, Vec3 p_215164_, GameEvent.Context p_215165_) getBlockEntity
(BlockPos p_9582_) getBlockState
(BlockPos p_9587_) getChunk
(int p_9507_, int p_9508_) getChunk
(int p_9514_, int p_9515_, ChunkStatus p_331853_, boolean p_9517_) getCurrentDifficultyAt
(BlockPos p_9585_) getEntities
(Entity p_9519_, AABB p_9520_, Predicate<? super Entity> p_9521_) getEntities
(EntityTypeTest<Entity, T> p_143494_, AABB p_143495_, Predicate<? super T> p_143496_) getFluidState
(BlockPos p_9577_) int
int
getHeight
(Heightmap.Types p_9535_, int p_9536_, int p_9537_) getLevel()
已过时。int
getMinY()
getNearestPlayer
(double p_9501_, double p_9502_, double p_9503_, double p_9504_, Predicate<Entity> p_9505_) int
long
getSeed()
float
int
getUncachedNoiseBiome
(int p_203787_, int p_203788_, int p_203789_) boolean
hasChunk
(int p_9574_, int p_9575_) boolean
boolean
isFluidAtPosition
(BlockPos p_143500_, Predicate<FluidState> p_143501_) boolean
isOldChunkAround
(ChunkPos p_215160_, int p_215161_) boolean
isStateAtPosition
(BlockPos p_9544_, Predicate<BlockState> p_9545_) void
levelEvent
(Entity p_394406_, int p_9524_, BlockPos p_9525_, int p_9526_) private void
markPosForPostprocessing
(BlockPos p_9592_) long
players()
void
playSound
(Entity p_394194_, BlockPos p_9529_, SoundEvent p_9530_, SoundSource p_9531_, float p_9532_, float p_9533_) boolean
removeBlock
(BlockPos p_9547_, boolean p_9548_) boolean
setBlock
(BlockPos p_9539_, BlockState p_9540_, int p_9541_, int p_9542_) void
setCurrentlyGenerating
(Supplier<String> p_143498_) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.level.BlockAndTintGetter
canSeeSky, getBrightness, getRawBrightness
从接口继承的方法 net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, isBlockInLine
从接口继承的方法 net.minecraft.world.level.CollisionGetter
clipIncludingBorder, collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockAndLiquidCollisions, getBlockCollisions, getCollisions, getEntityCollisions, getPreMoveCollisions, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, noCollision, noCollision, noCollision
从接口继承的方法 net.minecraft.world.level.CommonLevelAccessor
getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructed
从接口继承的方法 net.minecraft.world.level.EntityGetter
getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer
从接口继承的方法 net.neoforged.neoforge.common.extensions.IBlockAndTintGetterExtension
getShade
从接口继承的方法 net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelData
从接口继承的方法 net.neoforged.neoforge.common.extensions.ILevelReaderExtension
holder, holderOrThrow, isAreaLoaded
从接口继承的方法 net.minecraft.world.level.LevelAccessor
createTick, createTick, dayTime, gameEvent, gameEvent, gameEvent, gameEvent, getDifficulty, levelEvent, neighborShapeChanged, playSound, updateNeighborsAt
从接口继承的方法 net.minecraft.world.level.LevelHeightAccessor
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeight
从接口继承的方法 net.minecraft.world.level.LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, getBiome, getBlockStatesIfLoaded, getBlockTint, getChunk, getChunk, getChunkForCollisions, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getNoiseBiome, getPathfindingCostFromLightLevels, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isEmptyBlock, isWaterAt
从接口继承的方法 net.minecraft.world.level.LevelTimeAccess
getMoonBrightness, getMoonPhase, getTimeOfDay
从接口继承的方法 net.minecraft.world.level.LevelWriter
destroyBlock, destroyBlock, setBlock
从接口继承的方法 net.minecraft.world.level.ScheduledTickAccess
scheduleTick, scheduleTick, scheduleTick, scheduleTick
从接口继承的方法 net.minecraft.world.level.ServerLevelAccessor
addFreshEntityWithPassengers
从接口继承的方法 net.minecraft.world.level.SignalGetter
getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
cache
-
center
-
level
-
seed
private final long seed -
levelData
-
random
-
dimensionType
-
blockTicks
-
fluidTicks
-
biomeManager
-
generatingStep
-
currentlyGenerating
-
subTickCount
-
WORLDGEN_REGION_RANDOM
-
-
构造器详细资料
-
WorldGenRegion
public WorldGenRegion(ServerLevel p_143484_, StaticCache2D<GenerationChunkHolder> p_347548_, ChunkStep p_347626_, ChunkAccess p_347663_)
-
-
方法详细资料
-
isOldChunkAround
-
getCenter
-
setCurrentlyGenerating
- 指定者:
setCurrentlyGenerating
在接口中WorldGenLevel
-
getChunk
- 指定者:
getChunk
在接口中LevelReader
-
getChunk
@Nullable public ChunkAccess getChunk(int p_9514_, int p_9515_, ChunkStatus p_331853_, boolean p_9517_) - 指定者:
getChunk
在接口中LevelReader
-
hasChunk
public boolean hasChunk(int p_9574_, int p_9575_) - 指定者:
hasChunk
在接口中LevelAccessor
- 指定者:
hasChunk
在接口中LevelReader
-
getBlockState
- 指定者:
getBlockState
在接口中BlockGetter
-
getFluidState
- 指定者:
getFluidState
在接口中BlockGetter
-
getNearestPlayer
@Nullable public Player getNearestPlayer(double p_9501_, double p_9502_, double p_9503_, double p_9504_, Predicate<Entity> p_9505_) - 指定者:
getNearestPlayer
在接口中EntityGetter
-
getSkyDarken
public int getSkyDarken()- 指定者:
getSkyDarken
在接口中LevelReader
-
getBiomeManager
- 指定者:
getBiomeManager
在接口中LevelReader
-
getUncachedNoiseBiome
- 指定者:
getUncachedNoiseBiome
在接口中LevelReader
-
getShade
- 指定者:
getShade
在接口中BlockAndTintGetter
-
getLightEngine
- 指定者:
getLightEngine
在接口中BlockAndTintGetter
-
destroyBlock
public boolean destroyBlock(BlockPos p_9550_, boolean p_9551_, @Nullable Entity p_9552_, int p_9553_) - 指定者:
destroyBlock
在接口中LevelWriter
-
getBlockEntity
- 指定者:
getBlockEntity
在接口中BlockGetter
-
ensureCanWrite
- 指定者:
ensureCanWrite
在接口中WorldGenLevel
-
setBlock
- 指定者:
setBlock
在接口中LevelWriter
-
markPosForPostprocessing
-
addFreshEntity
- 指定者:
addFreshEntity
在接口中LevelWriter
-
removeBlock
- 指定者:
removeBlock
在接口中LevelWriter
-
getWorldBorder
- 指定者:
getWorldBorder
在接口中CollisionGetter
-
isClientSide
public boolean isClientSide()- 指定者:
isClientSide
在接口中LevelReader
-
getLevel
已过时。- 指定者:
getLevel
在接口中ServerLevelAccessor
-
registryAccess
- 指定者:
registryAccess
在接口中LevelReader
-
enabledFeatures
- 指定者:
enabledFeatures
在接口中LevelReader
-
getLevelData
- 指定者:
getLevelData
在接口中LevelAccessor
-
getCurrentDifficultyAt
- 指定者:
getCurrentDifficultyAt
在接口中LevelAccessor
-
getServer
- 指定者:
getServer
在接口中LevelAccessor
-
getChunkSource
- 指定者:
getChunkSource
在接口中LevelAccessor
-
getSeed
public long getSeed()- 指定者:
getSeed
在接口中WorldGenLevel
-
getBlockTicks
- 指定者:
getBlockTicks
在接口中ScheduledTickAccess
-
getFluidTicks
- 指定者:
getFluidTicks
在接口中ScheduledTickAccess
-
getSeaLevel
public int getSeaLevel()- 指定者:
getSeaLevel
在接口中LevelReader
-
getRandom
- 指定者:
getRandom
在接口中LevelAccessor
-
getHeight
- 指定者:
getHeight
在接口中LevelReader
-
playSound
public void playSound(@Nullable Entity p_394194_, BlockPos p_9529_, SoundEvent p_9530_, SoundSource p_9531_, float p_9532_, float p_9533_) - 指定者:
playSound
在接口中LevelAccessor
-
addParticle
public void addParticle(ParticleOptions p_9561_, double p_9562_, double p_9563_, double p_9564_, double p_9565_, double p_9566_, double p_9567_) - 指定者:
addParticle
在接口中LevelAccessor
-
levelEvent
- 指定者:
levelEvent
在接口中LevelAccessor
-
gameEvent
- 指定者:
gameEvent
在接口中LevelAccessor
-
dimensionType
- 指定者:
dimensionType
在接口中LevelReader
-
isStateAtPosition
- 指定者:
isStateAtPosition
在接口中LevelSimulatedReader
-
isFluidAtPosition
- 指定者:
isFluidAtPosition
在接口中LevelSimulatedReader
-
getEntities
public <T extends Entity> List<T> getEntities(EntityTypeTest<Entity, T> p_143494_, AABB p_143495_, Predicate<? super T> p_143496_) - 指定者:
getEntities
在接口中EntityGetter
-
getEntities
public List<Entity> getEntities(@Nullable Entity p_9519_, AABB p_9520_, @Nullable Predicate<? super Entity> p_9521_) - 指定者:
getEntities
在接口中EntityGetter
-
players
- 指定者:
players
在接口中EntityGetter
-
getMinY
public int getMinY()- 指定者:
getMinY
在接口中LevelHeightAccessor
- 指定者:
getMinY
在接口中LevelReader
-
getHeight
public int getHeight()- 指定者:
getHeight
在接口中LevelHeightAccessor
- 指定者:
getHeight
在接口中LevelReader
-
nextSubTickCount
public long nextSubTickCount()- 指定者:
nextSubTickCount
在接口中LevelAccessor
-