net.minecraft.client.render

public class CloudRenderer

extends SinglePreparationResourceReloader<Optional<CloudRenderer$CloudCells>> implements AutoCloseable

All mapped superinterfaces:

ResourceReloader

net.minecraft.client.renderer.CloudRenderer
net.minecraft.client.renderer.CloudRenderer
net.minecraft.class_9955
net.minecraft.client.render.CloudRenderer

Field summary

Modifier and TypeField
private static final int
FLAG_INSIDE_FACE
FLAG_INSIDE_FACE
field_60075
field_60075
private static final int
FLAG_USE_TOP_COLOR
FLAG_USE_TOP_COLOR
field_60076
field_60076
private static final float
CELL_SIZE_IN_BLOCKS
CELL_SIZE_IN_BLOCKS
field_53043
field_53043
private static final int
TICKS_PER_CELL
TICKS_PER_CELL
field_64448
field_64448
private static final float
BLOCKS_PER_SECOND
BLOCKS_PER_SECOND
field_53045
field_53045
private static final int
UBO_SIZE
UBO_SIZE
field_60081
UBO_SIZE
private static final org.slf4j.Logger
LOGGER
LOGGER
field_53041
LOGGER
private static final Identifier
TEXTURE_LOCATION
TEXTURE_LOCATION
field_53042
CLOUD_TEXTURE
private static final long
EMPTY_CELL
EMPTY_CELL
field_53046
field_53046
private static final int
COLOR_OFFSET
COLOR_OFFSET
field_53047
field_53047
private static final int
NORTH_OFFSET
NORTH_OFFSET
field_53048
field_53048
private static final int
EAST_OFFSET
EAST_OFFSET
field_53049
field_53049
private static final int
SOUTH_OFFSET
SOUTH_OFFSET
field_53050
field_53050
private static final int
WEST_OFFSET
WEST_OFFSET
field_53051
field_53051
private boolean
needsRebuild
needsRebuild
field_53052
rebuild
private int
prevCellX
prevCellX
field_53053
centerX
private int
prevCellZ
prevCellZ
field_53054
centerZ
private CloudRenderer$ViewMode
prevRelativeCameraPos
prevRelativeCameraPos
field_53055
viewMode
private CloudRenderMode
prevCloudStatus
prevCloudStatus
field_53056
renderMode
private CloudRenderer$CloudCells
texture
texture
field_53057
cells
private int
quadCount
quadCount
field_60792
instanceCount
private final MappableRingBuffer
ubo
ubo
field_60073
cloudInfoBuffer
private MappableRingBuffer
utb
utb
field_60074
cloudFacesBuffer

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
protected Optional<CloudRenderer$CloudCells>
prepare(ResourceManager manager, ProfilerFiller profiler)
prepare(ResourceManager manager, ProfilerFiller profiler)
method_18789(class_3300 arg0, class_3695 arg1)
prepare(ResourceManager arg0, Profiler arg1)
private static int
getSizeForCloudDistance(int radiusCells)
getSizeForCloudDistance(int radiusCells)
method_71301(int arg0)
calcCloudBufferSize(int cloudRange)
protected void
apply(Optional<CloudRenderer$TextureData> preparations, ResourceManager manager, ProfilerFiller profiler)
apply(Optional<CloudRenderer$TextureData> preparations, ResourceManager manager, ProfilerFiller profiler)
method_62177(Optional<class_9955$class_9957> arg0, class_3300 arg1, class_3695 arg2)
apply(Optional<CloudRenderer$CloudCells> arg0, ResourceManager arg1, Profiler arg2)
private static boolean
isCellEmpty(int color)
isCellEmpty(int color)
method_62167(int arg0)
isEmpty(int color)
private static long
packCellData(int color, boolean north, boolean east, boolean south, boolean west)
packCellData(int color, boolean north, boolean east, boolean south, boolean west)
method_62169(int arg0, boolean arg1, boolean arg2, boolean arg3, boolean arg4)
packCloudCell(int color, boolean borderNorth, boolean borderEast, boolean borderSouth, boolean borderWest)
private static boolean
isNorthEmpty(long cellData)
isNorthEmpty(long cellData)
method_62178(long arg0)
hasBorderNorth(long packed)
private static boolean
isEastEmpty(long cellData)
isEastEmpty(long cellData)
method_62179(long arg0)
hasBorderEast(long packed)
private static boolean
isSouthEmpty(long cellData)
isSouthEmpty(long cellData)
method_62180(long arg0)
hasBorderSouth(long packed)
private static boolean
isWestEmpty(long cellData)
isWestEmpty(long cellData)
method_62181(long arg0)
hasBorderWest(long packed)
public void
prepare(int color, CloudStatus cloudStatus, float bottomY, int range, Vec3 cameraPosition, long gameTime, float partialTicks)
prepare(int color, CloudStatus cloudStatus, float bottomY, int range, Vec3 cameraPosition, long gameTime, float partialTicks)
method_62168(int arg0, class_4063 arg1, float arg2, int arg3, class_243 arg4, long arg5, float arg6)
prepare(int color, CloudRenderMode cloudRenderMode, float cloudHeight, int cloudRenderDistance, Vec3d cameraPos, long time, float tickProgress)
public void
render(CloudStatus cloudStatus, RenderPass renderPass)
render(CloudStatus cloudStatus, RenderPass renderPass)
method_1_7335(class_4063 arg0, class_1_1317 arg1)
draw(CloudRenderMode cloudRenderMode, RenderPass arg1)
public void
renderOit(CloudStatus cloudStatus, OitStage stage, GpuTextureView mainDepthTextureView, OitRenderPassProvider$Parameters params)
renderOit(CloudStatus cloudStatus, OitStage stage, GpuTextureView mainDepthTextureView, OitRenderPassProvider$Parameters params)
method_1_7336(class_4063 arg0, class_1_1153 arg1, class_1_1330 arg2, class_1_1174$class_1_1175 arg3)
drawOit(CloudRenderMode cloudRenderMode, OitStage oitStage, GpuTextureView arg2, OitRenderPasses$TextureSet textureSet)
private void
render(RenderPass renderPass, RenderPipeline renderPipeline)
render(RenderPass renderPass, RenderPipeline renderPipeline)
method_1_7334(class_1_1317 arg0, class_1_1257 arg1)
draw(RenderPass arg0, RenderPipeline pipeline)
private void
buildMesh(CloudRenderer$RelativeCameraPos relativePos, ByteBuffer faceBuffer, int centerCellX, int centerCellZ, boolean extrude, int radiusCells)
buildMesh(CloudRenderer$RelativeCameraPos relativePos, ByteBuffer faceBuffer, int centerCellX, int centerCellZ, boolean extrude, int radiusCells)
method_62175(class_9955$class_9956 arg0, ByteBuffer arg1, int arg2, int arg3, boolean arg4, int arg5)
buildCloudCells(CloudRenderer$ViewMode viewMode, ByteBuffer dataOut, int x, int z, boolean fancy, int renderRadiusCells)
private void
tryBuildCell(CloudRenderer$RelativeCameraPos relativePos, ByteBuffer faceBuffer, int cellX, int cellZ, boolean extrude, int relativeCellX, int textureWidth, int relativeCellZ, int textureHeight, long[] cells)
tryBuildCell(CloudRenderer$RelativeCameraPos relativePos, ByteBuffer faceBuffer, int cellX, int cellZ, boolean extrude, int relativeCellX, int textureWidth, int relativeCellZ, int textureHeight, long[] cells)
method_72155(class_9955$class_9956 arg0, ByteBuffer arg1, int arg2, int arg3, boolean arg4, int arg5, int arg6, int arg7, int arg8, long[] arg9)
buildCloudCell(CloudRenderer$ViewMode viewMode, ByteBuffer dataOut, int centerX, int centerZ, boolean fancy, int x, int width, int z, int height, long[] cells)
private void
buildFlatCell(ByteBuffer faceBuffer, int x, int z)
buildFlatCell(ByteBuffer faceBuffer, int x, int z)
method_62172(ByteBuffer arg0, int arg1, int arg2)
buildCloudCellFast(ByteBuffer dataOut, int x, int z)
private void
encodeFace(ByteBuffer faceBuffer, int x, int z, Direction direction, int flags)
encodeFace(ByteBuffer faceBuffer, int x, int z, Direction direction, int flags)
method_71098(ByteBuffer arg0, int arg1, int arg2, class_2350 arg3, int arg4)
buildCloudFace(ByteBuffer dataOut, int x, int z, Direction direction, int extraFlags)
private void
buildExtrudedCell(CloudRenderer$RelativeCameraPos relativePos, ByteBuffer faceBuffer, int x, int z, long cellData)
buildExtrudedCell(CloudRenderer$RelativeCameraPos relativePos, ByteBuffer faceBuffer, int x, int z, long cellData)
method_62174(class_9955$class_9956 arg0, ByteBuffer arg1, int arg2, int arg3, long arg4)
buildCloudCellFancy(CloudRenderer$ViewMode viewMode, ByteBuffer dataOut, int x, int z, long packedCell)
public void
markForRebuild()
markForRebuild()
method_62166()
scheduleTerrainUpdate()
public void
endFrame()
endFrame()
method_71099()
rotate()
public void
close()
close()