1818package 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 *
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 ;
0 commit comments