-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed
Lombok
& Improved Performance
- Loading branch information
1 parent
db8f630
commit 352bce0
Showing
11 changed files
with
157 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
src/jmh/java/me/outspending/biomesapi/benchmarks/TestingBenchmark.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
src/main/java/me/outspending/biomesapi/setter/ClientBiomeSetter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
package me.outspending.biomesapi.setter; | ||
|
||
import me.outspending.biomesapi.biome.CustomBiome; | ||
import org.bukkit.Chunk; | ||
import org.bukkit.Location; | ||
import org.bukkit.World; | ||
import org.bukkit.block.Block; | ||
import org.bukkit.entity.Player; | ||
import org.bukkit.util.BoundingBox; | ||
import org.bukkit.util.Vector; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class ClientBiomeSetter implements BiomeSetter { | ||
|
||
private final Player client; | ||
|
||
public ClientBiomeSetter(@NotNull Player client) { | ||
this.client = client; | ||
} | ||
|
||
public Player getClient() { | ||
return client; | ||
} | ||
|
||
@Override | ||
public void setBlockBiome(@NotNull Block block, @NotNull CustomBiome customBiome) { | ||
setBlockBiome(block, customBiome, false); | ||
} | ||
|
||
@Override | ||
public void setBlockBiome(@NotNull Block block, @NotNull CustomBiome customBiome, boolean updateBiome) { | ||
// TODO: Method | ||
} | ||
|
||
@Override | ||
public void setChunkBiome(@NotNull Chunk chunk, @NotNull CustomBiome customBiome) { | ||
setChunkBiome(chunk, customBiome, false); | ||
} | ||
|
||
@Override | ||
public void setChunkBiome(@NotNull Chunk chunk, @NotNull CustomBiome customBiome, boolean updateBiome) { | ||
setChunkBiome(chunk, MIN_HEIGHT, MAX_HEIGHT, customBiome, false); | ||
} | ||
|
||
@Override | ||
public void setChunkBiome(@NotNull Chunk chunk, int minHeight, int maxHeight, @NotNull CustomBiome customBiome) { | ||
setChunkBiome(chunk, minHeight, maxHeight, customBiome, false); | ||
} | ||
|
||
@Override | ||
public void setChunkBiome(@NotNull Chunk chunk, int minHeight, int maxHeight, @NotNull CustomBiome customBiome, boolean updateBiome) { | ||
// TODO: Method | ||
} | ||
|
||
@Override | ||
public void setBoundingBoxBiome(@NotNull World world, @NotNull BoundingBox boundingBox, @NotNull CustomBiome customBiome) { | ||
// TODO: Method | ||
} | ||
|
||
@Override | ||
public void setRegionBiome(@NotNull Location from, @NotNull Location to, @NotNull CustomBiome customBiome) { | ||
setRegionBiome(from, to , customBiome, false); | ||
} | ||
|
||
@Override | ||
public void setRegionBiome(@NotNull Location from, @NotNull Location to, @NotNull CustomBiome customBiome, boolean updateBiome) { | ||
// TODO: Method | ||
} | ||
|
||
@Override | ||
public void setRegionBiome(@NotNull World world, @NotNull Vector from, @NotNull Vector to, @NotNull CustomBiome customBiome) { | ||
setRegionBiome(world, from, to, customBiome, false); | ||
} | ||
|
||
@Override | ||
public void setRegionBiome(@NotNull World world, @NotNull Vector from, @NotNull Vector to, @NotNull CustomBiome customBiome, boolean updateBiome) { | ||
setRegionBiome(world, from.toLocation(world), to.toLocation(world), customBiome, updateBiome); | ||
} | ||
|
||
@Override | ||
public void setRegionBiome(@NotNull World world, @NotNull Location from, @NotNull Location to, @NotNull CustomBiome customBiome, boolean updateBiome) { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters