mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Add @Nullable to NbtValued methods.
This commit is contained in:
parent
b751cbe1ee
commit
759c6ba50d
@ -20,7 +20,8 @@
|
|||||||
package com.sk89q.worldedit.world;
|
package com.sk89q.worldedit.world;
|
||||||
|
|
||||||
import com.sk89q.jnbt.CompoundTag;
|
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
|
* 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
|
* @return compound tag, or null
|
||||||
*/
|
*/
|
||||||
|
@Nullable
|
||||||
CompoundTag getNbtData();
|
CompoundTag getNbtData();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -55,6 +57,6 @@ public interface NbtValued {
|
|||||||
* @param nbtData NBT data, or null if no data
|
* @param nbtData NBT data, or null if no data
|
||||||
* @throws DataException if possibly the data is invalid
|
* @throws DataException if possibly the data is invalid
|
||||||
*/
|
*/
|
||||||
void setNbtData(CompoundTag nbtData) throws DataException;
|
void setNbtData(@Nullable CompoundTag nbtData) throws DataException;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user