SPIGOT-204: Add way to set block type without using IDs or updating physics.

This commit is contained in:
md_5 2014-12-22 19:47:50 +11:00
parent 63f80e2e7e
commit d4c3dd53a8

View file

@ -186,6 +186,14 @@ public interface Block extends Metadatable {
*/
void setType(Material type);
/**
* Sets the type of this block
*
* @param type Material to change this block to
* @param applyPhysics False to cancel physics on the changed block.
*/
void setType(Material type, boolean applyPhysics);
/**
* Sets the type-id of this block
*