mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +00:00
Added yet another method to BlockType (rails)
This commit is contained in:
parent
9f86c99a28
commit
e2c17cbf46
@ -520,6 +520,18 @@ public enum BlockType {
|
||||
|| 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
|
||||
* dropped, 0 will be returned. If the block should not be destroyed
|
||||
|
Loading…
Reference in New Issue
Block a user