SPIGOT-2540: Add nullability annotations to entire Bukkit API
By: Darkyenus <darkyenus@gmail.com>
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package org.bukkit.entity;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* Represents a Parrot.
|
||||
*/
|
||||
@@ -10,6 +12,7 @@ public interface Parrot extends Animals, Tameable, Sittable {
|
||||
*
|
||||
* @return parrot variant
|
||||
*/
|
||||
@NotNull
|
||||
public Variant getVariant();
|
||||
|
||||
/**
|
||||
@@ -17,7 +20,7 @@ public interface Parrot extends Animals, Tameable, Sittable {
|
||||
*
|
||||
* @param variant parrot variant
|
||||
*/
|
||||
public void setVariant(Variant variant);
|
||||
public void setVariant(@NotNull Variant variant);
|
||||
|
||||
/**
|
||||
* Represents the variant of a parrot - ie its color.
|
||||
|
||||
Reference in New Issue
Block a user