mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-07 16:57:42 +01:00
SPIGOT-204: Add way to set block type without using IDs or updating physics.
By: md_5 <git@md-5.net>
This commit is contained in:
parent
998351b4f7
commit
34d9beba8f
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user