Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-13 22:50:06 +01:00
Merge pull request #100 from wizjany/master
Added a method to check if a block is a rail
Dieser Commit ist enthalten in:
Commit
fedaf82af9
@ -520,6 +520,18 @@ public enum BlockType {
|
|||||||
|| id == 77; // Button
|
|| id == 77; // Button
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks if the id is that of one of the rail types
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static boolean isRailBlock(int id) {
|
||||||
|
return id == 27 // Powered rail
|
||||||
|
|| id == 28 // Detector rail
|
||||||
|
|| id == 66; // Normal rail
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the block or item that would have been dropped. If nothing is
|
* Get the block or item that would have been dropped. If nothing is
|
||||||
* dropped, 0 will be returned. If the block should not be destroyed
|
* dropped, 0 will be returned. If the block should not be destroyed
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren