类 LevelRenderer
java.lang.Object
net.minecraft.client.renderer.LevelRenderer
-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier
-
字段概要
字段修饰符和类型字段说明private final BlockEntityRenderDispatcher
private Frustum
private boolean
private final CloudRenderer
private Frustum
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap
<BlockDestructionProgress> private final it.unimi.dsi.fastutil.longs.Long2ObjectMap
<SortedSet<BlockDestructionProgress>> private static final ResourceLocation
private RenderTarget
private final EntityRenderDispatcher
private final Set
<BlockEntity> static final int
private int
private int
private int
private BlockPos
private int
private ClientLevel
private static final org.slf4j.Logger
private final Minecraft
private static final int
static final int
private final it.unimi.dsi.fastutil.objects.ObjectArrayList
<SectionRenderDispatcher.RenderSection> private double
private double
private double
private double
private double
private final RenderBuffers
static final int
private final SectionOcclusionGraph
private SectionRenderDispatcher
private final SkyRenderer
private final LevelTargetBundle
private int
private int
private static final ResourceLocation
private ViewArea
private int
private final it.unimi.dsi.fastutil.objects.ObjectArrayList
<SectionRenderDispatcher.RenderSection> private WeatherEffectRenderer
private final WorldBorderRenderer
-
构造器概要
构造器构造器说明LevelRenderer
(Minecraft p_234245_, EntityRenderDispatcher p_234246_, BlockEntityRenderDispatcher p_234247_, RenderBuffers p_234248_) -
方法概要
修饰符和类型方法说明private void
addCloudsPass
(FrameGraphBuilder p_364518_, org.joml.Matrix4f p_361837_, org.joml.Matrix4f p_366102_, CloudStatus p_368512_, Vec3 p_364075_, float p_369524_, int p_369495_, float p_366207_) private void
addLateDebugPass
(FrameGraphBuilder p_369572_, Vec3 p_365929_, FogParameters p_368329_) private void
addMainPass
(FrameGraphBuilder p_365119_, Frustum p_363733_, Camera p_364769_, org.joml.Matrix4f p_361439_, org.joml.Matrix4f p_369924_, FogParameters p_365435_, boolean p_362593_, boolean p_368830_, DeltaTracker p_365046_, ProfilerFiller p_369478_) void
addParticle
(ParticleOptions p_109753_, boolean p_109754_, boolean p_109755_, double p_109756_, double p_109757_, double p_109758_, double p_109759_, double p_109760_, double p_109761_) void
addParticle
(ParticleOptions p_109744_, boolean p_109745_, double p_109746_, double p_109747_, double p_109748_, double p_109749_, double p_109750_, double p_109751_) <T extends ParticleOptions>
voidaddParticle
(T p_109736_, double p_109737_, double p_109738_, double p_109739_, double p_109740_, double p_109741_, double p_109742_) private Particle
addParticleInternal
(ParticleOptions p_109805_, boolean p_109806_, boolean p_109807_, double p_109808_, double p_109809_, double p_109810_, double p_109811_, double p_109812_, double p_109813_) (专用程序包) Particle
addParticleInternal
(ParticleOptions p_109796_, boolean p_109797_, double p_109798_, double p_109799_, double p_109800_, double p_109801_, double p_109802_, double p_109803_) private void
addParticlesPass
(FrameGraphBuilder p_366471_, Camera p_363128_, float p_365755_, FogParameters p_363695_, Frustum frustum) void
private void
addSkyPass
(FrameGraphBuilder p_362462_, Camera p_369183_, float p_368085_, FogParameters p_365377_) private void
addWeatherPass
(FrameGraphBuilder p_362650_, Vec3 p_368413_, float p_367747_, FogParameters p_364026_) void
private void
applyFrustum
(Frustum p_194355_) void
blockChanged
(BlockGetter p_109545_, BlockPos p_109546_, BlockState p_109547_, BlockState p_109548_, int p_109549_) private ParticleStatus
calculateParticleLevel
(boolean p_109768_) void
private void
checkPoseStack
(PoseStack p_109589_) private void
void
close()
private boolean
collectVisibleEntities
(Camera p_365712_, Frustum p_365717_, List<Entity> p_368622_) private void
compileSections
(Camera p_194371_) int
void
destroyBlockProgress
(int p_109775_, BlockPos p_109776_, int p_109777_) void
private boolean
doesMobEffectBlockSky
(Camera p_234311_) double
static int
getLightColor
(BlockAndTintGetter p_109542_, BlockPos p_109543_) static int
getLightColor
(BlockAndTintGetter p_109538_, BlockState p_109539_, BlockPos p_109540_) int
getTicks()
double
private PostChain
it.unimi.dsi.fastutil.objects.ObjectArrayList
<SectionRenderDispatcher.RenderSection> boolean
void
boolean
isSectionCompiled
(BlockPos p_300380_) void
void
static Frustum
offsetFrustum
(Frustum p_298803_) void
onChunkReadyToRender
(ChunkPos p_376082_) void
onResourceManagerReload
(ResourceManager p_109513_) void
onSectionBecomingNonEmpty
(long p_366966_) void
prepareCullFrustum
(Vec3 p_253766_, org.joml.Matrix4f p_254341_, org.joml.Matrix4f p_332544_) private void
removeProgress
(BlockDestructionProgress p_109766_) private void
renderBlockDestroyAnimation
(PoseStack p_366956_, Camera p_369324_, MultiBufferSource.BufferSource p_365998_) private boolean
renderBlockEntities
(PoseStack p_366168_, MultiBufferSource.BufferSource p_362022_, MultiBufferSource.BufferSource p_369016_, Camera p_369847_, float p_367074_, Frustum frustum) private void
renderBlockOutline
(Camera p_367935_, MultiBufferSource.BufferSource p_367206_, PoseStack p_365062_, boolean p_368189_, float partialTicks) private void
renderEntities
(PoseStack p_369689_, MultiBufferSource.BufferSource p_367493_, Camera p_368044_, DeltaTracker p_369396_, List<Entity> p_364182_) private void
renderEntity
(Entity p_109518_, double p_109519_, double p_109520_, double p_109521_, float p_109522_, PoseStack p_109523_, MultiBufferSource p_109524_) private void
renderHitOutline
(PoseStack p_109638_, VertexConsumer p_109639_, Entity p_109640_, double p_109641_, double p_109642_, double p_109643_, BlockPos p_109644_, BlockState p_109645_, int p_362600_) void
renderLevel
(GraphicsResourceAllocator p_367325_, DeltaTracker p_342180_, boolean p_109603_, Camera p_109604_, GameRenderer p_109605_, org.joml.Matrix4f p_254120_, org.joml.Matrix4f p_330527_) private void
renderSectionLayer
(RenderType p_298012_, double p_298706_, double p_299730_, double p_298956_, org.joml.Matrix4f p_297481_, org.joml.Matrix4f p_333714_) void
resize
(int p_109488_, int p_109489_) private void
scheduleResort
(SectionRenderDispatcher.RenderSection p_363545_, SectionRenderDispatcher.TranslucencyPointOfView p_365141_, Vec3 p_364217_, boolean p_363419_, boolean p_368916_) private void
scheduleTranslucentSectionResort
(Vec3 p_362155_) private void
setBlockDirty
(BlockPos p_109733_, boolean p_109734_) void
setBlockDirty
(BlockPos p_109722_, BlockState p_109723_, BlockState p_109724_) void
setBlocksDirty
(int p_109495_, int p_109496_, int p_109497_, int p_109498_, int p_109499_, int p_109500_) void
setLevel
(ClientLevel p_109702_) void
setSectionDirty
(int p_109771_, int p_109772_, int p_109773_) private void
setSectionDirty
(int p_109502_, int p_109503_, int p_109504_, boolean p_109505_) void
setSectionDirtyWithNeighbors
(int p_109491_, int p_109492_, int p_109493_) void
setSectionRangeDirty
(int p_368495_, int p_365381_, int p_365979_, int p_367380_, int p_368841_, int p_363880_) private void
setupRender
(Camera p_194339_, Frustum p_194340_, boolean p_194341_, boolean p_194342_) void
private boolean
shouldRenderDarkDisc
(float p_365771_) boolean
void
tick()
void
tickParticles
(Camera p_369538_) void
updateGlobalBlockEntities
(Collection<BlockEntity> p_109763_, Collection<BlockEntity> p_109764_) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.server.packs.resources.PreparableReloadListener
getName
从接口继承的方法 net.minecraft.server.packs.resources.ResourceManagerReloadListener
reload
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
TRANSPARENCY_POST_CHAIN_ID
-
ENTITY_OUTLINE_POST_CHAIN_ID
-
SECTION_SIZE
public static final int SECTION_SIZE- 另请参阅:
-
HALF_SECTION_SIZE
public static final int HALF_SECTION_SIZE- 另请参阅:
-
NEARBY_SECTION_DISTANCE_IN_BLOCKS
public static final int NEARBY_SECTION_DISTANCE_IN_BLOCKS- 另请参阅:
-
MINIMUM_TRANSPARENT_SORT_COUNT
private static final int MINIMUM_TRANSPARENT_SORT_COUNT- 另请参阅:
-
minecraft
-
entityRenderDispatcher
-
blockEntityRenderDispatcher
-
renderBuffers
-
skyRenderer
-
cloudRenderer
-
worldBorderRenderer
-
weatherEffectRenderer
-
level
-
sectionOcclusionGraph
-
visibleSections
private final it.unimi.dsi.fastutil.objects.ObjectArrayList<SectionRenderDispatcher.RenderSection> visibleSections -
nearbyVisibleSections
private final it.unimi.dsi.fastutil.objects.ObjectArrayList<SectionRenderDispatcher.RenderSection> nearbyVisibleSections -
globalBlockEntities
-
viewArea
-
ticks
private int ticks -
destroyingBlocks
-
destructionProgress
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<SortedSet<BlockDestructionProgress>> destructionProgress -
entityOutlineTarget
-
targets
-
lastCameraSectionX
private int lastCameraSectionX -
lastCameraSectionY
private int lastCameraSectionY -
lastCameraSectionZ
private int lastCameraSectionZ -
prevCamX
private double prevCamX -
prevCamY
private double prevCamY -
prevCamZ
private double prevCamZ -
prevCamRotX
private double prevCamRotX -
prevCamRotY
private double prevCamRotY -
sectionRenderDispatcher
-
lastViewDistance
private int lastViewDistance -
visibleEntities
-
visibleEntityCount
private int visibleEntityCount -
cullingFrustum
-
captureFrustum
private boolean captureFrustum -
capturedFrustum
-
lastTranslucentSortBlockPos
-
translucencyResortIterationIndex
private int translucencyResortIterationIndex
-
-
构造器详细资料
-
LevelRenderer
public LevelRenderer(Minecraft p_234245_, EntityRenderDispatcher p_234246_, BlockEntityRenderDispatcher p_234247_, RenderBuffers p_234248_)
-
-
方法详细资料
-
tickParticles
-
close
public void close()- 指定者:
close
在接口中AutoCloseable
-
onResourceManagerReload
-
initOutline
public void initOutline() -
getTransparencyChain
-
doEntityOutline
public void doEntityOutline() -
shouldShowEntityOutlines
public boolean shouldShowEntityOutlines() -
setLevel
-
clearVisibleSections
private void clearVisibleSections() -
allChanged
public void allChanged() -
resize
public void resize(int p_109488_, int p_109489_) -
getSectionStatistics
-
getSectionRenderDispatcher
-
getTotalSections
public double getTotalSections() -
getLastViewDistance
public double getLastViewDistance() -
countRenderedSections
public int countRenderedSections() -
getEntityStatistics
-
setupRender
-
offsetFrustum
-
applyFrustum
-
addRecentlyCompiledSection
-
prepareCullFrustum
public void prepareCullFrustum(Vec3 p_253766_, org.joml.Matrix4f p_254341_, org.joml.Matrix4f p_332544_) -
renderLevel
public void renderLevel(GraphicsResourceAllocator p_367325_, DeltaTracker p_342180_, boolean p_109603_, Camera p_109604_, GameRenderer p_109605_, org.joml.Matrix4f p_254120_, org.joml.Matrix4f p_330527_) -
addMainPass
private void addMainPass(FrameGraphBuilder p_365119_, Frustum p_363733_, Camera p_364769_, org.joml.Matrix4f p_361439_, org.joml.Matrix4f p_369924_, FogParameters p_365435_, boolean p_362593_, boolean p_368830_, DeltaTracker p_365046_, ProfilerFiller p_369478_) -
addParticlesPass
private void addParticlesPass(FrameGraphBuilder p_366471_, Camera p_363128_, float p_365755_, FogParameters p_363695_, Frustum frustum) -
addCloudsPass
private void addCloudsPass(FrameGraphBuilder p_364518_, org.joml.Matrix4f p_361837_, org.joml.Matrix4f p_366102_, CloudStatus p_368512_, Vec3 p_364075_, float p_369524_, int p_369495_, float p_366207_) -
addWeatherPass
private void addWeatherPass(FrameGraphBuilder p_362650_, Vec3 p_368413_, float p_367747_, FogParameters p_364026_) -
addLateDebugPass
-
collectVisibleEntities
-
renderEntities
private void renderEntities(PoseStack p_369689_, MultiBufferSource.BufferSource p_367493_, Camera p_368044_, DeltaTracker p_369396_, List<Entity> p_364182_) -
renderBlockEntities
private boolean renderBlockEntities(PoseStack p_366168_, MultiBufferSource.BufferSource p_362022_, MultiBufferSource.BufferSource p_369016_, Camera p_369847_, float p_367074_, Frustum frustum) -
renderBlockDestroyAnimation
private void renderBlockDestroyAnimation(PoseStack p_366956_, Camera p_369324_, MultiBufferSource.BufferSource p_365998_) -
renderBlockOutline
private void renderBlockOutline(Camera p_367935_, MultiBufferSource.BufferSource p_367206_, PoseStack p_365062_, boolean p_368189_, float partialTicks) -
checkPoseStack
-
renderEntity
private void renderEntity(Entity p_109518_, double p_109519_, double p_109520_, double p_109521_, float p_109522_, PoseStack p_109523_, MultiBufferSource p_109524_) -
scheduleTranslucentSectionResort
-
scheduleResort
private void scheduleResort(SectionRenderDispatcher.RenderSection p_363545_, SectionRenderDispatcher.TranslucencyPointOfView p_365141_, Vec3 p_364217_, boolean p_363419_, boolean p_368916_) -
renderSectionLayer
private void renderSectionLayer(RenderType p_298012_, double p_298706_, double p_299730_, double p_298956_, org.joml.Matrix4f p_297481_, org.joml.Matrix4f p_333714_) -
captureFrustum
public void captureFrustum() -
killFrustum
public void killFrustum() -
tick
public void tick() -
removeProgress
-
addSkyPass
private void addSkyPass(FrameGraphBuilder p_362462_, Camera p_369183_, float p_368085_, FogParameters p_365377_) -
shouldRenderDarkDisc
private boolean shouldRenderDarkDisc(float p_365771_) -
doesMobEffectBlockSky
-
compileSections
-
renderHitOutline
private void renderHitOutline(PoseStack p_109638_, VertexConsumer p_109639_, Entity p_109640_, double p_109641_, double p_109642_, double p_109643_, BlockPos p_109644_, BlockState p_109645_, int p_362600_) -
blockChanged
public void blockChanged(BlockGetter p_109545_, BlockPos p_109546_, BlockState p_109547_, BlockState p_109548_, int p_109549_) -
setBlockDirty
-
setBlocksDirty
public void setBlocksDirty(int p_109495_, int p_109496_, int p_109497_, int p_109498_, int p_109499_, int p_109500_) -
setBlockDirty
-
setSectionDirtyWithNeighbors
public void setSectionDirtyWithNeighbors(int p_109491_, int p_109492_, int p_109493_) -
setSectionRangeDirty
public void setSectionRangeDirty(int p_368495_, int p_365381_, int p_365979_, int p_367380_, int p_368841_, int p_363880_) -
setSectionDirty
public void setSectionDirty(int p_109771_, int p_109772_, int p_109773_) -
setSectionDirty
private void setSectionDirty(int p_109502_, int p_109503_, int p_109504_, boolean p_109505_) -
onSectionBecomingNonEmpty
public void onSectionBecomingNonEmpty(long p_366966_) -
addParticle
public void addParticle(ParticleOptions p_109744_, boolean p_109745_, double p_109746_, double p_109747_, double p_109748_, double p_109749_, double p_109750_, double p_109751_) -
addParticle
public void addParticle(ParticleOptions p_109753_, boolean p_109754_, boolean p_109755_, double p_109756_, double p_109757_, double p_109758_, double p_109759_, double p_109760_, double p_109761_) -
addParticle
public <T extends ParticleOptions> void addParticle(T p_109736_, double p_109737_, double p_109738_, double p_109739_, double p_109740_, double p_109741_, double p_109742_) -
addParticleInternal
@Nullable Particle addParticleInternal(ParticleOptions p_109796_, boolean p_109797_, double p_109798_, double p_109799_, double p_109800_, double p_109801_, double p_109802_, double p_109803_) -
addParticleInternal
@Nullable private Particle addParticleInternal(ParticleOptions p_109805_, boolean p_109806_, boolean p_109807_, double p_109808_, double p_109809_, double p_109810_, double p_109811_, double p_109812_, double p_109813_) -
calculateParticleLevel
-
destroyBlockProgress
-
hasRenderedAllSections
public boolean hasRenderedAllSections() -
onChunkReadyToRender
-
needsUpdate
public void needsUpdate() -
updateGlobalBlockEntities
public void updateGlobalBlockEntities(Collection<BlockEntity> p_109763_, Collection<BlockEntity> p_109764_) -
getLightColor
-
getLightColor
public static int getLightColor(BlockAndTintGetter p_109538_, BlockState p_109539_, BlockPos p_109540_) -
isSectionCompiled
-
entityOutlineTarget
-
getTranslucentTarget
-
getItemEntityTarget
-
getParticlesTarget
-
getWeatherTarget
-
getCloudsTarget
-
getVisibleSections
public it.unimi.dsi.fastutil.objects.ObjectArrayList<SectionRenderDispatcher.RenderSection> getVisibleSections() -
getSectionOcclusionGraph
-
getCapturedFrustum
-
getCloudRenderer
-
getFrustum
-
getTicks
public int getTicks() -
getWeatherEffects
-
setWeatherEffects
-