mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 02:02:04 -07:00
SPIGOT-6903, #945: Add BlockData#getMapColor
By: Miles Holder <mwholder2005@gmail.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package org.bukkit.block.data;
|
||||
|
||||
import org.bukkit.Color;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.Server;
|
||||
@@ -204,6 +205,14 @@ public interface BlockData extends Cloneable {
|
||||
*/
|
||||
boolean isFaceSturdy(@NotNull BlockFace face, @NotNull BlockSupport support);
|
||||
|
||||
/**
|
||||
* Gets the color this block should appear as when rendered on a map.
|
||||
*
|
||||
* @return the color associated with this BlockData
|
||||
*/
|
||||
@NotNull
|
||||
Color getMapColor();
|
||||
|
||||
/**
|
||||
* Gets the material that a player would use to place this block.
|
||||
* <p>
|
||||
|
Reference in New Issue
Block a user