mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-09-18 21:45:12 +00:00
SPIGOT-204: Add way to set block type without using IDs or updating physics.
This commit is contained in:
parent
63f80e2e7e
commit
d4c3dd53a8
1 changed files with 8 additions and 0 deletions
|
@ -186,6 +186,14 @@ public interface Block extends Metadatable {
|
||||||
*/
|
*/
|
||||||
void setType(Material type);
|
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
|
* Sets the type-id of this block
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue