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/CloudRendererintermediary net/minecraft/class_9955official gli
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordprivate static enumNested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloader
ResourceReloader.Synchronizer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final VertexBufferprivate @Nullable CloudRenderer.CloudCellsprivate intprivate intprivate static final Identifierprivate static final floatprivate static final floatprivate static final floatprivate static final longprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate booleanprivate static final Loggerprivate booleanprivate @Nullable CloudRenderModeprivate CloudRenderer.ViewMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapply(Optional<CloudRenderer.CloudCells> optional, ResourceManager resourceManager, Profiler profiler) Handles the prepared intermediate object.private voidbuildCloudCellFancy(CloudRenderer.ViewMode viewMode, BufferBuilder builder, int bottomColor, int topColor, int northSouthColor, int eastWestColor, int x, int z, long cell) private voidbuildCloudCellFast(BufferBuilder builder, int color, int x, int z) private voidbuildCloudCells(CloudRenderer.ViewMode viewMode, BufferBuilder builder, int x, int z, int bottomColor, int topColor, int northSouthColor, int eastWestColor, boolean fancy) voidclose()private static booleanhasBorderEast(long packed) private static booleanhasBorderNorth(long packed) private static booleanhasBorderSouth(long packed) private static booleanhasBorderWest(long packed) private static booleanisEmpty(int color) private static longpackCloudCell(int color, boolean borderNorth, boolean borderEast, boolean borderSouth, boolean borderWest) protected Optional<CloudRenderer.CloudCells> prepare(ResourceManager resourceManager, Profiler profiler) Prepares the intermediate object.voidrenderClouds(int color, CloudRenderMode cloudRenderMode, float cloudHeight, Matrix4f positionMatrix, Matrix4f projectionMatrix, Vec3d cameraPos, float ticks) private voidrenderClouds(RenderLayer layer, Matrix4f positionMatrix, Matrix4f projectionMatrix, float x, float y, float z) voidprivate @Nullable BuiltBuffertessellateClouds(Tessellator tessellator, int x, int z, CloudRenderMode renderMode, CloudRenderer.ViewMode viewMode, RenderLayer layer) private static intunpackColor(long packed) Methods inherited from class net.minecraft.resource.SinglePreparationResourceReloader
reloadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resource.ResourceReloader
getName
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/render/CloudRenderer;LOGGER:Lorg/slf4j/Logger;intermediary field_53041Lnet/minecraft/class_9955;field_53041:Lorg/slf4j/Logger;official aLgli;a:Lorg/slf4j/Logger;
-
CLOUD_TEXTURE
- Mappings:
Namespace Name Mixin selector named CLOUD_TEXTURELnet/minecraft/client/render/CloudRenderer;CLOUD_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_53042Lnet/minecraft/class_9955;field_53042:Lnet/minecraft/class_2960;official bLgli;b:Lakv;
-
field_53043
private static final float field_53043- See Also:
- Mappings:
Namespace Name Mixin selector named field_53043Lnet/minecraft/client/render/CloudRenderer;field_53043:Fintermediary field_53043Lnet/minecraft/class_9955;field_53043:Fofficial cLgli;c:F
-
field_53044
private static final float field_53044- See Also:
- Mappings:
Namespace Name Mixin selector named field_53044Lnet/minecraft/client/render/CloudRenderer;field_53044:Fintermediary field_53044Lnet/minecraft/class_9955;field_53044:Fofficial dLgli;d:F
-
field_53045
private static final float field_53045- See Also:
- Mappings:
Namespace Name Mixin selector named field_53045Lnet/minecraft/client/render/CloudRenderer;field_53045:Fintermediary field_53045Lnet/minecraft/class_9955;field_53045:Fofficial eLgli;e:F
-
field_53046
private static final long field_53046- See Also:
- Mappings:
Namespace Name Mixin selector named field_53046Lnet/minecraft/client/render/CloudRenderer;field_53046:Jintermediary field_53046Lnet/minecraft/class_9955;field_53046:Jofficial fLgli;f:J
-
field_53047
private static final int field_53047- See Also:
- Mappings:
Namespace Name Mixin selector named field_53047Lnet/minecraft/client/render/CloudRenderer;field_53047:Iintermediary field_53047Lnet/minecraft/class_9955;field_53047:Iofficial gLgli;g:I
-
field_53048
private static final int field_53048- See Also:
- Mappings:
Namespace Name Mixin selector named field_53048Lnet/minecraft/client/render/CloudRenderer;field_53048:Iintermediary field_53048Lnet/minecraft/class_9955;field_53048:Iofficial hLgli;h:I
-
field_53049
private static final int field_53049- See Also:
- Mappings:
Namespace Name Mixin selector named field_53049Lnet/minecraft/client/render/CloudRenderer;field_53049:Iintermediary field_53049Lnet/minecraft/class_9955;field_53049:Iofficial iLgli;i:I
-
field_53050
private static final int field_53050- See Also:
- Mappings:
Namespace Name Mixin selector named field_53050Lnet/minecraft/client/render/CloudRenderer;field_53050:Iintermediary field_53050Lnet/minecraft/class_9955;field_53050:Iofficial jLgli;j:I
-
field_53051
private static final int field_53051- See Also:
- Mappings:
Namespace Name Mixin selector named field_53051Lnet/minecraft/client/render/CloudRenderer;field_53051:Iintermediary field_53051Lnet/minecraft/class_9955;field_53051:Iofficial kLgli;k:I
-
field_53052
private boolean field_53052- Mappings:
Namespace Name Mixin selector named field_53052Lnet/minecraft/client/render/CloudRenderer;field_53052:Zintermediary field_53052Lnet/minecraft/class_9955;field_53052:Zofficial lLgli;l:Z
-
centerX
private int centerX- Mappings:
Namespace Name Mixin selector named centerXLnet/minecraft/client/render/CloudRenderer;centerX:Iintermediary field_53053Lnet/minecraft/class_9955;field_53053:Iofficial mLgli;m:I
-
centerZ
private int centerZ- Mappings:
Namespace Name Mixin selector named centerZLnet/minecraft/client/render/CloudRenderer;centerZ:Iintermediary field_53054Lnet/minecraft/class_9955;field_53054:Iofficial nLgli;n:I
-
viewMode
- Mappings:
Namespace Name Mixin selector named viewModeLnet/minecraft/client/render/CloudRenderer;viewMode:Lnet/minecraft/client/render/CloudRenderer$ViewMode;intermediary field_53055Lnet/minecraft/class_9955;field_53055:Lnet/minecraft/class_9955$class_9956;official oLgli;o:Lgli$a;
-
renderMode
- Mappings:
Namespace Name Mixin selector named renderModeLnet/minecraft/client/render/CloudRenderer;renderMode:Lnet/minecraft/client/option/CloudRenderMode;intermediary field_53056Lnet/minecraft/class_9955;field_53056:Lnet/minecraft/class_4063;official pLgli;p:Lfkw;
-
cells
- Mappings:
Namespace Name Mixin selector named cellsLnet/minecraft/client/render/CloudRenderer;cells:Lnet/minecraft/client/render/CloudRenderer$CloudCells;intermediary field_53057Lnet/minecraft/class_9955;field_53057:Lnet/minecraft/class_9955$class_9957;official qLgli;q:Lgli$b;
-
buffer
- Mappings:
Namespace Name Mixin selector named bufferLnet/minecraft/client/render/CloudRenderer;buffer:Lnet/minecraft/client/gl/VertexBuffer;intermediary field_53058Lnet/minecraft/class_9955;field_53058:Lnet/minecraft/class_291;official rLgli;r:Lffy;
-
renderClouds
private boolean renderClouds- Mappings:
Namespace Name Mixin selector named renderCloudsLnet/minecraft/client/render/CloudRenderer;renderClouds:Zintermediary field_53059Lnet/minecraft/class_9955;field_53059:Zofficial sLgli;s:Z
-
-
Constructor Details
-
CloudRenderer
public CloudRenderer()
-
-
Method Details
-
prepare
protected Optional<CloudRenderer.CloudCells> prepare(ResourceManager resourceManager, Profiler profiler) Description copied from class:SinglePreparationResourceReloaderPrepares the intermediate object.This method is called in the prepare executor in a reload.
- Specified by:
preparein classSinglePreparationResourceReloader<Optional<CloudRenderer.CloudCells>>- Parameters:
resourceManager- the resource managerprofiler- the prepare profiler- Returns:
- the prepared object
- Mappings:
Namespace Name Mixin selector named prepareLnet/minecraft/client/render/CloudRenderer;prepare(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)Ljava/util/Optional;intermediary method_62171Lnet/minecraft/class_9955;method_62171(Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Ljava/util/Optional;official aLgli;a(Laup;Lbou;)Ljava/util/Optional;
-
apply
protected void apply(Optional<CloudRenderer.CloudCells> optional, ResourceManager resourceManager, Profiler profiler) Description copied from class:SinglePreparationResourceReloaderHandles the prepared intermediate object.This method is called in the apply executor, or the game engine, in a reload.
- Specified by:
applyin classSinglePreparationResourceReloader<Optional<CloudRenderer.CloudCells>>- Parameters:
optional- the prepared objectresourceManager- the resource managerprofiler- the apply profiler- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/client/render/CloudRenderer;apply(Ljava/util/Optional;Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)Vintermediary method_62177Lnet/minecraft/class_9955;method_62177(Ljava/util/Optional;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Vofficial aLgli;a(Ljava/util/Optional;Laup;Lbou;)V
-
isEmpty
private static boolean isEmpty(int color) - Mappings:
Namespace Name Mixin selector named isEmptyLnet/minecraft/client/render/CloudRenderer;isEmpty(I)Zintermediary method_62167Lnet/minecraft/class_9955;method_62167(I)Zofficial aLgli;a(I)Z
-
packCloudCell
private static long packCloudCell(int color, boolean borderNorth, boolean borderEast, boolean borderSouth, boolean borderWest) - Mappings:
Namespace Name Mixin selector named packCloudCellLnet/minecraft/client/render/CloudRenderer;packCloudCell(IZZZZ)Jintermediary method_62169Lnet/minecraft/class_9955;method_62169(IZZZZ)Jofficial aLgli;a(IZZZZ)J
-
unpackColor
private static int unpackColor(long packed) - Mappings:
Namespace Name Mixin selector named unpackColorLnet/minecraft/client/render/CloudRenderer;unpackColor(J)Iintermediary method_62170Lnet/minecraft/class_9955;method_62170(J)Iofficial aLgli;a(J)I
-
hasBorderNorth
private static boolean hasBorderNorth(long packed) - Mappings:
Namespace Name Mixin selector named hasBorderNorthLnet/minecraft/client/render/CloudRenderer;hasBorderNorth(J)Zintermediary method_62178Lnet/minecraft/class_9955;method_62178(J)Zofficial bLgli;b(J)Z
-
hasBorderEast
private static boolean hasBorderEast(long packed) - Mappings:
Namespace Name Mixin selector named hasBorderEastLnet/minecraft/client/render/CloudRenderer;hasBorderEast(J)Zintermediary method_62179Lnet/minecraft/class_9955;method_62179(J)Zofficial cLgli;c(J)Z
-
hasBorderSouth
private static boolean hasBorderSouth(long packed) - Mappings:
Namespace Name Mixin selector named hasBorderSouthLnet/minecraft/client/render/CloudRenderer;hasBorderSouth(J)Zintermediary method_62180Lnet/minecraft/class_9955;method_62180(J)Zofficial dLgli;d(J)Z
-
hasBorderWest
private static boolean hasBorderWest(long packed) - Mappings:
Namespace Name Mixin selector named hasBorderWestLnet/minecraft/client/render/CloudRenderer;hasBorderWest(J)Zintermediary method_62181Lnet/minecraft/class_9955;method_62181(J)Zofficial eLgli;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 renderCloudsLnet/minecraft/client/render/CloudRenderer;renderClouds(ILnet/minecraft/client/option/CloudRenderMode;FLorg/joml/Matrix4f;Lorg/joml/Matrix4f;Lnet/minecraft/util/math/Vec3d;F)Vintermediary method_62168Lnet/minecraft/class_9955;method_62168(ILnet/minecraft/class_4063;FLorg/joml/Matrix4f;Lorg/joml/Matrix4f;Lnet/minecraft/class_243;F)Vofficial aLgli;a(ILfkw;FLorg/joml/Matrix4f;Lorg/joml/Matrix4f;Lfbb;F)V
-
renderClouds
private void renderClouds(RenderLayer layer, Matrix4f positionMatrix, Matrix4f projectionMatrix, float x, float y, float z) - Mappings:
Namespace Name Mixin selector named renderCloudsLnet/minecraft/client/render/CloudRenderer;renderClouds(Lnet/minecraft/client/render/RenderLayer;Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;FFF)Vintermediary method_62176Lnet/minecraft/class_9955;method_62176(Lnet/minecraft/class_1921;Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;FFF)Vofficial aLgli;a(Lgmj;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 tessellateCloudsLnet/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_62173Lnet/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 aLgli;a(Lffx;IILfkw;Lgli$a;Lgmj;)Lffu;
-
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 buildCloudCellsLnet/minecraft/client/render/CloudRenderer;buildCloudCells(Lnet/minecraft/client/render/CloudRenderer$ViewMode;Lnet/minecraft/client/render/BufferBuilder;IIIIIIZ)Vintermediary method_62175Lnet/minecraft/class_9955;method_62175(Lnet/minecraft/class_9955$class_9956;Lnet/minecraft/class_287;IIIIIIZ)Vofficial aLgli;a(Lgli$a;Lffq;IIIIIIZ)V
-
buildCloudCellFast
- Mappings:
Namespace Name Mixin selector named buildCloudCellFastLnet/minecraft/client/render/CloudRenderer;buildCloudCellFast(Lnet/minecraft/client/render/BufferBuilder;III)Vintermediary method_62172Lnet/minecraft/class_9955;method_62172(Lnet/minecraft/class_287;III)Vofficial aLgli;a(Lffq;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 buildCloudCellFancyLnet/minecraft/client/render/CloudRenderer;buildCloudCellFancy(Lnet/minecraft/client/render/CloudRenderer$ViewMode;Lnet/minecraft/client/render/BufferBuilder;IIIIIIJ)Vintermediary method_62174Lnet/minecraft/class_9955;method_62174(Lnet/minecraft/class_9955$class_9956;Lnet/minecraft/class_287;IIIIIIJ)Vofficial aLgli;a(Lgli$a;Lffq;IIIIIIJ)V
-
scheduleTerrainUpdate
public void scheduleTerrainUpdate()- Mappings:
Namespace Name Mixin selector named scheduleTerrainUpdateLnet/minecraft/client/render/CloudRenderer;scheduleTerrainUpdate()Vintermediary method_62166Lnet/minecraft/class_9955;method_62166()Vofficial aLgli;a()V
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-