Skip to content

Commit 4064e73

Browse files
committed
Add missing link in license, final modifiers
1 parent a49f240 commit 4064e73

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

common/src/main/java/io/github/moremcmeta/emissiveplugin/fabricapi/SpriteFinder.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
package io.github.moremcmeta.emissiveplugin.fabricapi;
1919

2020
/*
21-
* This file was originally part of the FabricMC project under the Apache license
22-
* (SpriteFinderImpl.java). Unused methods referencing Fabric API code have been deleted,
23-
* the find() method has been refactored to return Optional<TextureAtlasSprite>, class
24-
* names have been updated to use the Mojang mappings, and comments have been edited for
25-
* clarity. The original copyright notice follows below. See APACHE.md for the full text
26-
* of the license.
21+
* This file was originally part of the FabricMC project under the Apache license:
22+
* https://github.com/FabricMC/fabric/blob/8cafc1423557e2c32f925a899af026559e78ef6c/fabric-renderer-api-v1/src/client/java/net/fabricmc/fabric/impl/renderer/SpriteFinderImpl.java.
23+
* Unused methods referencing Fabric API code have been deleted, the find() method has been
24+
* refactored to return Optional<TextureAtlasSprite>, class names have been updated to use
25+
* the Mojang mappings, and comments have been edited for clarity. The original copyright
26+
* notice follows below. See APACHE.md for the full text of the license.
2727
*
2828
* Copyright (c) 2016, 2017, 2018, 2019 FabricMC
2929
*
@@ -59,7 +59,7 @@
5959
* @author FabricMC, soir20
6060
*/
6161
@SuppressWarnings("MissingJavadoc")
62-
public class SpriteFinder {
62+
public final class SpriteFinder {
6363
private static final Logger LOGGER = LogManager.getLogger();
6464

6565
private final Node root;
@@ -83,7 +83,7 @@ public Optional<TextureAtlasSprite> find(float u, float v) {
8383
return root.find(u, v);
8484
}
8585

86-
private class Node {
86+
private final class Node {
8787
final float midU;
8888
final float midV;
8989
final float cellRadius;

common/src/main/java/io/github/moremcmeta/emissiveplugin/mixin/ChunkRebuildTaskMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
*/
5353
@SuppressWarnings("unused")
5454
@Mixin(ChunkRenderDispatcher.RenderChunk.RebuildTask.class)
55-
public class ChunkRebuildTaskMixin {
55+
public final class ChunkRebuildTaskMixin {
5656
@Unique
5757
private final SpriteFinder SPRITE_FINDER = new SpriteFinder(
5858
Minecraft.getInstance().getModelManager().getAtlas(TextureAtlas.LOCATION_BLOCKS)

common/src/main/java/io/github/moremcmeta/emissiveplugin/render/OverlayVertexConsumer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* @author soir20
4242
*/
4343
@MethodsReturnNonnullByDefault
44-
public class OverlayVertexConsumer implements VertexConsumer {
44+
public final class OverlayVertexConsumer implements VertexConsumer {
4545
private static final int VERTS_PER_QUAD = 4;
4646
private final SpriteFinder SPRITE_FINDER;
4747
private final VertexConsumer DELEGATE;

0 commit comments

Comments
 (0)