Package | Description |
---|---|
io.github.bananapuncher714.cartographer.core.api |
Contains general utility classes, interfaces, and enums for Cartographer2.
|
io.github.bananapuncher714.cartographer.core.map.palette |
Contains the
MinimapPalette info for Minimap to render the blocks. |
io.github.bananapuncher714.cartographer.core.util |
Modifier and Type | Method and Description |
---|---|
CrossVersionMaterial |
GeneralUtil.getBlockType(org.bukkit.block.Block block)
Get the material type of the block.
|
CrossVersionMaterial |
GeneralUtil.getBlockType(org.bukkit.ChunkSnapshot snapshot,
int x,
int y,
int z)
Get the material of the block in the chunk snapshot at the specified coordinates.
|
CrossVersionMaterial |
GeneralUtil.getItemType(org.bukkit.inventory.ItemStack item)
Get the material type of the item.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<CrossVersionMaterial> |
MinimapPalette.getMaterials()
Get the
CrossVersionMaterial that are registered. |
java.util.Set<CrossVersionMaterial> |
MinimapPalette.getTransparentBlocks()
Get the
CrossVersionMaterial that are registered as transparent. |
Modifier and Type | Method and Description |
---|---|
void |
MinimapPalette.addTransparentMaterial(CrossVersionMaterial material)
Add a
CrossVersionMaterial as transparent. |
boolean |
MinimapPalette.contains(CrossVersionMaterial material)
Check if the material has a color registered.
|
java.awt.Color |
MinimapPalette.getColor(CrossVersionMaterial material)
Get the color of a
CrossVersionMaterial as designated by this palette. |
byte |
MinimapPalette.getMinecraftColor(CrossVersionMaterial material)
Get the Minecraft color for a particular
CrossVersionMaterial as designated by this palette. |
int |
MinimapPalette.getRGB(CrossVersionMaterial material)
Get the integer color of a
CrossVersionMaterial as designated by this palette. |
boolean |
MinimapPalette.isTransparent(CrossVersionMaterial material)
Check if the material is listed as transparent by this palette.
|
void |
MinimapPalette.setColor(CrossVersionMaterial material,
java.awt.Color color)
Set the color of a
CrossVersionMaterial . |
void |
MinimapPalette.setColor(CrossVersionMaterial material,
int argb)
Set the color of a
CrossVersionMaterial . |
Modifier and Type | Method and Description |
---|---|
static int |
BlockUtil.getHighestYAt(org.bukkit.ChunkSnapshot chunk,
int x,
int y,
int z,
java.util.Set<CrossVersionMaterial> skip) |
static int |
BlockUtil.getHighestYAt(org.bukkit.Location location,
java.util.Set<CrossVersionMaterial> skip) |
static org.bukkit.block.Block |
BlockUtil.getNextHighestBlockAt(org.bukkit.Location location,
java.util.Set<CrossVersionMaterial> skip,
int height) |