Class MockChunkData

java.lang.Object
be.seeseemelk.mockbukkit.MockChunkData
All Implemented Interfaces:
org.bukkit.generator.ChunkGenerator.ChunkData

public class MockChunkData extends Object implements org.bukkit.generator.ChunkGenerator.ChunkData
Mock implementation of a ChunkGenerator.ChunkData.
  • Constructor Summary

    Constructors
    Constructor
    Description
    MockChunkData(@NotNull org.bukkit.World world)
    Constructs a new MockChunkData for the provided World.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull org.bukkit.block.Biome
    getBiome(int x, int y, int z)
     
    @NotNull org.bukkit.block.data.BlockData
    getBlockData(int x, int y, int z)
     
    byte
    getData(int x, int y, int z)
    Deprecated.
    int
     
    int
     
    @NotNull org.bukkit.Material
    getType(int x, int y, int z)
     
    @NotNull org.bukkit.material.MaterialData
    getTypeAndData(int x, int y, int z)
    Deprecated.
    void
    setBlock(int x, int y, int z, @NotNull org.bukkit.Material material)
     
    void
    setBlock(int x, int y, int z, @NotNull org.bukkit.block.data.BlockData blockData)
     
    void
    setBlock(int x, int y, int z, @NotNull org.bukkit.material.MaterialData material)
    Deprecated.
    void
    setRegion(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, @NotNull org.bukkit.Material material)
     
    void
    setRegion(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, @NotNull org.bukkit.block.data.BlockData blockData)
     
    void
    setRegion(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, @NotNull org.bukkit.material.MaterialData material)
    Deprecated.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MockChunkData

      public MockChunkData(@NotNull @NotNull org.bukkit.World world)
      Constructs a new MockChunkData for the provided World.
      Parameters:
      world - The world the chunk is in.
  • Method Details

    • getMinHeight

      public int getMinHeight()
      Specified by:
      getMinHeight in interface org.bukkit.generator.ChunkGenerator.ChunkData
    • getMaxHeight

      public int getMaxHeight()
      Specified by:
      getMaxHeight in interface org.bukkit.generator.ChunkGenerator.ChunkData
    • getBiome

      @NotNull public @NotNull org.bukkit.block.Biome getBiome(int x, int y, int z)
      Specified by:
      getBiome in interface org.bukkit.generator.ChunkGenerator.ChunkData
    • setBlock

      public void setBlock(int x, int y, int z, @NotNull @NotNull org.bukkit.Material material)
      Specified by:
      setBlock in interface org.bukkit.generator.ChunkGenerator.ChunkData
    • setBlock

      @Deprecated(since="1.18") public void setBlock(int x, int y, int z, @NotNull @NotNull org.bukkit.material.MaterialData material)
      Deprecated.
      Specified by:
      setBlock in interface org.bukkit.generator.ChunkGenerator.ChunkData
    • setBlock

      public void setBlock(int x, int y, int z, @NotNull @NotNull org.bukkit.block.data.BlockData blockData)
      Specified by:
      setBlock in interface org.bukkit.generator.ChunkGenerator.ChunkData
    • setRegion

      public void setRegion(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, @NotNull @NotNull org.bukkit.Material material)
      Specified by:
      setRegion in interface org.bukkit.generator.ChunkGenerator.ChunkData
    • setRegion

      @Deprecated(since="1.18") public void setRegion(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, @NotNull @NotNull org.bukkit.material.MaterialData material)
      Deprecated.
      Specified by:
      setRegion in interface org.bukkit.generator.ChunkGenerator.ChunkData
    • setRegion

      public void setRegion(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, @NotNull @NotNull org.bukkit.block.data.BlockData blockData)
      Specified by:
      setRegion in interface org.bukkit.generator.ChunkGenerator.ChunkData
    • getType

      @NotNull public @NotNull org.bukkit.Material getType(int x, int y, int z)
      Specified by:
      getType in interface org.bukkit.generator.ChunkGenerator.ChunkData
    • getTypeAndData

      @NotNull @Deprecated(since="1.18") public @NotNull org.bukkit.material.MaterialData getTypeAndData(int x, int y, int z)
      Deprecated.
      Specified by:
      getTypeAndData in interface org.bukkit.generator.ChunkGenerator.ChunkData
    • getBlockData

      @NotNull public @NotNull org.bukkit.block.data.BlockData getBlockData(int x, int y, int z)
      Specified by:
      getBlockData in interface org.bukkit.generator.ChunkGenerator.ChunkData
    • getData

      @Deprecated(since="1.8.8") public byte getData(int x, int y, int z)
      Deprecated.
      Specified by:
      getData in interface org.bukkit.generator.ChunkGenerator.ChunkData