public class GlowChunkSnapshot extends Object implements org.bukkit.ChunkSnapshot
Modifier and Type | Class and Description |
---|---|
static class |
GlowChunkSnapshot.EmptySnapshot |
Constructor and Description |
---|
GlowChunkSnapshot(int x,
int z,
org.bukkit.World world,
ChunkSection[] sections,
byte[] height,
byte[] biomes,
boolean svTemp,
boolean isSlimeChunk)
Creates a snapshot of a chunk.
|
Modifier and Type | Method and Description |
---|---|
org.bukkit.block.Biome |
getBiome(int x,
int z) |
int |
getBlockData(int x,
int y,
int z) |
int |
getBlockEmittedLight(int x,
int y,
int z) |
int |
getBlockSkyLight(int x,
int y,
int z) |
org.bukkit.Material |
getBlockType(int x,
int y,
int z) |
int |
getBlockTypeId(int x,
int y,
int z) |
long |
getCaptureFullTime() |
int |
getHighestBlockYAt(int x,
int z) |
double |
getRawBiomeRainfall(int x,
int z) |
byte[] |
getRawBiomes() |
double |
getRawBiomeTemperature(int x,
int z) |
int[] |
getRawHeightmap()
Returns the heightmap, converted to an
int[] . |
ChunkSection[] |
getRawSections()
The ChunkSection array backing this snapshot.
|
String |
getWorldName() |
int |
getX() |
int |
getZ() |
boolean |
isSectionEmpty(int sy) |
boolean |
isSlimeChunk() |
public GlowChunkSnapshot(int x, int z, org.bukkit.World world, ChunkSection[] sections, byte[] height, byte[] biomes, boolean svTemp, boolean isSlimeChunk)
x
- the chunk x coordinatez
- the chunk z coordinateworld
- the world the chunk is insections
- the chunk contentsheight
- the heightmapbiomes
- the biome mapsvTemp
- if true, copy temperature and humidity from the worldpublic int[] getRawHeightmap()
int[]
.int[]
public boolean isSectionEmpty(int sy)
isSectionEmpty
in interface org.bukkit.ChunkSnapshot
public int getBlockTypeId(int x, int y, int z)
getBlockTypeId
in interface org.bukkit.ChunkSnapshot
public org.bukkit.Material getBlockType(int x, int y, int z)
getBlockType
in interface org.bukkit.ChunkSnapshot
public int getBlockData(int x, int y, int z)
getBlockData
in interface org.bukkit.ChunkSnapshot
public int getBlockSkyLight(int x, int y, int z)
getBlockSkyLight
in interface org.bukkit.ChunkSnapshot
public int getBlockEmittedLight(int x, int y, int z)
getBlockEmittedLight
in interface org.bukkit.ChunkSnapshot
public int getHighestBlockYAt(int x, int z)
getHighestBlockYAt
in interface org.bukkit.ChunkSnapshot
public org.bukkit.block.Biome getBiome(int x, int z)
getBiome
in interface org.bukkit.ChunkSnapshot
public double getRawBiomeTemperature(int x, int z)
getRawBiomeTemperature
in interface org.bukkit.ChunkSnapshot
public double getRawBiomeRainfall(int x, int z)
getRawBiomeRainfall
in interface org.bukkit.ChunkSnapshot
public int getX()
getX
in interface org.bukkit.ChunkSnapshot
public int getZ()
getZ
in interface org.bukkit.ChunkSnapshot
public String getWorldName()
getWorldName
in interface org.bukkit.ChunkSnapshot
public long getCaptureFullTime()
getCaptureFullTime
in interface org.bukkit.ChunkSnapshot
public ChunkSection[] getRawSections()
public byte[] getRawBiomes()
public boolean isSlimeChunk()
Copyright © 2021. All rights reserved.