SPIGOT-6903, #945: Add BlockData#getMapColor
By: Miles Holder <mwholder2005@gmail.com>
This commit is contained in:
parent
d9c503c966
commit
f3d18a30c1
1 changed files with 9 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue