Commits
blablubbabc authored and md_5 committed 0e17dc03f99
349 349 | |
350 350 | /** |
351 351 | * Returns a list of items which would drop by destroying this block with |
352 352 | * a specific tool |
353 353 | * |
354 354 | * @param tool The tool or item in hand used for digging |
355 355 | * @return a list of dropped items for this type of block |
356 356 | */ |
357 357 | Collection<ItemStack> getDrops(ItemStack tool); |
358 358 | |
359 + | /** |
360 + | * Checks if this block is passable. |
361 + | * <p> |
362 + | * A block is passable if it has no colliding parts that would prevent |
363 + | * players from moving through it. |
364 + | * <p> |
365 + | * Examples: Tall grass, flowers, signs, etc. are passable, but open doors, |
366 + | * fence gates, trap doors, etc. are not because they still have parts that |
367 + | * can be collided with. |
368 + | * |
369 + | * @return <code>true</code> if passable |
370 + | */ |
371 + | boolean isPassable(); |
359 372 | } |