类 WorldGenRegion
java.lang.Object
net.minecraft.server.level.WorldGenRegion
- 所有已实现的接口:
BiomeManager.NoiseBiomeSource
,BlockAndTintGetter
,BlockGetter
,CollisionGetter
,CommonLevelAccessor
,EntityGetter
,LevelAccessor
,LevelHeightAccessor
,LevelReader
,LevelSimulatedReader
,LevelSimulatedRW
,LevelTimeAccess
,LevelWriter
,ServerLevelAccessor
,SignalGetter
,WorldGenLevel
,IForgeBlockAndTintGetter
,IForgeBlockGetter
-
字段概要
字段修饰符和类型字段说明private final BiomeManager
private final WorldGenTickAccess<Block>
private final List<ChunkAccess>
private final ChunkAccess
private final DimensionType
private final ChunkPos
private final WorldGenTickAccess<Fluid>
private final ChunkStatus
private final ChunkPos
private final ServerLevel
private final LevelData
private static final org.slf4j.Logger
private final RandomSource
private final long
private final int
private final StructureManager
private final AtomicLong
private static final ResourceLocation
private final int
从接口继承的字段 net.minecraft.world.level.SignalGetter
DIRECTIONS
-
构造器概要
构造器构造器说明WorldGenRegion
(ServerLevel pLevel, List<ChunkAccess> pCache, ChunkStatus pGeneratingStatus, int pWriteRadiusCutoff) -
方法概要
修饰符和类型方法说明boolean
addFreshEntity
(Entity pEntity) void
addParticle
(ParticleOptions pParticleData, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) boolean
destroyBlock
(BlockPos pPos, boolean pDropBlock, Entity pEntity, int pRecursionLeft) boolean
ensureCanWrite
(BlockPos pPos) void
gameEvent
(GameEvent pEvent, Vec3 pPosition, GameEvent.Context pContext) getBlockEntity
(BlockPos pPos) getBlockState
(BlockPos pPos) getChunk
(int pChunkX, int pChunkZ) getChunk
(int pX, int pZ, ChunkStatus pRequiredStatus, boolean pNonnull) getEntities
(Entity pEntity, AABB pBoundingBox, Predicate<? super Entity> pPredicate) getEntities
(EntityTypeTest<Entity, T> pEntityTypeTest, AABB pBounds, Predicate<? super T> pPredicate) getFluidState
(BlockPos pPos) int
int
getHeight
(Heightmap.Types pHeightmapType, int pX, int pZ) getLevel()
已过时。int
getNearestPlayer
(double pX, double pY, double pZ, double pDistance, Predicate<Entity> pPredicate) int
long
getSeed()
float
int
getUncachedNoiseBiome
(int pX, int pY, int pZ) boolean
hasChunk
(int pChunkX, int pChunkZ) boolean
boolean
isFluidAtPosition
(BlockPos pPos, Predicate<FluidState> pPredicate) boolean
isOldChunkAround
(ChunkPos pPos, int p_215161_) boolean
isStateAtPosition
(BlockPos pPos, Predicate<BlockState> pState) void
levelEvent
(Player pPlayer, int pType, BlockPos pPos, int pData) private void
long
players()
void
playSound
(Player pPlayer, BlockPos pPos, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch) boolean
removeBlock
(BlockPos pPos, boolean pIsMoving) boolean
setBlock
(BlockPos pPos, BlockState pState, int pFlags, int pRecursionLeft) void
setCurrentlyGenerating
(Supplier<String> pCurrentlyGenerating) 从类继承的方法 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, getMaxLightLevel, isBlockInLine
从接口继承的方法 net.minecraft.world.level.CollisionGetter
collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockCollisions, getCollisions, getEntityCollisions, isUnobstructed, isUnobstructed, isUnobstructed, noCollision, noCollision, noCollision
从接口继承的方法 net.minecraft.world.level.CommonLevelAccessor
getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructed
从接口继承的方法 net.minecraft.world.level.EntityGetter
getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer
从接口继承的方法 net.minecraftforge.client.extensions.IForgeBlockAndTintGetter
getShade
从接口继承的方法 net.minecraftforge.common.extensions.IForgeBlockGetter
getExistingBlockEntity, getModelDataManager
从接口继承的方法 net.minecraft.world.level.LevelAccessor
blockUpdated, dayTime, gameEvent, gameEvent, gameEvent, getDifficulty, levelEvent, neighborShapeChanged, playSound, scheduleTick, scheduleTick, scheduleTick, scheduleTick
从接口继承的方法 net.minecraft.world.level.LevelHeightAccessor
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
从接口继承的方法 net.minecraft.world.level.LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, getBiome, getBlockStatesIfLoaded, getBlockTint, getChunk, getChunk, getChunkForCollisions, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getNoiseBiome, getPathfindingCostFromLightLevels, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isAreaLoaded, isEmptyBlock, isWaterAt
从接口继承的方法 net.minecraft.world.level.LevelTimeAccess
getMoonBrightness, getMoonPhase, getTimeOfDay
从接口继承的方法 net.minecraft.world.level.LevelWriter
destroyBlock, destroyBlock, setBlock
从接口继承的方法 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
-
size
private final int size -
level
-
seed
private final long seed -
levelData
-
random
-
dimensionType
-
blockTicks
-
fluidTicks
-
biomeManager
-
firstPos
-
lastPos
-
structureManager
-
generatingStatus
-
writeRadiusCutoff
private final int writeRadiusCutoff -
currentlyGenerating
-
subTickCount
-
WORLDGEN_REGION_RANDOM
-
-
构造器详细资料
-
WorldGenRegion
public WorldGenRegion(ServerLevel pLevel, List<ChunkAccess> pCache, ChunkStatus pGeneratingStatus, int pWriteRadiusCutoff)
-
-
方法详细资料
-
isOldChunkAround
-
getCenter
-
setCurrentlyGenerating
- 指定者:
setCurrentlyGenerating
在接口中WorldGenLevel
-
getChunk
- 指定者:
getChunk
在接口中LevelReader
-
getChunk
@Nullable public ChunkAccess getChunk(int pX, int pZ, ChunkStatus pRequiredStatus, boolean pNonnull) - 指定者:
getChunk
在接口中LevelReader
-
hasChunk
public boolean hasChunk(int pChunkX, int pChunkZ) - 指定者:
hasChunk
在接口中LevelAccessor
- 指定者:
hasChunk
在接口中LevelReader
-
getBlockState
- 指定者:
getBlockState
在接口中BlockGetter
-
getFluidState
- 指定者:
getFluidState
在接口中BlockGetter
-
getNearestPlayer
@Nullable public Player getNearestPlayer(double pX, double pY, double pZ, double pDistance, Predicate<Entity> pPredicate) - 指定者:
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 pPos, boolean pDropBlock, @Nullable Entity pEntity, int pRecursionLeft) - 指定者:
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
在接口中LevelAccessor
-
getFluidTicks
- 指定者:
getFluidTicks
在接口中LevelAccessor
-
getSeaLevel
public int getSeaLevel()- 指定者:
getSeaLevel
在接口中LevelReader
-
getRandom
- 指定者:
getRandom
在接口中LevelAccessor
-
getHeight
- 指定者:
getHeight
在接口中LevelReader
-
playSound
public void playSound(@Nullable Player pPlayer, BlockPos pPos, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch) - 指定者:
playSound
在接口中LevelAccessor
-
addParticle
public void addParticle(ParticleOptions pParticleData, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) - 指定者:
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> pEntityTypeTest, AABB pBounds, Predicate<? super T> pPredicate) - 指定者:
getEntities
在接口中EntityGetter
-
getEntities
public List<Entity> getEntities(@Nullable Entity pEntity, AABB pBoundingBox, @Nullable Predicate<? super Entity> pPredicate) - 指定者:
getEntities
在接口中EntityGetter
-
players
- 指定者:
players
在接口中EntityGetter
-
getMinBuildHeight
public int getMinBuildHeight()- 指定者:
getMinBuildHeight
在接口中LevelHeightAccessor
- 指定者:
getMinBuildHeight
在接口中LevelReader
-
getHeight
public int getHeight()- 指定者:
getHeight
在接口中LevelHeightAccessor
- 指定者:
getHeight
在接口中LevelReader
-
nextSubTickCount
public long nextSubTickCount()- 指定者:
nextSubTickCount
在接口中LevelAccessor
-