Package net.minecraft.client.render
Class CloudRenderer
java.lang.Object
net.minecraft.resource.SinglePreparationResourceReloader<Optional<CloudRenderer.CloudCells>>
net.minecraft.client.render.CloudRenderer
- All Implemented Interfaces:
AutoCloseable
,ResourceReloader
@Environment(CLIENT)
public class CloudRenderer
extends SinglePreparationResourceReloader<Optional<CloudRenderer.CloudCells>>
implements AutoCloseable
- Mappings:
Namespace Name named net/minecraft/client/render/CloudRenderer
intermediary net/minecraft/class_9955
official gks
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
private static enum
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloader
ResourceReloader.Synchronizer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final VertexBuffer
private @Nullable CloudRenderer.CloudCells
private int
private int
private static final Identifier
private static final float
private static final float
private static final float
private static final long
private static final int
private static final int
private static final int
private static final int
private static final int
private boolean
private static final Logger
private boolean
private @Nullable CloudRenderMode
private CloudRenderer.ViewMode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
apply
(Optional<CloudRenderer.CloudCells> optional, ResourceManager resourceManager, Profiler profiler) Handles the prepared intermediate object.private void
buildCloudCellFancy
(CloudRenderer.ViewMode viewMode, BufferBuilder builder, int bottomColor, int topColor, int northSouthColor, int eastWestColor, int x, int z, long cell) private void
buildCloudCellFast
(BufferBuilder builder, int color, int x, int z) private void
buildCloudCells
(CloudRenderer.ViewMode viewMode, BufferBuilder builder, int x, int z, int bottomColor, int topColor, int northSouthColor, int eastWestColor, boolean fancy) void
close()
private static boolean
hasBorderEast
(long packed) private static boolean
hasBorderNorth
(long packed) private static boolean
hasBorderSouth
(long packed) private static boolean
hasBorderWest
(long packed) private static boolean
isEmpty
(int color) private static long
packCloudCell
(int color, boolean borderNorth, boolean borderEast, boolean borderSouth, boolean borderWest) protected Optional
<CloudRenderer.CloudCells> prepare
(ResourceManager resourceManager, Profiler profiler) Prepares the intermediate object.void
renderClouds
(int color, CloudRenderMode cloudRenderMode, float cloudHeight, Matrix4f positionMatrix, Matrix4f projectionMatrix, Vec3d cameraPos, float ticks) private void
renderClouds
(RenderLayer layer, Matrix4f positionMatrix, Matrix4f projectionMatrix, float x, float y, float z) void
private @Nullable BuiltBuffer
tessellateClouds
(Tessellator tessellator, int x, int z, CloudRenderMode renderMode, CloudRenderer.ViewMode viewMode, RenderLayer layer) private static int
unpackColor
(long packed) Methods inherited from class net.minecraft.resource.SinglePreparationResourceReloader
reload
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.resource.ResourceReloader
getName
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/client/render/CloudRenderer;LOGGER:Lorg/slf4j/Logger;
intermediary field_53041
Lnet/minecraft/class_9955;field_53041:Lorg/slf4j/Logger;
official a
Lgks;a:Lorg/slf4j/Logger;
-
CLOUD_TEXTURE
- Mappings:
Namespace Name Mixin selector named CLOUD_TEXTURE
Lnet/minecraft/client/render/CloudRenderer;CLOUD_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_53042
Lnet/minecraft/class_9955;field_53042:Lnet/minecraft/class_2960;
official b
Lgks;b:Lalz;
-
field_53043
private static final float field_53043- See Also:
- Mappings:
Namespace Name Mixin selector named field_53043
Lnet/minecraft/client/render/CloudRenderer;field_53043:F
intermediary field_53043
Lnet/minecraft/class_9955;field_53043:F
official c
Lgks;c:F
-
field_53044
private static final float field_53044- See Also:
- Mappings:
Namespace Name Mixin selector named field_53044
Lnet/minecraft/client/render/CloudRenderer;field_53044:F
intermediary field_53044
Lnet/minecraft/class_9955;field_53044:F
official d
Lgks;d:F
-
field_53045
private static final float field_53045- See Also:
- Mappings:
Namespace Name Mixin selector named field_53045
Lnet/minecraft/client/render/CloudRenderer;field_53045:F
intermediary field_53045
Lnet/minecraft/class_9955;field_53045:F
official e
Lgks;e:F
-
field_53046
private static final long field_53046- See Also:
- Mappings:
Namespace Name Mixin selector named field_53046
Lnet/minecraft/client/render/CloudRenderer;field_53046:J
intermediary field_53046
Lnet/minecraft/class_9955;field_53046:J
official f
Lgks;f:J
-
field_53047
private static final int field_53047- See Also:
- Mappings:
Namespace Name Mixin selector named field_53047
Lnet/minecraft/client/render/CloudRenderer;field_53047:I
intermediary field_53047
Lnet/minecraft/class_9955;field_53047:I
official g
Lgks;g:I
-
field_53048
private static final int field_53048- See Also:
- Mappings:
Namespace Name Mixin selector named field_53048
Lnet/minecraft/client/render/CloudRenderer;field_53048:I
intermediary field_53048
Lnet/minecraft/class_9955;field_53048:I
official h
Lgks;h:I
-
field_53049
private static final int field_53049- See Also:
- Mappings:
Namespace Name Mixin selector named field_53049
Lnet/minecraft/client/render/CloudRenderer;field_53049:I
intermediary field_53049
Lnet/minecraft/class_9955;field_53049:I
official i
Lgks;i:I
-
field_53050
private static final int field_53050- See Also:
- Mappings:
Namespace Name Mixin selector named field_53050
Lnet/minecraft/client/render/CloudRenderer;field_53050:I
intermediary field_53050
Lnet/minecraft/class_9955;field_53050:I
official j
Lgks;j:I
-
field_53051
private static final int field_53051- See Also:
- Mappings:
Namespace Name Mixin selector named field_53051
Lnet/minecraft/client/render/CloudRenderer;field_53051:I
intermediary field_53051
Lnet/minecraft/class_9955;field_53051:I
official k
Lgks;k:I
-
field_53052
private boolean field_53052- Mappings:
Namespace Name Mixin selector named field_53052
Lnet/minecraft/client/render/CloudRenderer;field_53052:Z
intermediary field_53052
Lnet/minecraft/class_9955;field_53052:Z
official l
Lgks;l:Z
-
centerX
private int centerX- Mappings:
Namespace Name Mixin selector named centerX
Lnet/minecraft/client/render/CloudRenderer;centerX:I
intermediary field_53053
Lnet/minecraft/class_9955;field_53053:I
official m
Lgks;m:I
-
centerZ
private int centerZ- Mappings:
Namespace Name Mixin selector named centerZ
Lnet/minecraft/client/render/CloudRenderer;centerZ:I
intermediary field_53054
Lnet/minecraft/class_9955;field_53054:I
official n
Lgks;n:I
-
viewMode
- Mappings:
Namespace Name Mixin selector named viewMode
Lnet/minecraft/client/render/CloudRenderer;viewMode:Lnet/minecraft/client/render/CloudRenderer$ViewMode;
intermediary field_53055
Lnet/minecraft/class_9955;field_53055:Lnet/minecraft/class_9955$class_9956;
official o
Lgks;o:Lgks$a;
-
renderMode
- Mappings:
Namespace Name Mixin selector named renderMode
Lnet/minecraft/client/render/CloudRenderer;renderMode:Lnet/minecraft/client/option/CloudRenderMode;
intermediary field_53056
Lnet/minecraft/class_9955;field_53056:Lnet/minecraft/class_4063;
official p
Lgks;p:Lflr;
-
cells
- Mappings:
Namespace Name Mixin selector named cells
Lnet/minecraft/client/render/CloudRenderer;cells:Lnet/minecraft/client/render/CloudRenderer$CloudCells;
intermediary field_53057
Lnet/minecraft/class_9955;field_53057:Lnet/minecraft/class_9955$class_9957;
official q
Lgks;q:Lgks$b;
-
buffer
- Mappings:
Namespace Name Mixin selector named buffer
Lnet/minecraft/client/render/CloudRenderer;buffer:Lnet/minecraft/client/gl/VertexBuffer;
intermediary field_53058
Lnet/minecraft/class_9955;field_53058:Lnet/minecraft/class_291;
official r
Lgks;r:Lfgu;
-
renderClouds
private boolean renderClouds- Mappings:
Namespace Name Mixin selector named renderClouds
Lnet/minecraft/client/render/CloudRenderer;renderClouds:Z
intermediary field_53059
Lnet/minecraft/class_9955;field_53059:Z
official s
Lgks;s:Z
-
-
Constructor Details
-
CloudRenderer
public CloudRenderer()
-
-
Method Details
-
prepare
protected Optional<CloudRenderer.CloudCells> prepare(ResourceManager resourceManager, Profiler profiler) Description copied from class:SinglePreparationResourceReloader
Prepares the intermediate object.This method is called in the prepare executor in a reload.
- Specified by:
prepare
in classSinglePreparationResourceReloader<Optional<CloudRenderer.CloudCells>>
- Parameters:
resourceManager
- the resource managerprofiler
- the prepare profiler- Returns:
- the prepared object
- Mappings:
Namespace Name Mixin selector named prepare
Lnet/minecraft/client/render/CloudRenderer;prepare(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)Ljava/util/Optional;
intermediary method_62171
Lnet/minecraft/class_9955;method_62171(Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Ljava/util/Optional;
official a
Lgks;a(Lavv;Lbps;)Ljava/util/Optional;
-
apply
protected void apply(Optional<CloudRenderer.CloudCells> optional, ResourceManager resourceManager, Profiler profiler) Description copied from class:SinglePreparationResourceReloader
Handles the prepared intermediate object.This method is called in the apply executor, or the game engine, in a reload.
- Specified by:
apply
in classSinglePreparationResourceReloader<Optional<CloudRenderer.CloudCells>>
- Parameters:
optional
- the prepared objectresourceManager
- the resource managerprofiler
- the apply profiler- Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/client/render/CloudRenderer;apply(Ljava/util/Optional;Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)V
intermediary method_62177
Lnet/minecraft/class_9955;method_62177(Ljava/util/Optional;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)V
official a
Lgks;a(Ljava/util/Optional;Lavv;Lbps;)V
-
isEmpty
private static boolean isEmpty(int color) - Mappings:
Namespace Name Mixin selector named isEmpty
Lnet/minecraft/client/render/CloudRenderer;isEmpty(I)Z
intermediary method_62167
Lnet/minecraft/class_9955;method_62167(I)Z
official a
Lgks;a(I)Z
-
packCloudCell
private static long packCloudCell(int color, boolean borderNorth, boolean borderEast, boolean borderSouth, boolean borderWest) - Mappings:
Namespace Name Mixin selector named packCloudCell
Lnet/minecraft/client/render/CloudRenderer;packCloudCell(IZZZZ)J
intermediary method_62169
Lnet/minecraft/class_9955;method_62169(IZZZZ)J
official a
Lgks;a(IZZZZ)J
-
unpackColor
private static int unpackColor(long packed) - Mappings:
Namespace Name Mixin selector named unpackColor
Lnet/minecraft/client/render/CloudRenderer;unpackColor(J)I
intermediary method_62170
Lnet/minecraft/class_9955;method_62170(J)I
official a
Lgks;a(J)I
-
hasBorderNorth
private static boolean hasBorderNorth(long packed) - Mappings:
Namespace Name Mixin selector named hasBorderNorth
Lnet/minecraft/client/render/CloudRenderer;hasBorderNorth(J)Z
intermediary method_62178
Lnet/minecraft/class_9955;method_62178(J)Z
official b
Lgks;b(J)Z
-
hasBorderEast
private static boolean hasBorderEast(long packed) - Mappings:
Namespace Name Mixin selector named hasBorderEast
Lnet/minecraft/client/render/CloudRenderer;hasBorderEast(J)Z
intermediary method_62179
Lnet/minecraft/class_9955;method_62179(J)Z
official c
Lgks;c(J)Z
-
hasBorderSouth
private static boolean hasBorderSouth(long packed) - Mappings:
Namespace Name Mixin selector named hasBorderSouth
Lnet/minecraft/client/render/CloudRenderer;hasBorderSouth(J)Z
intermediary method_62180
Lnet/minecraft/class_9955;method_62180(J)Z
official d
Lgks;d(J)Z
-
hasBorderWest
private static boolean hasBorderWest(long packed) - Mappings:
Namespace Name Mixin selector named hasBorderWest
Lnet/minecraft/client/render/CloudRenderer;hasBorderWest(J)Z
intermediary method_62181
Lnet/minecraft/class_9955;method_62181(J)Z
official e
Lgks;e(J)Z
-
renderClouds
public void renderClouds(int color, CloudRenderMode cloudRenderMode, float cloudHeight, Matrix4f positionMatrix, Matrix4f projectionMatrix, Vec3d cameraPos, float ticks) - Mappings:
Namespace Name Mixin selector named renderClouds
Lnet/minecraft/client/render/CloudRenderer;renderClouds(ILnet/minecraft/client/option/CloudRenderMode;FLorg/joml/Matrix4f;Lorg/joml/Matrix4f;Lnet/minecraft/util/math/Vec3d;F)V
intermediary method_62168
Lnet/minecraft/class_9955;method_62168(ILnet/minecraft/class_4063;FLorg/joml/Matrix4f;Lorg/joml/Matrix4f;Lnet/minecraft/class_243;F)V
official a
Lgks;a(ILflr;FLorg/joml/Matrix4f;Lorg/joml/Matrix4f;Lfbx;F)V
-
renderClouds
private void renderClouds(RenderLayer layer, Matrix4f positionMatrix, Matrix4f projectionMatrix, float x, float y, float z) - Mappings:
Namespace Name Mixin selector named renderClouds
Lnet/minecraft/client/render/CloudRenderer;renderClouds(Lnet/minecraft/client/render/RenderLayer;Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;FFF)V
intermediary method_62176
Lnet/minecraft/class_9955;method_62176(Lnet/minecraft/class_1921;Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;FFF)V
official a
Lgks;a(Lglu;Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;FFF)V
-
tessellateClouds
@Nullable private @Nullable BuiltBuffer tessellateClouds(Tessellator tessellator, int x, int z, CloudRenderMode renderMode, CloudRenderer.ViewMode viewMode, RenderLayer layer) - Mappings:
Namespace Name Mixin selector named tessellateClouds
Lnet/minecraft/client/render/CloudRenderer;tessellateClouds(Lnet/minecraft/client/render/Tessellator;IILnet/minecraft/client/option/CloudRenderMode;Lnet/minecraft/client/render/CloudRenderer$ViewMode;Lnet/minecraft/client/render/RenderLayer;)Lnet/minecraft/client/render/BuiltBuffer;
intermediary method_62173
Lnet/minecraft/class_9955;method_62173(Lnet/minecraft/class_289;IILnet/minecraft/class_4063;Lnet/minecraft/class_9955$class_9956;Lnet/minecraft/class_1921;)Lnet/minecraft/class_9801;
official a
Lgks;a(Lfgt;IILflr;Lgks$a;Lglu;)Lfgq;
-
buildCloudCells
private void buildCloudCells(CloudRenderer.ViewMode viewMode, BufferBuilder builder, int x, int z, int bottomColor, int topColor, int northSouthColor, int eastWestColor, boolean fancy) - Mappings:
Namespace Name Mixin selector named buildCloudCells
Lnet/minecraft/client/render/CloudRenderer;buildCloudCells(Lnet/minecraft/client/render/CloudRenderer$ViewMode;Lnet/minecraft/client/render/BufferBuilder;IIIIIIZ)V
intermediary method_62175
Lnet/minecraft/class_9955;method_62175(Lnet/minecraft/class_9955$class_9956;Lnet/minecraft/class_287;IIIIIIZ)V
official a
Lgks;a(Lgks$a;Lfgm;IIIIIIZ)V
-
buildCloudCellFast
- Mappings:
Namespace Name Mixin selector named buildCloudCellFast
Lnet/minecraft/client/render/CloudRenderer;buildCloudCellFast(Lnet/minecraft/client/render/BufferBuilder;III)V
intermediary method_62172
Lnet/minecraft/class_9955;method_62172(Lnet/minecraft/class_287;III)V
official a
Lgks;a(Lfgm;III)V
-
buildCloudCellFancy
private void buildCloudCellFancy(CloudRenderer.ViewMode viewMode, BufferBuilder builder, int bottomColor, int topColor, int northSouthColor, int eastWestColor, int x, int z, long cell) - Mappings:
Namespace Name Mixin selector named buildCloudCellFancy
Lnet/minecraft/client/render/CloudRenderer;buildCloudCellFancy(Lnet/minecraft/client/render/CloudRenderer$ViewMode;Lnet/minecraft/client/render/BufferBuilder;IIIIIIJ)V
intermediary method_62174
Lnet/minecraft/class_9955;method_62174(Lnet/minecraft/class_9955$class_9956;Lnet/minecraft/class_287;IIIIIIJ)V
official a
Lgks;a(Lgks$a;Lfgm;IIIIIIJ)V
-
scheduleTerrainUpdate
public void scheduleTerrainUpdate()- Mappings:
Namespace Name Mixin selector named scheduleTerrainUpdate
Lnet/minecraft/client/render/CloudRenderer;scheduleTerrainUpdate()V
intermediary method_62166
Lnet/minecraft/class_9955;method_62166()V
official a
Lgks;a()V
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-