]> git.lizzy.rs Git - BoundingBoxOutlineReloaded.git/blobdiff - src/main/java/com/irtimaled/bbor/client/providers/FlowerForestProvider.java
Make clearing providers easier
[BoundingBoxOutlineReloaded.git] / src / main / java / com / irtimaled / bbor / client / providers / FlowerForestProvider.java
index cd6b46aae2d3e9e4a70c377b15759c822a49d679..3bc7bdc0434be8c12c8447855dbb468aa9f3f142 100644 (file)
@@ -16,7 +16,7 @@ import net.minecraft.world.biome.Biomes;
 import java.util.HashMap;
 import java.util.Map;
 
-public class FlowerForestProvider implements IBoundingBoxProvider<BoundingBoxFlowerForest> {
+public class FlowerForestProvider implements IBoundingBoxProvider<BoundingBoxFlowerForest>, ICachingProvider {
     public static final int FLOWER_FOREST_BIOME_ID = Registry.BIOME.getId(Biomes.FLOWER_FOREST);
     private static Coords lastPlayerCoords = null;
     private static Integer lastRenderDistance = null;
@@ -39,7 +39,7 @@ public class FlowerForestProvider implements IBoundingBoxProvider<BoundingBoxFlo
         return lastBoundingBoxes.values();
     }
 
-    public static void clear() {
+    public void clearCache() {
         lastBoundingBoxes = new HashMap<>();
         lastPlayerCoords = null;
     }