3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-24 18:10:08 +01:00

Add NotNull annotation to adapter

Dieser Commit ist enthalten in:
Jesse Boyd 2019-06-29 06:28:14 +10:00
Ursprung c5b90ba954
Commit 664a7017b6
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 59F1DE6293AF6E1F

Datei anzeigen

@ -51,6 +51,7 @@ import org.bukkit.block.Biome;
import org.bukkit.block.data.BlockData;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.jetbrains.annotations.NotNull;
/**
* Adapts between Bukkit and WorldEdit equivalent objects.
@ -199,7 +200,7 @@ public enum BukkitAdapter {
* @param blockType The WorldEdit BlockType
* @return The Bukkit Material
*/
public static Material adapt(BlockType blockType) {
public static Material adapt(@NotNull BlockType blockType) {
return getAdapter().adapt(blockType);
}
@ -248,7 +249,7 @@ public enum BukkitAdapter {
* @param material The material
* @return The blocktype
*/
public static BlockType asBlockType(Material material) {
public static BlockType asBlockType(@NotNull Material material) {
return getAdapter().asBlockType(material);
}
@ -270,7 +271,7 @@ public enum BukkitAdapter {
* @param blockData The Bukkit BlockData
* @return The WorldEdit BlockState
*/
public static BlockState adapt(BlockData blockData) {
public static BlockState adapt(@NotNull BlockData blockData) {
return getAdapter().adapt(blockData);
}
@ -284,7 +285,7 @@ public enum BukkitAdapter {
* @param block The WorldEdit BlockStateHolder
* @return The Bukkit BlockData
*/
public static BlockData adapt(BlockStateHolder block) {
public static BlockData adapt(@NotNull BlockStateHolder block) {
return getAdapter().adapt(block);
}