Class BukkitChunkProvider

java.lang.Object
net.tnemc.plugincore.bukkit.impl.BukkitChunkProvider
All Implemented Interfaces:
ChunkProvider

public class BukkitChunkProvider extends Object implements ChunkProvider
BukkitChunkProvider
Since:
1.1.0.1
Author:
creatorfromhell
  • Constructor Summary

    Constructors
    Constructor
    Description
    BukkitChunkProvider(org.bukkit.Chunk chunk, int y)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    containsBiome(@NotNull String biome)
    Checks if the specified biome is contained within the chunk provider.
    boolean
    containsStructure(@NotNull String structure)
    Checks if the provided structure is contained.
    boolean
    Checks if the ChunkProvider represents a slime chunk.
    int
    x()
    This method is used to get the chunk's x coordinate.
    int
    y()
    This method is used to get the chunk's y coordinate.
    int
    z()
    This method is used to get the chunk's z coordinate.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.tnemc.plugincore.core.compatibility.ChunkProvider

    containsBiomes, containsStructures
  • Constructor Details

  • Method Details

    • x

      public int x()
      This method is used to get the chunk's x coordinate.
      Specified by:
      x in interface ChunkProvider
      Returns:
      The chunk's x coordinate.
    • y

      public int y()
      This method is used to get the chunk's y coordinate.
      Specified by:
      y in interface ChunkProvider
      Returns:
      The chunk's y coordinate.
    • z

      public int z()
      This method is used to get the chunk's z coordinate.
      Specified by:
      z in interface ChunkProvider
      Returns:
      The chunk's z coordinate.
    • isSlime

      public boolean isSlime()
      Checks if the ChunkProvider represents a slime chunk.
      Specified by:
      isSlime in interface ChunkProvider
      Returns:
      True if the ChunkProvider is a slime chunk, false otherwise.
    • containsBiome

      public boolean containsBiome(@NotNull @NotNull String biome)
      Checks if the specified biome is contained within the chunk provider.
      Specified by:
      containsBiome in interface ChunkProvider
      Parameters:
      biome - The biome to check for.
      Returns:
      True if the specified biome is contained, false otherwise.
    • containsStructure

      public boolean containsStructure(@NotNull @NotNull String structure)
      Checks if the provided structure is contained. Only on 1.21.1.
      Specified by:
      containsStructure in interface ChunkProvider
      Parameters:
      structure - The structure to check if contained.
      Returns:
      True if the structure is contained, false otherwise.