mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Add NotNull annotation to adapter
This commit is contained in:
parent
c5b90ba954
commit
664a7017b6
@ -51,6 +51,7 @@ import org.bukkit.block.Biome;
|
|||||||
import org.bukkit.block.data.BlockData;
|
import org.bukkit.block.data.BlockData;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adapts between Bukkit and WorldEdit equivalent objects.
|
* Adapts between Bukkit and WorldEdit equivalent objects.
|
||||||
@ -199,7 +200,7 @@ public enum BukkitAdapter {
|
|||||||
* @param blockType The WorldEdit BlockType
|
* @param blockType The WorldEdit BlockType
|
||||||
* @return The Bukkit Material
|
* @return The Bukkit Material
|
||||||
*/
|
*/
|
||||||
public static Material adapt(BlockType blockType) {
|
public static Material adapt(@NotNull BlockType blockType) {
|
||||||
return getAdapter().adapt(blockType);
|
return getAdapter().adapt(blockType);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -248,7 +249,7 @@ public enum BukkitAdapter {
|
|||||||
* @param material The material
|
* @param material The material
|
||||||
* @return The blocktype
|
* @return The blocktype
|
||||||
*/
|
*/
|
||||||
public static BlockType asBlockType(Material material) {
|
public static BlockType asBlockType(@NotNull Material material) {
|
||||||
return getAdapter().asBlockType(material);
|
return getAdapter().asBlockType(material);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -270,7 +271,7 @@ public enum BukkitAdapter {
|
|||||||
* @param blockData The Bukkit BlockData
|
* @param blockData The Bukkit BlockData
|
||||||
* @return The WorldEdit BlockState
|
* @return The WorldEdit BlockState
|
||||||
*/
|
*/
|
||||||
public static BlockState adapt(BlockData blockData) {
|
public static BlockState adapt(@NotNull BlockData blockData) {
|
||||||
return getAdapter().adapt(blockData);
|
return getAdapter().adapt(blockData);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -284,7 +285,7 @@ public enum BukkitAdapter {
|
|||||||
* @param block The WorldEdit BlockStateHolder
|
* @param block The WorldEdit BlockStateHolder
|
||||||
* @return The Bukkit BlockData
|
* @return The Bukkit BlockData
|
||||||
*/
|
*/
|
||||||
public static BlockData adapt(BlockStateHolder block) {
|
public static BlockData adapt(@NotNull BlockStateHolder block) {
|
||||||
return getAdapter().adapt(block);
|
return getAdapter().adapt(block);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user