Class BukkitBlockAccessor

java.lang.Object
wtf.choco.veinminer.platform.world.BukkitBlockAccessor
All Implemented Interfaces:
BlockAccessor

public final class BukkitBlockAccessor extends Object implements BlockAccessor
Implementation of BlockAccessor for Bukkit Worlds.
  • Method Details

    • getWorldName

      @NotNull public @NotNull String getWorldName()
      Description copied from interface: BlockAccessor
      Get the name of the world being accessed by this BlockAccessor.
      Specified by:
      getWorldName in interface BlockAccessor
      Returns:
      the world name
    • getType

      @NotNull public @NotNull BlockType getType(int x, int y, int z)
      Description copied from interface: BlockAccessor
      Get the BlockType at the given coordinates.
      Specified by:
      getType in interface BlockAccessor
      Parameters:
      x - the x coordinate
      y - the y coordinate
      z - the z coordinate
      Returns:
      the type
    • getState

      @NotNull public @NotNull BlockState getState(int x, int y, int z)
      Description copied from interface: BlockAccessor
      Get the BlockState at the given coordinates.
      Specified by:
      getState in interface BlockAccessor
      Parameters:
      x - the x coordinate
      y - the y coordinate
      z - the z coordinate
      Returns:
      the state
    • forWorld

      @NotNull public static @NotNull BlockAccessor forWorld(@NotNull @NotNull World world)
      Get a BlockAccessor for the given World.
      Parameters:
      world - the world for which to get a block accessor
      Returns:
      the block accessor