Avoid redundant check for performance critical code

This commit is contained in:
Jesse Boyd 2019-06-29 04:23:51 +10:00
parent 58c6b6278f
commit d6280ec945
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -200,7 +200,6 @@ public enum BukkitAdapter {
* @return The Bukkit Material
*/
public static Material adapt(BlockType blockType) {
checkNotNull(blockType);
return getAdapter().adapt(blockType);
}
@ -250,7 +249,6 @@ public enum BukkitAdapter {
* @return The blocktype
*/
public static BlockType asBlockType(Material material) {
checkNotNull(material);
return getAdapter().asBlockType(material);
}
@ -273,7 +271,6 @@ public enum BukkitAdapter {
* @return The WorldEdit BlockState
*/
public static BlockState adapt(BlockData blockData) {
checkNotNull(blockData);
return getAdapter().adapt(blockData);
}
@ -288,7 +285,6 @@ public enum BukkitAdapter {
* @return The Bukkit BlockData
*/
public static BlockData adapt(BlockStateHolder block) {
checkNotNull(block);
return getAdapter().adapt(block);
}