We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9fbbde commit 7515c28Copy full SHA for 7515c28
1 file changed
src/main/java/org/glavo/nbt/tag/ListTag.java
@@ -111,6 +111,8 @@ public void setElementType(@Nullable TagType elementType) throws IllegalStateExc
111
/// {@inheritDoc}
112
///
113
/// The name of the tag will be set to empty.
114
+ ///
115
+ /// @throws IllegalArgumentException if the type of the tag is not the same as the element type of this list.
116
@Override
117
public void add(T tag) {
118
if (tag.getType() != elementType) {
0 commit comments