Small final/static improvement

This commit is contained in:
Blue (Lukas Rieger) 2021-06-25 11:05:24 +02:00
parent 7d44a433d3
commit bb588c322f
No known key found for this signature in database
GPG Key ID: 904C4995F9E1F800
2 changed files with 5 additions and 5 deletions

View File

@ -41,8 +41,8 @@ public class HiresModelRenderer {
private final String grassId; private final String grassId;
private RenderSettings renderSettings; private final RenderSettings renderSettings;
private BlockStateModelFactory modelFactory; private final BlockStateModelFactory modelFactory;
public HiresModelRenderer(ResourcePack resourcePack, RenderSettings renderSettings) { public HiresModelRenderer(ResourcePack resourcePack, RenderSettings renderSettings) {
this.renderSettings = renderSettings; this.renderSettings = renderSettings;

View File

@ -35,8 +35,8 @@
public class BlockStateModelFactory { public class BlockStateModelFactory {
private RenderSettings renderSettings; private final RenderSettings renderSettings;
private ResourcePack resourcePack; private final ResourcePack resourcePack;
public BlockStateModelFactory(ResourcePack resourcePack, RenderSettings renderSettings) { public BlockStateModelFactory(ResourcePack resourcePack, RenderSettings renderSettings) {
this.renderSettings = renderSettings; this.renderSettings = renderSettings;
@ -91,6 +91,6 @@ private BlockStateModel createModel(Block block, BlockState blockState) throws N
} }
private BlockState WATERLOGGED_BLOCKSTATE = new BlockState("minecraft:water"); private final static BlockState WATERLOGGED_BLOCKSTATE = new BlockState("minecraft:water");
} }