Totally stable optimizations that wont cause any problems at all.

This commit is contained in:
Daniel Mills
2021-07-14 16:40:20 -04:00
parent 886553a923
commit 7d423fa49d
260 changed files with 2329 additions and 3058 deletions

View File

@@ -21,6 +21,7 @@ package com.volmit.iris.util;
import com.volmit.iris.Iris;
import org.bukkit.block.Biome;
import org.bukkit.generator.ChunkGenerator.BiomeGrid;
import org.jetbrains.annotations.NotNull;
public class InvertedBiomeGrid implements BiomeGrid {
private final BiomeGrid grid;
@@ -29,12 +30,14 @@ public class InvertedBiomeGrid implements BiomeGrid {
this.grid = real;
}
@NotNull
@SuppressWarnings("deprecation")
@Override
public Biome getBiome(int arg0, int arg1) {
return grid.getBiome(arg0, arg1);
}
@NotNull
@Override
public Biome getBiome(int arg0, int arg1, int arg2) {
if (!Iris.biome3d) {
@@ -46,12 +49,12 @@ public class InvertedBiomeGrid implements BiomeGrid {
@SuppressWarnings("deprecation")
@Override
public void setBiome(int arg0, int arg1, Biome arg2) {
public void setBiome(int arg0, int arg1, @NotNull Biome arg2) {
grid.setBiome(arg0, arg1, arg2);
}
@Override
public void setBiome(int arg0, int arg1, int arg2, Biome arg3) {
public void setBiome(int arg0, int arg1, int arg2, @NotNull Biome arg3) {
if (!Iris.biome3d) {
setBiome(arg0, arg2, arg3);
return;