SectionMesh.java

net.minecraft.client.renderer.chunk.SectionMesh

信息

  • 全限定名:net.minecraft.client.renderer.chunk.SectionMesh
  • 类型:public interface
  • 包:net.minecraft.client.renderer.chunk
  • 源码路径:src/main/java/net/minecraft/client/renderer/chunk/SectionMesh.java
  • 起始行号:L13
  • 继承:AutoCloseable
  • 职责:

    TODO

字段/常量

内部类/嵌套类型

  • net.minecraft.client.renderer.chunk.SectionMesh.SectionDraw
    • 类型: record
    • 修饰符: public
    • 源码定位: L45
    • 说明:

      TODO

构造器

方法

下面的方法块按源码顺序生成。

default boolean isDifferentPointOfView(TranslucencyPointOfView pointOfView) @ L14

  • 方法名:isDifferentPointOfView
  • 源码定位:L14
  • 返回类型:boolean
  • 修饰符:default

参数:

  • pointOfView: TranslucencyPointOfView

说明:

TODO

default boolean hasRenderableLayers() @ L18

  • 方法名:hasRenderableLayers
  • 源码定位:L18
  • 返回类型:boolean
  • 修饰符:default

参数:

说明:

TODO

default boolean hasTranslucentGeometry() @ L22

  • 方法名:hasTranslucentGeometry
  • 源码定位:L22
  • 返回类型:boolean
  • 修饰符:default

参数:

说明:

TODO

default boolean isEmpty(ChunkSectionLayer layer) @ L26

  • 方法名:isEmpty
  • 源码定位:L26
  • 返回类型:boolean
  • 修饰符:default

参数:

  • layer: ChunkSectionLayer

说明:

TODO

default List<BlockEntity> getRenderableBlockEntities() @ L30

  • 方法名:getRenderableBlockEntities
  • 源码定位:L30
  • 返回类型:List
  • 修饰符:default

参数:

说明:

TODO

boolean facesCanSeeEachother(Direction direction1, Direction direction2) @ L34

  • 方法名:facesCanSeeEachother
  • 源码定位:L34
  • 返回类型:boolean
  • 修饰符:package-private

参数:

  • direction1: Direction
  • direction2: Direction

说明:

TODO

default SectionMesh.SectionDraw getSectionDraw(ChunkSectionLayer layer) @ L36

  • 方法名:getSectionDraw
  • 源码定位:L36
  • 返回类型:SectionMesh.SectionDraw
  • 修饰符:default

参数:

  • layer: ChunkSectionLayer

说明:

TODO

default void close() @ L40

  • 方法名:close
  • 源码定位:L40
  • 返回类型:void
  • 修饰符:default

参数:

说明:

TODO

代码

@OnlyIn(Dist.CLIENT)
public interface SectionMesh extends AutoCloseable {
    default boolean isDifferentPointOfView(TranslucencyPointOfView pointOfView) {
        return false;
    }
 
    default boolean hasRenderableLayers() {
        return false;
    }
 
    default boolean hasTranslucentGeometry() {
        return false;
    }
 
    default boolean isEmpty(ChunkSectionLayer layer) {
        return true;
    }
 
    default List<BlockEntity> getRenderableBlockEntities() {
        return Collections.emptyList();
    }
 
    boolean facesCanSeeEachother(Direction direction1, Direction direction2);
 
    default SectionMesh.@Nullable SectionDraw getSectionDraw(ChunkSectionLayer layer) {
        return null;
    }
 
    @Override
    default void close() {
    }
 
    @OnlyIn(Dist.CLIENT)
    public record SectionDraw(int indexCount, VertexFormat.IndexType indexType, boolean hasCustomIndexBuffer) {
    }
}

引用的其他类