-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # pom.xml # src/main/java/world/bentobox/caveblock/generators/populators/EntitiesPopulator.java
- Loading branch information
Showing
23 changed files
with
2,652 additions
and
1,667 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,5 @@ hs_err_pid* | |
/.classpath | ||
/.project | ||
/.settings/ | ||
/.idea/ | ||
/CaveBlock.iml |
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
20 changes: 20 additions & 0 deletions
20
src/main/java/world/bentobox/caveblock/CaveBlockPladdon.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,20 @@ | ||
package world.bentobox.caveblock; | ||
|
||
import org.bukkit.plugin.java.annotation.dependency.Dependency; | ||
import org.bukkit.plugin.java.annotation.plugin.ApiVersion; | ||
import org.bukkit.plugin.java.annotation.plugin.Plugin; | ||
|
||
import world.bentobox.bentobox.api.addons.Addon; | ||
import world.bentobox.bentobox.api.addons.Pladdon; | ||
|
||
|
||
@Plugin(name = "Pladdon", version = "1.0") | ||
@ApiVersion(ApiVersion.Target.v1_18) | ||
@Dependency(value = "BentoBox") | ||
public class CaveBlockPladdon extends Pladdon { | ||
|
||
@Override | ||
public Addon getAddon() { | ||
return new CaveBlock(); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package world.bentobox.caveblock; | ||
|
||
import org.bukkit.Location; | ||
|
||
public class Utils { | ||
|
||
/** | ||
* Convert chunk location to world location | ||
* | ||
* @param x the x coordinate of the chunk location | ||
* @param y the y coordinate | ||
* @param z the z coordinate of the chunk location | ||
* @param chunkX the x coordinate of the chunk | ||
* @param chunkZ the z coordinate of the chunk | ||
* @return the world location | ||
*/ | ||
public static Location getLocationFromChunkLocation(int x, int y, int z, int chunkX, int chunkZ) { | ||
return new Location(null, x + (chunkX * 16D), y, z + (chunkZ * 16D)); | ||
} | ||
} |
Oops, something went wrong.