Package be.seeseemelk.mockbukkit
Class MockChunkData
java.lang.Object
be.seeseemelk.mockbukkit.MockChunkData
- All Implemented Interfaces:
ChunkGenerator.ChunkData
Mock implementation of a
ChunkGenerator.ChunkData
.-
Constructor Summary
ConstructorDescriptionMockChunkData
(@NotNull World world) Constructs a newMockChunkData
for the providedWorld
. -
Method Summary
Modifier and TypeMethodDescription@NotNull Biome
getBiome
(int x, int y, int z) @NotNull BlockData
getBlockData
(int x, int y, int z) byte
getData
(int x, int y, int z) Deprecated.int
int
@NotNull Material
getType
(int x, int y, int z) @NotNull MaterialData
getTypeAndData
(int x, int y, int z) Deprecated.void
void
void
setBlock
(int x, int y, int z, @NotNull MaterialData material) Deprecated.void
void
void
setRegion
(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, @NotNull MaterialData material) Deprecated.
-
Constructor Details
-
MockChunkData
Constructs a newMockChunkData
for the providedWorld
.- Parameters:
world
- The world the chunk is in.
-
-
Method Details
-
getMinHeight
public int getMinHeight()- Specified by:
getMinHeight
in interfaceChunkGenerator.ChunkData
-
getMaxHeight
public int getMaxHeight()- Specified by:
getMaxHeight
in interfaceChunkGenerator.ChunkData
-
getBiome
- Specified by:
getBiome
in interfaceChunkGenerator.ChunkData
-
setBlock
- Specified by:
setBlock
in interfaceChunkGenerator.ChunkData
-
setBlock
Deprecated.- Specified by:
setBlock
in interfaceChunkGenerator.ChunkData
-
setBlock
- Specified by:
setBlock
in interfaceChunkGenerator.ChunkData
-
setRegion
public void setRegion(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, @NotNull @NotNull Material material) - Specified by:
setRegion
in interfaceChunkGenerator.ChunkData
-
setRegion
@Deprecated public void setRegion(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, @NotNull @NotNull MaterialData material) Deprecated.- Specified by:
setRegion
in interfaceChunkGenerator.ChunkData
-
setRegion
public void setRegion(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, @NotNull @NotNull BlockData blockData) - Specified by:
setRegion
in interfaceChunkGenerator.ChunkData
-
getType
- Specified by:
getType
in interfaceChunkGenerator.ChunkData
-
getTypeAndData
Deprecated.- Specified by:
getTypeAndData
in interfaceChunkGenerator.ChunkData
-
getBlockData
- Specified by:
getBlockData
in interfaceChunkGenerator.ChunkData
-
getData
Deprecated.- Specified by:
getData
in interfaceChunkGenerator.ChunkData
-