类 LevelRenderer

java.lang.Object
net.minecraft.client.renderer.LevelRenderer
所有已实现的接口:
AutoCloseable, PreparableReloadListener, ResourceManagerReloadListener

public class LevelRenderer extends Object implements ResourceManagerReloadListener, AutoCloseable
  • 字段详细资料

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • TRANSPARENCY_POST_CHAIN_ID

      private static final ResourceLocation TRANSPARENCY_POST_CHAIN_ID
    • ENTITY_OUTLINE_POST_CHAIN_ID

      private static final ResourceLocation 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

      private final Minecraft minecraft
    • entityRenderDispatcher

      private final EntityRenderDispatcher entityRenderDispatcher
    • blockEntityRenderDispatcher

      private final BlockEntityRenderDispatcher blockEntityRenderDispatcher
    • renderBuffers

      private final RenderBuffers renderBuffers
    • skyRenderer

      private final SkyRenderer skyRenderer
    • cloudRenderer

      private final CloudRenderer cloudRenderer
    • worldBorderRenderer

      private final WorldBorderRenderer worldBorderRenderer
    • weatherEffectRenderer

      private WeatherEffectRenderer weatherEffectRenderer
    • level

      @Nullable private ClientLevel level
    • sectionOcclusionGraph

      private final SectionOcclusionGraph 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

      private final Set<BlockEntity> globalBlockEntities
    • viewArea

      @Nullable private ViewArea viewArea
    • ticks

      private int ticks
    • destroyingBlocks

      private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<BlockDestructionProgress> destroyingBlocks
    • destructionProgress

      private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<SortedSet<BlockDestructionProgress>> destructionProgress
    • entityOutlineTarget

      @Nullable private RenderTarget entityOutlineTarget
    • targets

      private final LevelTargetBundle 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

      @Nullable private SectionRenderDispatcher sectionRenderDispatcher
    • lastViewDistance

      private int lastViewDistance
    • visibleEntities

      private final List<Entity> visibleEntities
    • visibleEntityCount

      private int visibleEntityCount
    • cullingFrustum

      private Frustum cullingFrustum
    • captureFrustum

      private boolean captureFrustum
    • capturedFrustum

      @Nullable private Frustum capturedFrustum
    • lastTranslucentSortBlockPos

      @Nullable private BlockPos lastTranslucentSortBlockPos
    • translucencyResortIterationIndex

      private int translucencyResortIterationIndex
  • 构造器详细资料

  • 方法详细资料

    • tickParticles

      public void tickParticles(Camera p_369538_)
    • close

      public void close()
      指定者:
      close 在接口中 AutoCloseable
    • onResourceManagerReload

      public void onResourceManagerReload(ResourceManager p_109513_)
      指定者:
      onResourceManagerReload 在接口中 ResourceManagerReloadListener
    • initOutline

      public void initOutline()
    • getTransparencyChain

      @Nullable private PostChain getTransparencyChain()
    • doEntityOutline

      public void doEntityOutline()
    • shouldShowEntityOutlines

      public boolean shouldShowEntityOutlines()
    • setLevel

      public void setLevel(@Nullable ClientLevel p_109702_)
    • clearVisibleSections

      private void clearVisibleSections()
    • allChanged

      public void allChanged()
    • resize

      public void resize(int p_109488_, int p_109489_)
    • getSectionStatistics

      public String getSectionStatistics()
    • getSectionRenderDispatcher

      public SectionRenderDispatcher getSectionRenderDispatcher()
    • getTotalSections

      public double getTotalSections()
    • getLastViewDistance

      public double getLastViewDistance()
    • countRenderedSections

      public int countRenderedSections()
    • getEntityStatistics

      public String getEntityStatistics()
    • setupRender

      private void setupRender(Camera p_194339_, Frustum p_194340_, boolean p_194341_, boolean p_194342_)
    • offsetFrustum

      public static Frustum offsetFrustum(Frustum p_298803_)
    • applyFrustum

      private void applyFrustum(Frustum p_194355_)
    • addRecentlyCompiledSection

      public void addRecentlyCompiledSection(SectionRenderDispatcher.RenderSection p_301248_)
    • 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

      private void addLateDebugPass(FrameGraphBuilder p_369572_, Vec3 p_365929_, FogParameters p_368329_)
    • collectVisibleEntities

      private boolean collectVisibleEntities(Camera p_365712_, Frustum p_365717_, List<Entity> p_368622_)
    • 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

      private void checkPoseStack(PoseStack p_109589_)
    • 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

      private void scheduleTranslucentSectionResort(Vec3 p_362155_)
    • 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

      private void removeProgress(BlockDestructionProgress p_109766_)
    • addSkyPass

      private void addSkyPass(FrameGraphBuilder p_362462_, Camera p_369183_, float p_368085_, FogParameters p_365377_)
    • shouldRenderDarkDisc

      private boolean shouldRenderDarkDisc(float p_365771_)
    • doesMobEffectBlockSky

      private boolean doesMobEffectBlockSky(Camera p_234311_)
    • compileSections

      private void compileSections(Camera p_194371_)
    • 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

      private void setBlockDirty(BlockPos p_109733_, boolean p_109734_)
    • setBlocksDirty

      public void setBlocksDirty(int p_109495_, int p_109496_, int p_109497_, int p_109498_, int p_109499_, int p_109500_)
    • setBlockDirty

      public void setBlockDirty(BlockPos p_109722_, BlockState p_109723_, BlockState p_109724_)
    • 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

      private ParticleStatus calculateParticleLevel(boolean p_109768_)
    • destroyBlockProgress

      public void destroyBlockProgress(int p_109775_, BlockPos p_109776_, int p_109777_)
    • hasRenderedAllSections

      public boolean hasRenderedAllSections()
    • onChunkReadyToRender

      public void onChunkReadyToRender(ChunkPos p_376082_)
    • needsUpdate

      public void needsUpdate()
    • updateGlobalBlockEntities

      public void updateGlobalBlockEntities(Collection<BlockEntity> p_109763_, Collection<BlockEntity> p_109764_)
    • getLightColor

      public static int getLightColor(BlockAndTintGetter p_109542_, BlockPos p_109543_)
    • getLightColor

      public static int getLightColor(BlockAndTintGetter p_109538_, BlockState p_109539_, BlockPos p_109540_)
    • isSectionCompiled

      public boolean isSectionCompiled(BlockPos p_300380_)
    • entityOutlineTarget

      @Nullable public RenderTarget entityOutlineTarget()
    • getTranslucentTarget

      @Nullable public RenderTarget getTranslucentTarget()
    • getItemEntityTarget

      @Nullable public RenderTarget getItemEntityTarget()
    • getParticlesTarget

      @Nullable public RenderTarget getParticlesTarget()
    • getWeatherTarget

      @Nullable public RenderTarget getWeatherTarget()
    • getCloudsTarget

      @Nullable public RenderTarget getCloudsTarget()
    • getVisibleSections

      public it.unimi.dsi.fastutil.objects.ObjectArrayList<SectionRenderDispatcher.RenderSection> getVisibleSections()
    • getSectionOcclusionGraph

      public SectionOcclusionGraph getSectionOcclusionGraph()
    • getCapturedFrustum

      @Nullable public Frustum getCapturedFrustum()
    • getCloudRenderer

      public CloudRenderer getCloudRenderer()
    • getFrustum

      public Frustum getFrustum()
    • getTicks

      public int getTicks()
    • getWeatherEffects

      public WeatherEffectRenderer getWeatherEffects()
    • setWeatherEffects

      public void setWeatherEffects(WeatherEffectRenderer value)