From 759c6ba50de0e6a489a48997c2472fcb06ae7a0e Mon Sep 17 00:00:00 2001 From: sk89q Date: Sun, 13 Jul 2014 18:15:16 -0700 Subject: [PATCH] Add @Nullable to NbtValued methods. --- src/main/java/com/sk89q/worldedit/world/NbtValued.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/world/NbtValued.java b/src/main/java/com/sk89q/worldedit/world/NbtValued.java index 525744b78..c15c16cf9 100644 --- a/src/main/java/com/sk89q/worldedit/world/NbtValued.java +++ b/src/main/java/com/sk89q/worldedit/world/NbtValued.java @@ -20,7 +20,8 @@ package com.sk89q.worldedit.world; import com.sk89q.jnbt.CompoundTag; -import com.sk89q.worldedit.world.DataException; + +import javax.annotation.Nullable; /** * Indicates an object that contains extra data identified as an NBT structure. This @@ -47,6 +48,7 @@ public interface NbtValued { * * @return compound tag, or null */ + @Nullable CompoundTag getNbtData(); /** @@ -55,6 +57,6 @@ public interface NbtValued { * @param nbtData NBT data, or null if no data * @throws DataException if possibly the data is invalid */ - void setNbtData(CompoundTag nbtData) throws DataException; + void setNbtData(@Nullable CompoundTag nbtData) throws DataException; }