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.ChunkSnapshotpublic int getBlockTypeId(int x,
int y,
int z)
getBlockTypeId in interface org.bukkit.ChunkSnapshotpublic org.bukkit.Material getBlockType(int x,
int y,
int z)
getBlockType in interface org.bukkit.ChunkSnapshotpublic int getBlockData(int x,
int y,
int z)
getBlockData in interface org.bukkit.ChunkSnapshotpublic int getBlockSkyLight(int x,
int y,
int z)
getBlockSkyLight in interface org.bukkit.ChunkSnapshotpublic int getBlockEmittedLight(int x,
int y,
int z)
getBlockEmittedLight in interface org.bukkit.ChunkSnapshotpublic int getHighestBlockYAt(int x,
int z)
getHighestBlockYAt in interface org.bukkit.ChunkSnapshotpublic org.bukkit.block.Biome getBiome(int x,
int z)
getBiome in interface org.bukkit.ChunkSnapshotpublic double getRawBiomeTemperature(int x,
int z)
getRawBiomeTemperature in interface org.bukkit.ChunkSnapshotpublic double getRawBiomeRainfall(int x,
int z)
getRawBiomeRainfall in interface org.bukkit.ChunkSnapshotpublic int getX()
getX in interface org.bukkit.ChunkSnapshotpublic int getZ()
getZ in interface org.bukkit.ChunkSnapshotpublic String getWorldName()
getWorldName in interface org.bukkit.ChunkSnapshotpublic long getCaptureFullTime()
getCaptureFullTime in interface org.bukkit.ChunkSnapshotpublic ChunkSection[] getRawSections()
public byte[] getRawBiomes()
public boolean isSlimeChunk()
Copyright © 2021. All rights reserved.