Commits
coll1234567 authored and md_5 committed 150a2861a73
192 192 | * support depending on its states. A common example would be a wall's ability to support |
193 193 | * torches only on the center of the upper block face, whereas a grass block would |
194 194 | * support all levels of block support on all block faces. |
195 195 | * |
196 196 | * @param face the face to check |
197 197 | * @param support the possible support level |
198 198 | * |
199 199 | * @return true if the face is sturdy and can support a block, false otherwise |
200 200 | */ |
201 201 | boolean isFaceSturdy( BlockFace face, BlockSupport support); |
202 + | |
203 + | /** |
204 + | * Gets the material that a player would use to place this block. |
205 + | * <p> |
206 + | * For most blocks this is the same as {@link #getMaterial()} but some blocks |
207 + | * have different materials used to place them. |
208 + | * |
209 + | * For example: |
210 + | * <pre> |
211 + | * {@link Material#REDSTONE_WIRE} -> {@link Material#REDSTONE} |
212 + | * {@link Material#CARROTS} -> {@link Material#CARROT} |
213 + | * </pre> |
214 + | * @return placement material |
215 + | */ |
216 + | |
217 + | Material getPlacementMaterial(); |
202 218 | } |