mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 00:22:08 -07:00
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;
|
||||
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public interface Nameable {
|
||||
|
||||
/**
|
||||
@@ -11,6 +13,7 @@ public interface Nameable {
|
||||
*
|
||||
* @return name of the mob/block or null
|
||||
*/
|
||||
@Nullable
|
||||
public String getCustomName();
|
||||
|
||||
/**
|
||||
@@ -24,5 +27,5 @@ public interface Nameable {
|
||||
*
|
||||
* @param name the name to set
|
||||
*/
|
||||
public void setCustomName(String name);
|
||||
public void setCustomName(@Nullable String name);
|
||||
}
|
||||
|
Reference in New Issue
Block a user