Commits
Miles Holder authored and md_5 committed d4119585748
1 1 | package org.bukkit.block.data; |
2 2 | |
3 + | import org.bukkit.Color; |
3 4 | import org.bukkit.Location; |
4 5 | import org.bukkit.Material; |
5 6 | import org.bukkit.Server; |
6 7 | import org.bukkit.SoundGroup; |
7 8 | import org.bukkit.block.Block; |
8 9 | import org.bukkit.block.BlockFace; |
9 10 | import org.bukkit.block.BlockState; |
10 11 | import org.bukkit.block.BlockSupport; |
11 12 | import org.bukkit.block.PistonMoveReaction; |
12 13 | import org.bukkit.block.structure.Mirror; |
197 198 | * torches only on the center of the upper block face, whereas a grass block would |
198 199 | * support all levels of block support on all block faces. |
199 200 | * |
200 201 | * @param face the face to check |
201 202 | * @param support the possible support level |
202 203 | * |
203 204 | * @return true if the face is sturdy and can support a block, false otherwise |
204 205 | */ |
205 206 | boolean isFaceSturdy( BlockFace face, BlockSupport support); |
206 207 | |
208 + | /** |
209 + | * Gets the color this block should appear as when rendered on a map. |
210 + | * |
211 + | * @return the color associated with this BlockData |
212 + | */ |
213 + | |
214 + | Color getMapColor(); |
215 + | |
207 216 | /** |
208 217 | * Gets the material that a player would use to place this block. |
209 218 | * <p> |
210 219 | * For most blocks this is the same as {@link #getMaterial()} but some blocks |
211 220 | * have different materials used to place them. |
212 221 | * |
213 222 | * For example: |
214 223 | * <pre> |
215 224 | * {@link Material#REDSTONE_WIRE} -> {@link Material#REDSTONE} |
216 225 | * {@link Material#CARROTS} -> {@link Material#CARROT} |