SPIGOT-2540: Add nullability annotations to entire Bukkit API

By: Darkyenus <darkyenus@gmail.com>
This commit is contained in:
Bukkit/Spigot
2019-03-13 17:42:57 +11:00
parent e069a80fd8
commit 416c865476
565 changed files with 5372 additions and 2008 deletions

View File

@@ -2,6 +2,7 @@ package org.bukkit;
import org.bukkit.block.Biome;
import org.bukkit.block.data.BlockData;
import org.jetbrains.annotations.NotNull;
/**
* Represents a static, thread-safe snapshot of chunk of blocks.
@@ -30,6 +31,7 @@ public interface ChunkSnapshot {
*
* @return Parent World Name
*/
@NotNull
String getWorldName();
/**
@@ -40,6 +42,7 @@ public interface ChunkSnapshot {
* @param z 0-15
* @return block material type
*/
@NotNull
Material getBlockType(int x, int y, int z);
/**
@@ -50,6 +53,7 @@ public interface ChunkSnapshot {
* @param z 0-15
* @return block material type
*/
@NotNull
BlockData getBlockData(int x, int y, int z);
/**
@@ -101,6 +105,7 @@ public interface ChunkSnapshot {
* @param z Z-coordinate (0-15)
* @return Biome at given coordinate
*/
@NotNull
Biome getBiome(int x, int z);
/**