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,5 +1,7 @@
package org.bukkit.entity;
import org.jetbrains.annotations.Nullable;
import java.util.UUID;
/**
@@ -13,6 +15,7 @@ public interface Animals extends Ageable {
*
* @return uuid if set, or null
*/
@Nullable
UUID getBreedCause();
/**
@@ -21,7 +24,7 @@ public interface Animals extends Ageable {
*
* @param uuid new uuid, or null
*/
void setBreedCause(UUID uuid);
void setBreedCause(@Nullable UUID uuid);
/**
* Get whether or not this entity is in love mode and will produce