SPIGOT-6903, #945: Add BlockData#getMapColor

By: Miles Holder <mwholder2005@gmail.com>
This commit is contained in:
Bukkit/Spigot
2023-12-17 09:29:51 +11:00
parent d9c503c966
commit f3d18a30c1

View File

@@ -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>