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.class_9955
net.minecraft.client.render.CloudRenderer

Field summary

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

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
protected Optional<CloudRenderer$CloudCells>
prepare(ResourceManager manager, ProfilerFiller profiler)
method_18789(class_3300 arg0, class_3695 arg1)
prepare(ResourceManager arg0, Profiler arg1)
private static int
getSizeForCloudDistance(int radiusCells)
method_71301(int arg0)
calcCloudBufferSize(int cloudRange)
protected void
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)
method_62167(int arg0)
isEmpty(int color)
private static long
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)
method_62178(long arg0)
hasBorderNorth(long packed)
private static boolean
isEastEmpty(long cellData)
method_62179(long arg0)
hasBorderEast(long packed)
private static boolean
isSouthEmpty(long cellData)
method_62180(long arg0)
hasBorderSouth(long packed)
private static boolean
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)
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)
method_1_7335(class_4063 arg0, RenderPass arg1)
draw(CloudRenderMode cloudRenderMode, RenderPass renderPass)
public void
renderOit(CloudStatus cloudStatus, OitStage stage, OitRenderPassProvider$Parameters params)
method_1_7336(class_4063 arg0, class_1_1153 arg1, class_1_1174$class_1_1175 arg2)
drawOit(CloudRenderMode cloudRenderMode, OitStage oitStage, OitRenderPasses$TextureSet textureSet)
private void
render(RenderPass renderPass, RenderPipeline renderPipeline)
method_1_7334(RenderPass arg0, RenderPipeline arg1)
draw(RenderPass renderPass, RenderPipeline pipeline)
private void
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)
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)
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)
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)
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()
method_62166()
scheduleTerrainUpdate()
public void
endFrame()
method_71099()
rotate()
public void
close()
protected void
apply(Object preparations, ResourceManager manager, ProfilerFiller profiler)
method_18788(Object arg0, class_3300 arg1, class_3695 arg2)
apply(Object arg0, ResourceManager arg1, Profiler arg2)
protected Object
prepare(ResourceManager manager, ProfilerFiller profiler)
method_18789(class_3300 arg0, class_3695 arg1)
prepare(ResourceManager arg0, Profiler arg1)
private static String
lambda$renderOit$0()
method_1_7333()
method_1_7333()
private static String
lambda$render$0()
method_1_7332()
method_1_7332()
private static String
lambda$prepare$0()
method_71303()
method_71303()
private static String
lambda$new$0()
method_71304()
method_71304()