Fix more incorrect array nullability annotations (#11836)

This commit is contained in:
Jake Potrebic
2024-12-27 13:24:16 -08:00
committed by GitHub
parent 13c94e40ad
commit ca8709b30f
27 changed files with 61 additions and 77 deletions
@@ -133,8 +133,7 @@ public interface Chunk extends PersistentDataHolder {
*
* @return The entities.
*/
@NotNull
Entity[] getEntities();
@NotNull Entity @NotNull [] getEntities();
/**
* Get a list of all tile entities in the chunk.
@@ -143,7 +142,7 @@ public interface Chunk extends PersistentDataHolder {
*/
@NotNull
// Paper start
default BlockState[] getTileEntities() {
default BlockState @NotNull [] getTileEntities() {
return getTileEntities(true);
}
@@ -154,7 +153,7 @@ public interface Chunk extends PersistentDataHolder {
* @return The tile entities.
*/
@NotNull
BlockState[] getTileEntities(boolean useSnapshot);
BlockState @NotNull [] getTileEntities(boolean useSnapshot);
/**
* Get a list of all tile entities that match a given predicate in the chunk.