mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +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
|
* @return The Bukkit Material
|
||||||
*/
|
*/
|
||||||
public static Material adapt(BlockType blockType) {
|
public static Material adapt(BlockType blockType) {
|
||||||
checkNotNull(blockType);
|
|
||||||
return getAdapter().adapt(blockType);
|
return getAdapter().adapt(blockType);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -250,7 +249,6 @@ public enum BukkitAdapter {
|
|||||||
* @return The blocktype
|
* @return The blocktype
|
||||||
*/
|
*/
|
||||||
public static BlockType asBlockType(Material material) {
|
public static BlockType asBlockType(Material material) {
|
||||||
checkNotNull(material);
|
|
||||||
return getAdapter().asBlockType(material);
|
return getAdapter().asBlockType(material);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -273,7 +271,6 @@ public enum BukkitAdapter {
|
|||||||
* @return The WorldEdit BlockState
|
* @return The WorldEdit BlockState
|
||||||
*/
|
*/
|
||||||
public static BlockState adapt(BlockData blockData) {
|
public static BlockState adapt(BlockData blockData) {
|
||||||
checkNotNull(blockData);
|
|
||||||
return getAdapter().adapt(blockData);
|
return getAdapter().adapt(blockData);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -288,7 +285,6 @@ public enum BukkitAdapter {
|
|||||||
* @return The Bukkit BlockData
|
* @return The Bukkit BlockData
|
||||||
*/
|
*/
|
||||||
public static BlockData adapt(BlockStateHolder block) {
|
public static BlockData adapt(BlockStateHolder block) {
|
||||||
checkNotNull(block);
|
|
||||||
return getAdapter().adapt(block);
|
return getAdapter().adapt(block);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user