Package be.seeseemelk.mockbukkit
Class MockChunkData
java.lang.Object
be.seeseemelk.mockbukkit.MockChunkData
- All Implemented Interfaces:
org.bukkit.generator.ChunkGenerator.ChunkData
Mock implementation of a
ChunkGenerator.ChunkData.-
Constructor Summary
ConstructorsConstructorDescriptionMockChunkData(@NotNull org.bukkit.World world) Constructs a newMockChunkDatafor the providedWorld. -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.block.BiomegetBiome(int x, int y, int z) @NotNull org.bukkit.block.data.BlockDatagetBlockData(int x, int y, int z) bytegetData(int x, int y, int z) Deprecated.intint@NotNull org.bukkit.MaterialgetType(int x, int y, int z) @NotNull org.bukkit.material.MaterialDatagetTypeAndData(int x, int y, int z) Deprecated.voidsetBlock(int x, int y, int z, @NotNull org.bukkit.Material material) voidsetBlock(int x, int y, int z, @NotNull org.bukkit.block.data.BlockData blockData) voidsetBlock(int x, int y, int z, @NotNull org.bukkit.material.MaterialData material) Deprecated.voidsetRegion(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, @NotNull org.bukkit.Material material) voidsetRegion(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, @NotNull org.bukkit.block.data.BlockData blockData) voidsetRegion(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, @NotNull org.bukkit.material.MaterialData material) Deprecated.
-
Constructor Details
-
MockChunkData
public MockChunkData(@NotNull @NotNull org.bukkit.World world) Constructs a newMockChunkDatafor the providedWorld.- Parameters:
world- The world the chunk is in.
-
-
Method Details
-
getMinHeight
public int getMinHeight()- Specified by:
getMinHeightin interfaceorg.bukkit.generator.ChunkGenerator.ChunkData
-
getMaxHeight
public int getMaxHeight()- Specified by:
getMaxHeightin interfaceorg.bukkit.generator.ChunkGenerator.ChunkData
-
getBiome
@NotNull public @NotNull org.bukkit.block.Biome getBiome(int x, int y, int z) - Specified by:
getBiomein interfaceorg.bukkit.generator.ChunkGenerator.ChunkData
-
setBlock
public void setBlock(int x, int y, int z, @NotNull @NotNull org.bukkit.Material material) - Specified by:
setBlockin interfaceorg.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:
setBlockin interfaceorg.bukkit.generator.ChunkGenerator.ChunkData
-
setBlock
public void setBlock(int x, int y, int z, @NotNull @NotNull org.bukkit.block.data.BlockData blockData) - Specified by:
setBlockin interfaceorg.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:
setRegionin interfaceorg.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:
setRegionin interfaceorg.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:
setRegionin interfaceorg.bukkit.generator.ChunkGenerator.ChunkData
-
getType
@NotNull public @NotNull org.bukkit.Material getType(int x, int y, int z) - Specified by:
getTypein interfaceorg.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:
getTypeAndDatain interfaceorg.bukkit.generator.ChunkGenerator.ChunkData
-
getBlockData
@NotNull public @NotNull org.bukkit.block.data.BlockData getBlockData(int x, int y, int z) - Specified by:
getBlockDatain interfaceorg.bukkit.generator.ChunkGenerator.ChunkData
-
getData
Deprecated.- Specified by:
getDatain interfaceorg.bukkit.generator.ChunkGenerator.ChunkData
-