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

@@ -1,6 +1,7 @@
package org.bukkit.entity;
import org.bukkit.DyeColor;
import org.jetbrains.annotations.NotNull;
/**
* Tropical fish.
@@ -12,6 +13,7 @@ public interface TropicalFish extends Fish {
*
* @return pattern color
*/
@NotNull
DyeColor getPatternColor();
/**
@@ -19,13 +21,14 @@ public interface TropicalFish extends Fish {
*
* @param color pattern color
*/
void setPatternColor(DyeColor color);
void setPatternColor(@NotNull DyeColor color);
/**
* Gets the color of the fish's body.
*
* @return pattern color
*/
@NotNull
DyeColor getBodyColor();
/**
@@ -33,13 +36,14 @@ public interface TropicalFish extends Fish {
*
* @param color body color
*/
void setBodyColor(DyeColor color);
void setBodyColor(@NotNull DyeColor color);
/**
* Gets the fish's pattern.
*
* @return pattern
*/
@NotNull
Pattern getPattern();
/**
@@ -47,7 +51,7 @@ public interface TropicalFish extends Fish {
*
* @param pattern new pattern
*/
void setPattern(Pattern pattern);
void setPattern(@NotNull Pattern pattern);
/**
* Enumeration of all different fish patterns. Refer to the