类 ViewArea
java.lang.Object
net.minecraft.client.renderer.ViewArea
-
字段概要
字段修饰符和类型字段说明protected int
protected int
protected int
protected final Level
protected final LevelRenderer
-
构造器概要
构造器构造器说明ViewArea
(ChunkRenderDispatcher pChunkRenderDispatcher, Level pLevel, int pViewDistance, LevelRenderer pLevelRenderer) -
方法概要
修饰符和类型方法说明protected void
createChunks
(ChunkRenderDispatcher pRenderChunkFactory) private int
getChunkIndex
(int pX, int pY, int pZ) protected ChunkRenderDispatcher.RenderChunk
getRenderChunkAt
(BlockPos pPos) void
void
repositionCamera
(double pViewEntityX, double pViewEntityZ) void
setDirty
(int pSectionX, int pSectionY, int pSectionZ, boolean pReRenderOnMainThread) protected void
setViewDistance
(int pRenderDistanceChunks)
-
字段详细资料
-
levelRenderer
-
level
-
chunkGridSizeY
protected int chunkGridSizeY -
chunkGridSizeX
protected int chunkGridSizeX -
chunkGridSizeZ
protected int chunkGridSizeZ -
chunks
-
-
构造器详细资料
-
ViewArea
public ViewArea(ChunkRenderDispatcher pChunkRenderDispatcher, Level pLevel, int pViewDistance, LevelRenderer pLevelRenderer)
-
-
方法详细资料
-
createChunks
-
releaseAllBuffers
public void releaseAllBuffers() -
getChunkIndex
private int getChunkIndex(int pX, int pY, int pZ) -
setViewDistance
protected void setViewDistance(int pRenderDistanceChunks) -
repositionCamera
public void repositionCamera(double pViewEntityX, double pViewEntityZ) -
setDirty
public void setDirty(int pSectionX, int pSectionY, int pSectionZ, boolean pReRenderOnMainThread) -
getRenderChunkAt
-