mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +00:00
Added BlockType.redstone SOMETHING.
This commit is contained in:
parent
4488bb8091
commit
b7cfdf2ef4
@ -433,6 +433,24 @@ public enum BlockType {
|
|||||||
|| id == 54; // Chest
|
|| id == 54; // Chest
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if a block uses redstone in some way.
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static boolean isRedstoneBlock(int id) {
|
||||||
|
return id == 69 // Lever
|
||||||
|
|| id == 70 // Stone pressure plate
|
||||||
|
|| id == 72 // Wood pressure plate
|
||||||
|
|| id == 76 // Redstone torch
|
||||||
|
|| id == 75 // Redstone torch
|
||||||
|
|| id == 77 // Stone button
|
||||||
|
|| id == 55 // Redstone wire
|
||||||
|
|| id == 64 // Wooden door
|
||||||
|
|| id == 71; // Iron door
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
|
||||||
|
Loading…
Reference in New Issue
Block a user