mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-02 10:57:11 +00:00
Fixed some javadocs and deprecated isNaturalTerrainBlock(int).
This commit is contained in:
parent
7b539dade6
commit
b3f2c10f79
@ -1029,9 +1029,11 @@ public enum BlockType {
|
||||
/**
|
||||
* Checks if the block type is naturally occuring
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
* @param id ID of the block
|
||||
* @return true if the block type is naturally occuring
|
||||
* @deprecated Use {@link #isNaturalTerrainBlock(int, int)}
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean isNaturalTerrainBlock(int id) {
|
||||
return isNaturalTerrainBlock.contains(id);
|
||||
}
|
||||
@ -1039,8 +1041,9 @@ public enum BlockType {
|
||||
/**
|
||||
* Checks if the block type is naturally occuring
|
||||
*
|
||||
* @param block
|
||||
* @return
|
||||
* @param id ID of the block
|
||||
* @param data Data value of the block
|
||||
* @return true if the block type is naturally occuring
|
||||
*/
|
||||
public static boolean isNaturalTerrainBlock(int id, int data) {
|
||||
return isNaturalTerrainBlock.contains(-16*id-data) || isNaturalTerrainBlock.contains(id);
|
||||
@ -1049,8 +1052,8 @@ public enum BlockType {
|
||||
/**
|
||||
* Checks if the block type is naturally occuring
|
||||
*
|
||||
* @param block
|
||||
* @return
|
||||
* @param block The block
|
||||
* @return true if the block type is naturally occuring
|
||||
*/
|
||||
public static boolean isNaturalTerrainBlock(Block block) {
|
||||
return isNaturalTerrainBlock(block.getId(), block.getData());
|
||||
@ -1059,7 +1062,7 @@ public enum BlockType {
|
||||
/**
|
||||
* Checks if the block type is naturally occuring
|
||||
*
|
||||
* @return
|
||||
* @return true if the block type is naturally occuring
|
||||
*/
|
||||
public boolean isNaturalTerrainBlock() {
|
||||
return isNaturalTerrainBlock.contains(id);
|
||||
|
Loading…
Reference in New Issue
Block a user