aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/util
diff options
context:
space:
mode:
authorTimeConqueror <timeconqueror999@gmail.com>2021-07-15 18:29:26 +0300
committerTimeConqueror <timeconqueror999@gmail.com>2021-07-15 18:30:11 +0300
commit86c442947a6778e66b761cb2cee7a88782eb363a (patch)
tree9dcf5502ba33840519f821c83a76f344c9db36a4 /src/main/java/gregtech/api/util
parent77f22e029303ba48f9aabad32367e500bdcefee3 (diff)
downloadGT5-Unofficial-86c442947a6778e66b761cb2cee7a88782eb363a.tar.gz
GT5-Unofficial-86c442947a6778e66b761cb2cee7a88782eb363a.tar.bz2
GT5-Unofficial-86c442947a6778e66b761cb2cee7a88782eb363a.zip
Removed useless method callings
Diffstat (limited to 'src/main/java/gregtech/api/util')
-rw-r--r--src/main/java/gregtech/api/util/GT_Utility.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/gregtech/api/util/GT_Utility.java b/src/main/java/gregtech/api/util/GT_Utility.java
index 8e839c8ba0..165ff71927 100644
--- a/src/main/java/gregtech/api/util/GT_Utility.java
+++ b/src/main/java/gregtech/api/util/GT_Utility.java
@@ -1286,6 +1286,7 @@ public class GT_Utility {
return rList;
}
+ @Deprecated // why do you use Objects?
public static Block getBlock(Object aBlock) {
return (Block) aBlock;
}
@@ -1299,12 +1300,14 @@ public class GT_Utility {
return Block.getBlockFromItem(item);
}
+ @Deprecated // why do you use Objects? And if you want to check your block to be not null, check it directly!
public static boolean isBlockValid(Object aBlock) {
return (aBlock instanceof Block);
}
+ @Deprecated // why do you use Objects? And if you want to check your block to be null, check it directly!
public static boolean isBlockInvalid(Object aBlock) {
- return aBlock == null || !(aBlock instanceof Block);
+ return !(aBlock instanceof Block);
}
public static boolean isStringValid(Object aString) {