类 ClientLevel
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<Level>
net.minecraft.world.level.Level
net.minecraft.client.multiplayer.ClientLevel
- 所有已实现的接口:
AutoCloseable
,BiomeManager.NoiseBiomeSource
,BlockAndTintGetter
,BlockGetter
,CollisionGetter
,CommonLevelAccessor
,EntityGetter
,LevelAccessor
,LevelHeightAccessor
,LevelReader
,LevelSimulatedReader
,LevelSimulatedRW
,LevelTimeAccess
,LevelWriter
,SignalGetter
,IForgeBlockAndTintGetter
,ICapabilityProvider
,ICapabilityProviderImpl<Level>
,IForgeBlockGetter
,IForgeLevel
-
嵌套类概要
嵌套类修饰符和类型类说明static class
(专用程序包) final class
从类继承的嵌套类/接口 net.minecraft.world.level.Level
Level.ExplosionInteraction
从类继承的嵌套类/接口 net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
字段概要
字段修饰符和类型字段说明private final BlockStatePredictionHandler
private final ClientChunkCache
private final ClientLevel.ClientLevelData
private static final long
private final ClientPacketListener
private final DimensionSpecialEffects
private final TransientEntitySectionManager<Entity>
private static final double
private final LevelRenderer
private static final int
private static final org.slf4j.Logger
private final Map<String,
MapItemSavedData> private final Minecraft
private final ModelDataManager
private static final int
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<PartEntity<?>>
(专用程序包) final List<AbstractClientPlayer>
private Scoreboard
private int
private int
(专用程序包) final EntityTickList
private final it.unimi.dsi.fastutil.objects.Object2ObjectArrayMap<ColorResolver,
BlockTintCache> 从类继承的字段 net.minecraft.world.level.Level
addend, blockEntityTickers, captureBlockSnapshots, capturedBlockSnapshots, END, isClientSide, levelData, LONG_PARTICLE_CLIP_RANGE, MAX_BRIGHTNESS, MAX_ENTITY_SPAWN_Y, MAX_LEVEL_SIZE, MIN_ENTITY_SPAWN_Y, neighborUpdater, NETHER, oRainLevel, oThunderLevel, OVERWORLD, rainLevel, random, randValue, RESOURCE_KEY_CODEC, restoringBlockSnapshots, SHORT_PARTICLE_CLIP_RANGE, thunderLevel, TICKS_PER_DAY
从接口继承的字段 net.minecraft.world.level.SignalGetter
DIRECTIONS
-
构造器概要
构造器构造器说明ClientLevel
(ClientPacketListener pConnection, ClientLevel.ClientLevelData pClientLevelData, ResourceKey<Level> pDimension, Holder<DimensionType> pDimensionType, int pViewDistance, int pServerSimulationDistance, Supplier<ProfilerFiller> pProfiler, LevelRenderer pLevelRenderer, boolean pIsDebug, long pBiomeZoomSeed) -
方法概要
修饰符和类型方法说明void
addAlwaysVisibleParticle
(ParticleOptions pParticleData, boolean pIgnoreRange, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) void
addAlwaysVisibleParticle
(ParticleOptions pParticleData, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) void
addDestroyBlockEffect
(BlockPos pPos, BlockState pState) private void
protected void
addMapData
(Map<String, MapItemSavedData> pMap) void
addParticle
(ParticleOptions pParticleData, boolean pForceAlwaysRender, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) void
addParticle
(ParticleOptions pParticleData, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) void
addPlayer
(int pPlayerId, AbstractClientPlayer pPlayerEntity) void
animateTick
(int pPosX, int pPosY, int pPosZ) int
calculateBlockTint
(BlockPos pBlockPos, ColorResolver pColorResolver) void
void
createFireworks
(double pX, double pY, double pZ, double pMotionX, double pMotionY, double pMotionZ, CompoundTag pCompound) void
destroyBlockProgress
(int pBreakerId, BlockPos pPos, int pProgress) void
void
doAnimateTick
(int pPosX, int pPosY, int pPosZ, int pRange, RandomSource pRandom, Block pBlock, BlockPos.MutableBlockPos pBlockPos) effects()
fillReportDetails
(CrashReport pReport) void
gameEvent
(GameEvent pEvent, Vec3 pPosition, GameEvent.Context pContext) protected Map<String,
MapItemSavedData> (专用程序包) BlockStatePredictionHandler
int
getBlockTint
(BlockPos pBlockPos, ColorResolver pColorResolver) getCloudColor
(float pPartialTick) protected LevelEntityGetter<Entity>
getEntity
(int pId) int
int
getMapData
(String pMapName) private Block
Retrieves the model data manager for this level.Collection<PartEntity<?>>
All part entities in this world.int
float
getShade
(float normalX, float normalY, float normalZ, boolean shade) Computes the shade for a given normal.float
getSkyColor
(Vec3 pPos, float pPartialTick) float
getSkyDarken
(float pPartialTick) int
float
getStarBrightness
(float pPartialTick) getUncachedNoiseBiome
(int pX, int pY, int pZ) void
globalLevelEvent
(int pId, BlockPos pPos, int pData) void
handleBlockChangedAck
(int p_233652_) boolean
hasChunk
(int pChunkX, int pChunkZ) boolean
void
levelEvent
(Player pPlayer, int pType, BlockPos pPos, int pData) void
onChunkLoaded
(ChunkPos pChunkPos) void
overrideMapData
(String pMapName, MapItemSavedData pData) players()
void
playLocalSound
(double pX, double pY, double pZ, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch, boolean pDistanceDelay) void
playSeededSound
(Player pPlayer, double pX, double pY, double pZ, Holder<SoundEvent> pSound, SoundSource pSource, float pVolume, float pPitch, long pSeed) void
playSeededSound
(Player pPlayer, Entity pEntity, Holder<SoundEvent> pSound, SoundSource pCategory, float pVolume, float pPitch, long pSeed) private void
playSound
(double pX, double pY, double pZ, SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, boolean pDistanceDelay, long pSeed) void
void
putNonPlayerEntity
(int pEntityId, Entity pEntityToSpawn) void
queueLightUpdate
(Runnable pTask) void
removeEntity
(int pEntityId, Entity.RemovalReason pReason) void
sendBlockUpdated
(BlockPos pPos, BlockState pOldState, BlockState pNewState, int pFlags) void
sendPacketToServer
(Packet<?> pPacket) boolean
setBlock
(BlockPos pPos, BlockState pState, int pFlags, int pRecursionLeft) void
setBlocksDirty
(BlockPos pBlockPos, BlockState pOldState, BlockState pNewState) void
setDayTime
(long pTime) void
setDefaultSpawnPos
(BlockPos pSpawnPos, float pSpawnAngle) void
setGameTime
(long pTime) void
setMapData
(String pMapName, MapItemSavedData pData) void
setScoreboard
(Scoreboard pScoreboard) void
setSectionDirtyWithNeighbors
(int pSectionX, int pSectionY, int pSectionZ) void
setServerSimulationDistance
(int pServerSimulationDistance) void
setServerVerifiedBlockState
(BlockPos pPos, BlockState pState, int p_233656_) void
setSkyFlashTime
(int pTimeFlash) boolean
shouldTickDeath
(Entity pEntity) private void
spawnFluidParticle
(double pXStart, double pXEnd, double pZStart, double pZEnd, double pY, ParticleOptions pParticleData) private void
spawnParticle
(BlockPos pPos, ParticleOptions pParticleData, VoxelShape pVoxelShape, double pY) void
syncBlockState
(BlockPos pPos, BlockState pState, Vec3 p_233650_) void
tick
(BooleanSupplier pHasTimeLeft) void
void
tickNonPassenger
(Entity p_104640_) private void
tickPassenger
(Entity pMount, Entity pRider) private void
tickTime()
toString()
private void
trySpawnDripParticles
(BlockPos pBlockPos, BlockState pBlockState, ParticleOptions pParticleData, boolean pShapeDownSolid) void
unload
(LevelChunk pChunk) 从类继承的方法 net.minecraft.world.level.Level
addBlockEntityTicker, addFreshBlockEntities, blockEntityChanged, blockEvent, broadcastDamageEvent, broadcastEntityEvent, close, damageSources, destroyBlock, dimension, dimensionType, dimensionTypeId, dimensionTypeRegistration, explode, explode, explode, explode, explode, getBiomeManager, getBlockEntity, getBlockRandomPos, getBlockState, getChunk, getChunk, getChunkAt, getChunkForCollisions, getCurrentDifficultyAt, getDayTime, getEntities, getEntities, getEntities, getEntities, getFluidState, getGameRules, getGameTime, getHeight, getLightEngine, getMaxEntityRadius, getProfiler, getProfilerSupplier, getRainLevel, getRandom, getSeaLevel, getServer, getSharedSpawnAngle, getSharedSpawnPos, getSkyDarken, getSunAngle, getThunderLevel, getWorldBorder, guardEntityTick, increaseMaxEntityRadius, isClientSide, isDay, isDebug, isFluidAtPosition, isInSpawnableBounds, isInWorldBounds, isLoaded, isNight, isRaining, isRainingAt, isStateAtPosition, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, markAndNotifyBlock, mayInteract, neighborChanged, neighborChanged, neighborShapeChanged, nextSubTickCount, noSave, onBlockStateChange, playLocalSound, playSeededSound, playSound, playSound, playSound, playSound, prepareWeather, registryAccess, removeBlock, removeBlockEntity, setBlock, setBlockAndUpdate, setBlockEntity, setRainLevel, setSpawnSettings, setThunderLevel, shouldTickBlocksAt, shouldTickBlocksAt, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateNeighbourForOutputSignal, updateSkyBrightness
从类继承的方法 net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer
从接口继承的方法 net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
从接口继承的方法 net.minecraftforge.common.extensions.IForgeBlockGetter
getExistingBlockEntity
从接口继承的方法 net.minecraft.world.level.LevelAccessor
blockUpdated, dayTime, gameEvent, gameEvent, gameEvent, getDifficulty, levelEvent, 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, getChunk, getChunk, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, getPathfindingCostFromLightLevels, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isAreaLoaded, isEmptyBlock, isWaterAt
从接口继承的方法 net.minecraft.world.level.LevelTimeAccess
getMoonBrightness, getMoonPhase, getTimeOfDay
从接口继承的方法 net.minecraft.world.level.LevelWriter
addFreshEntity, destroyBlock, destroyBlock
从接口继承的方法 net.minecraft.world.level.SignalGetter
getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
FLUID_PARTICLE_SPAWN_OFFSET
private static final double FLUID_PARTICLE_SPAWN_OFFSET- 另请参阅:
-
NORMAL_LIGHT_UPDATES_PER_FRAME
private static final int NORMAL_LIGHT_UPDATES_PER_FRAME- 另请参阅:
-
LIGHT_UPDATE_QUEUE_SIZE_THRESHOLD
private static final int LIGHT_UPDATE_QUEUE_SIZE_THRESHOLD- 另请参阅:
-
tickingEntities
-
entityStorage
-
connection
-
levelRenderer
-
clientLevelData
-
effects
-
minecraft
-
players
-
scoreboard
-
mapData
-
CLOUD_COLOR
private static final long CLOUD_COLOR- 另请参阅:
-
skyFlashTime
private int skyFlashTime -
tintCaches
private final it.unimi.dsi.fastutil.objects.Object2ObjectArrayMap<ColorResolver,BlockTintCache> tintCaches -
chunkSource
-
lightUpdateQueue
-
serverSimulationDistance
private int serverSimulationDistance -
blockStatePredictionHandler
-
MARKER_PARTICLE_ITEMS
-
partEntities
-
modelDataManager
-
-
构造器详细资料
-
ClientLevel
public ClientLevel(ClientPacketListener pConnection, ClientLevel.ClientLevelData pClientLevelData, ResourceKey<Level> pDimension, Holder<DimensionType> pDimensionType, int pViewDistance, int pServerSimulationDistance, Supplier<ProfilerFiller> pProfiler, LevelRenderer pLevelRenderer, boolean pIsDebug, long pBiomeZoomSeed)
-
-
方法详细资料
-
handleBlockChangedAck
public void handleBlockChangedAck(int p_233652_) -
setServerVerifiedBlockState
-
syncBlockState
-
getBlockStatePredictionHandler
BlockStatePredictionHandler getBlockStatePredictionHandler() -
setBlock
- 指定者:
setBlock
在接口中LevelWriter
- 覆盖:
setBlock
在类中Level
-
queueLightUpdate
-
pollLightUpdates
public void pollLightUpdates() -
isLightUpdateQueueEmpty
public boolean isLightUpdateQueueEmpty() -
effects
-
tick
-
tickTime
private void tickTime() -
setGameTime
public void setGameTime(long pTime) -
setDayTime
public void setDayTime(long pTime) -
entitiesForRendering
-
tickEntities
public void tickEntities() -
shouldTickDeath
- 覆盖:
shouldTickDeath
在类中Level
-
tickNonPassenger
-
tickPassenger
-
unload
-
onChunkLoaded
-
clearTintCaches
public void clearTintCaches() -
hasChunk
public boolean hasChunk(int pChunkX, int pChunkZ) -
getEntityCount
public int getEntityCount() -
addPlayer
-
putNonPlayerEntity
-
addEntity
-
removeEntity
-
getEntity
-
disconnect
public void disconnect()- 覆盖:
disconnect
在类中Level
-
animateTick
public void animateTick(int pPosX, int pPosY, int pPosZ) -
getMarkerParticleTarget
-
doAnimateTick
public void doAnimateTick(int pPosX, int pPosY, int pPosZ, int pRange, RandomSource pRandom, @Nullable Block pBlock, BlockPos.MutableBlockPos pBlockPos) -
trySpawnDripParticles
private void trySpawnDripParticles(BlockPos pBlockPos, BlockState pBlockState, ParticleOptions pParticleData, boolean pShapeDownSolid) -
spawnParticle
private void spawnParticle(BlockPos pPos, ParticleOptions pParticleData, VoxelShape pVoxelShape, double pY) -
spawnFluidParticle
private void spawnFluidParticle(double pXStart, double pXEnd, double pZStart, double pZEnd, double pY, ParticleOptions pParticleData) -
fillReportDetails
- 覆盖:
fillReportDetails
在类中Level
-
playSeededSound
public void playSeededSound(@Nullable Player pPlayer, double pX, double pY, double pZ, Holder<SoundEvent> pSound, SoundSource pSource, float pVolume, float pPitch, long pSeed) - 指定者:
playSeededSound
在类中Level
-
playSeededSound
public void playSeededSound(@Nullable Player pPlayer, Entity pEntity, Holder<SoundEvent> pSound, SoundSource pCategory, float pVolume, float pPitch, long pSeed) - 指定者:
playSeededSound
在类中Level
-
playLocalSound
public void playLocalSound(double pX, double pY, double pZ, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch, boolean pDistanceDelay) - 覆盖:
playLocalSound
在类中Level
-
playSound
private void playSound(double pX, double pY, double pZ, SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, boolean pDistanceDelay, long pSeed) -
createFireworks
public void createFireworks(double pX, double pY, double pZ, double pMotionX, double pMotionY, double pMotionZ, @Nullable CompoundTag pCompound) - 覆盖:
createFireworks
在类中Level
-
sendPacketToServer
- 覆盖:
sendPacketToServer
在类中Level
-
getRecipeManager
- 指定者:
getRecipeManager
在类中Level
-
setScoreboard
-
getBlockTicks
-
getFluidTicks
-
getChunkSource
-
getMapData
- 指定者:
getMapData
在类中Level
-
overrideMapData
-
setMapData
- 指定者:
setMapData
在类中Level
-
getFreeMapId
public int getFreeMapId()- 指定者:
getFreeMapId
在类中Level
-
getScoreboard
- 指定者:
getScoreboard
在类中Level
-
sendBlockUpdated
- 指定者:
sendBlockUpdated
在类中Level
-
setBlocksDirty
- 覆盖:
setBlocksDirty
在类中Level
-
setSectionDirtyWithNeighbors
public void setSectionDirtyWithNeighbors(int pSectionX, int pSectionY, int pSectionZ) -
destroyBlockProgress
- 指定者:
destroyBlockProgress
在类中Level
-
globalLevelEvent
- 覆盖:
globalLevelEvent
在类中Level
-
levelEvent
-
addParticle
public void addParticle(ParticleOptions pParticleData, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) - 指定者:
addParticle
在接口中LevelAccessor
- 覆盖:
addParticle
在类中Level
-
addParticle
public void addParticle(ParticleOptions pParticleData, boolean pForceAlwaysRender, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) - 覆盖:
addParticle
在类中Level
-
addAlwaysVisibleParticle
public void addAlwaysVisibleParticle(ParticleOptions pParticleData, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) - 覆盖:
addAlwaysVisibleParticle
在类中Level
-
addAlwaysVisibleParticle
public void addAlwaysVisibleParticle(ParticleOptions pParticleData, boolean pIgnoreRange, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) - 覆盖:
addAlwaysVisibleParticle
在类中Level
-
players
-
getUncachedNoiseBiome
-
getSkyDarken
public float getSkyDarken(float pPartialTick) -
getSkyColor
-
getCloudColor
-
getStarBrightness
public float getStarBrightness(float pPartialTick) -
getSkyFlashTime
public int getSkyFlashTime() -
setSkyFlashTime
public void setSkyFlashTime(int pTimeFlash) - 覆盖:
setSkyFlashTime
在类中Level
-
getShade
-
getBlockTint
-
calculateBlockTint
-
setDefaultSpawnPos
-
toString
-
getLevelData
- 指定者:
getLevelData
在接口中LevelAccessor
- 覆盖:
getLevelData
在类中Level
-
gameEvent
-
getAllMapData
-
addMapData
-
getEntities
- 指定者:
getEntities
在类中Level
-
gatherChunkSourceStats
- 指定者:
gatherChunkSourceStats
在类中Level
-
addDestroyBlockEffect
- 覆盖:
addDestroyBlockEffect
在类中Level
-
setServerSimulationDistance
public void setServerSimulationDistance(int pServerSimulationDistance) -
getServerSimulationDistance
public int getServerSimulationDistance() -
enabledFeatures
-
getPartEntities
从接口复制的说明:IForgeLevel
All part entities in this world. Used when collecting entities in an AABB to fix parts being ignored whose parent entity is in a chunk that does not intersect with the AABB. -
getModelDataManager
从接口复制的说明:IForgeBlockGetter
Retrieves the model data manager for this level. This will benull
on a server level. -
getShade
public float getShade(float normalX, float normalY, float normalZ, boolean shade) 从接口复制的说明:IForgeBlockAndTintGetter
Computes the shade for a given normal. Alternate version of the vanilla method taking in aDirection
.
-