RefractiveReflectiveBlocksNode.java Checkstyle Fix
Originally, the static variables were declared after the instance variables, resulting in 14 Checkstyle violations. I moved the instance variables below the static variables to fix these issues.
public static final SimpleUri REFRACTIVE_REFLECTIVE_FBO_URI = new SimpleUri("engine:fbo.sceneReflectiveRefractive");
private static final ResourceUrn CHUNK_MATERIAL_URN = new ResourceUrn("engine:prog.chunk");
- private RenderQueuesHelper renderQueues;
- private WorldRenderer worldRenderer;
- private BackdropProvider backdropProvider;
- private RenderingConfig renderingConfig;
- private WorldProvider worldProvider;
-
- private Material chunkMaterial;
-
- private FBO lastUpdatedGBuffer;
- private FBO refractiveReflectiveFbo;
-
- private SubmersibleCamera activeCamera;
-
- private boolean normalMappingIsEnabled;
- private boolean parallaxMappingIsEnabled;
- private boolean animatedWaterIsEnabled;
-
- private StateChange setTerrainNormalsInputTexture;
- private StateChange setTerrainHeightInputTexture;
-
// TODO: rename to more meaningful/precise variable names, like waveAmplitude or waveHeight.
@SuppressWarnings("FieldCanBeLocal")
@Range(min = 0.0f, max = 2.0f)
@Range(min = 0.0f, max = 5.0f)
public static float waterOffsetY;
+ private RenderQueuesHelper renderQueues;
+ private WorldRenderer worldRenderer;
+ private BackdropProvider backdropProvider;
+ private RenderingConfig renderingConfig;
+ private WorldProvider worldProvider;
+
+ private Material chunkMaterial;
+
+ private FBO lastUpdatedGBuffer;
+ private FBO refractiveReflectiveFbo;
+
+ private SubmersibleCamera activeCamera;
+
+ private boolean normalMappingIsEnabled;
+ private boolean parallaxMappingIsEnabled;
+ private boolean animatedWaterIsEnabled;
+
+ private StateChange setTerrainNormalsInputTexture;
+ private StateChange setTerrainHeightInputTexture;
+
@SuppressWarnings("FieldCanBeLocal")
@Range(min = 0.0f, max = 2.0f)
private float waveOverallScale = 1.0f;
