mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-14 19:43:49 +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
|
* Checks if the block type is naturally occuring
|
||||||
*
|
*
|
||||||
* @param id
|
* @param id ID of the block
|
||||||
* @return
|
* @return true if the block type is naturally occuring
|
||||||
|
* @deprecated Use {@link #isNaturalTerrainBlock(int, int)}
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public static boolean isNaturalTerrainBlock(int id) {
|
public static boolean isNaturalTerrainBlock(int id) {
|
||||||
return isNaturalTerrainBlock.contains(id);
|
return isNaturalTerrainBlock.contains(id);
|
||||||
}
|
}
|
||||||
@ -1039,8 +1041,9 @@ public enum BlockType {
|
|||||||
/**
|
/**
|
||||||
* Checks if the block type is naturally occuring
|
* Checks if the block type is naturally occuring
|
||||||
*
|
*
|
||||||
* @param block
|
* @param id ID of the block
|
||||||
* @return
|
* @param data Data value of the block
|
||||||
|
* @return true if the block type is naturally occuring
|
||||||
*/
|
*/
|
||||||
public static boolean isNaturalTerrainBlock(int id, int data) {
|
public static boolean isNaturalTerrainBlock(int id, int data) {
|
||||||
return isNaturalTerrainBlock.contains(-16*id-data) || isNaturalTerrainBlock.contains(id);
|
return isNaturalTerrainBlock.contains(-16*id-data) || isNaturalTerrainBlock.contains(id);
|
||||||
@ -1049,8 +1052,8 @@ public enum BlockType {
|
|||||||
/**
|
/**
|
||||||
* Checks if the block type is naturally occuring
|
* Checks if the block type is naturally occuring
|
||||||
*
|
*
|
||||||
* @param block
|
* @param block The block
|
||||||
* @return
|
* @return true if the block type is naturally occuring
|
||||||
*/
|
*/
|
||||||
public static boolean isNaturalTerrainBlock(Block block) {
|
public static boolean isNaturalTerrainBlock(Block block) {
|
||||||
return isNaturalTerrainBlock(block.getId(), block.getData());
|
return isNaturalTerrainBlock(block.getId(), block.getData());
|
||||||
@ -1059,7 +1062,7 @@ public enum BlockType {
|
|||||||
/**
|
/**
|
||||||
* Checks if the block type is naturally occuring
|
* Checks if the block type is naturally occuring
|
||||||
*
|
*
|
||||||
* @return
|
* @return true if the block type is naturally occuring
|
||||||
*/
|
*/
|
||||||
public boolean isNaturalTerrainBlock() {
|
public boolean isNaturalTerrainBlock() {
|
||||||
return isNaturalTerrainBlock.contains(id);
|
return isNaturalTerrainBlock.contains(id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user