接口 LevelAccessor
- 所有超级接口:
BiomeManager.NoiseBiomeSource
,BlockAndTintGetter
,BlockGetter
,CollisionGetter
,CommonLevelAccessor
,EntityGetter
,IForgeBlockAndTintGetter
,IForgeBlockGetter
,LevelHeightAccessor
,LevelReader
,LevelSimulatedReader
,LevelSimulatedRW
,LevelTimeAccess
,LevelWriter
,SignalGetter
- 所有已知子接口:
ServerLevelAccessor
,WorldGenLevel
- 所有已知实现类:
ClientLevel
,Level
,ServerLevel
,WorldGenRegion
-
字段概要
从接口继承的字段 net.minecraft.world.level.SignalGetter
DIRECTIONS
-
方法概要
修饰符和类型方法说明void
addParticle
(ParticleOptions pParticleData, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) default void
blockUpdated
(BlockPos pPos, Block pBlock) private <T> ScheduledTick<T>
createTick
(BlockPos pPos, T pType, int pDelay) private <T> ScheduledTick<T>
createTick
(BlockPos pPos, T pType, int pDelay, TickPriority pPriority) default long
dayTime()
default void
default void
default void
gameEvent
(GameEvent pEvent, BlockPos pPos, GameEvent.Context pContext) void
gameEvent
(GameEvent pEvent, Vec3 pPosition, GameEvent.Context pContext) default Difficulty
default boolean
hasChunk
(int pChunkX, int pChunkZ) default void
levelEvent
(int pType, BlockPos pPos, int pData) void
levelEvent
(Player pPlayer, int pType, BlockPos pPos, int pData) default void
neighborShapeChanged
(Direction pDirection, BlockState pQueried, BlockPos pPos, BlockPos pOffsetPos, int pFlags, int pRecursionLevel) long
default void
playSound
(Player pPlayer, BlockPos pPos, SoundEvent pSound, SoundSource pSource) void
playSound
(Player pPlayer, BlockPos pPos, SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch) default void
scheduleTick
(BlockPos pPos, Block pBlock, int pDelay) default void
scheduleTick
(BlockPos pPos, Block pBlock, int pDelay, TickPriority pPriority) default void
scheduleTick
(BlockPos pPos, Fluid pFluid, int pDelay) default void
scheduleTick
(BlockPos pPos, Fluid pFluid, int pDelay, TickPriority pPriority) 从接口继承的方法 net.minecraft.world.level.BlockAndTintGetter
canSeeSky, getBrightness, getLightEngine, getRawBrightness, getShade
从接口继承的方法 net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, getMaxLightLevel, isBlockInLine
从接口继承的方法 net.minecraft.world.level.CollisionGetter
collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, isUnobstructed, isUnobstructed, isUnobstructed, noCollision, noCollision, noCollision
从接口继承的方法 net.minecraft.world.level.CommonLevelAccessor
getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructed
从接口继承的方法 net.minecraft.world.level.EntityGetter
getEntities, getEntities, getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer, players
从接口继承的方法 net.minecraftforge.client.extensions.IForgeBlockAndTintGetter
getShade
从接口继承的方法 net.minecraftforge.common.extensions.IForgeBlockGetter
getExistingBlockEntity, getModelDataManager
从接口继承的方法 net.minecraft.world.level.LevelHeightAccessor
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
从接口继承的方法 net.minecraft.world.level.LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, dimensionType, enabledFeatures, getBiome, getBiomeManager, getBlockStatesIfLoaded, getBlockTint, getChunk, getChunk, getChunk, getChunk, getChunkForCollisions, getHeight, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, getPathfindingCostFromLightLevels, getSeaLevel, getSkyDarken, getUncachedNoiseBiome, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isAreaLoaded, isClientSide, isEmptyBlock, isWaterAt, registryAccess
从接口继承的方法 net.minecraft.world.level.LevelSimulatedReader
isFluidAtPosition, isStateAtPosition
从接口继承的方法 net.minecraft.world.level.LevelTimeAccess
getMoonBrightness, getMoonPhase, getTimeOfDay
从接口继承的方法 net.minecraft.world.level.LevelWriter
addFreshEntity, destroyBlock, destroyBlock, destroyBlock, removeBlock, setBlock, setBlock
从接口继承的方法 net.minecraft.world.level.SignalGetter
getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
-
方法详细资料
-
dayTime
default long dayTime()- 指定者:
dayTime
在接口中LevelTimeAccess
-
nextSubTickCount
long nextSubTickCount() -
getBlockTicks
LevelTickAccess<Block> getBlockTicks() -
createTick
-
createTick
-
scheduleTick
-
scheduleTick
-
getFluidTicks
LevelTickAccess<Fluid> getFluidTicks() -
scheduleTick
-
scheduleTick
-
getLevelData
LevelData getLevelData() -
getCurrentDifficultyAt
-
getServer
-
getDifficulty
-
getChunkSource
ChunkSource getChunkSource() -
hasChunk
default boolean hasChunk(int pChunkX, int pChunkZ) - 指定者:
hasChunk
在接口中LevelReader
-
getRandom
RandomSource getRandom() -
blockUpdated
-
neighborShapeChanged
default void neighborShapeChanged(Direction pDirection, BlockState pQueried, BlockPos pPos, BlockPos pOffsetPos, int pFlags, int pRecursionLevel) -
playSound
default void playSound(@Nullable Player pPlayer, BlockPos pPos, SoundEvent pSound, SoundSource pSource) -
playSound
void playSound(@Nullable Player pPlayer, BlockPos pPos, SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch) -
addParticle
void addParticle(ParticleOptions pParticleData, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) -
levelEvent
-
levelEvent
-
gameEvent
-
gameEvent
-
gameEvent
-
gameEvent
-