mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-16 17:16:11 +00:00
Avoid redundant check for performance critical code
This commit is contained in:
parent
58c6b6278f
commit
d6280ec945
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user