Skip to content

Commit 4585b58

Browse files
committed
Add getValue and setValue methods to StringTag
1 parent 65028b9 commit 4585b58

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎src/main/java/org/glavo/nbt/tag/StringTag.java‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,21 @@ public String get() {
4747
return value;
4848
}
4949

50+
@Override
51+
public String getValue() {
52+
return value;
53+
}
54+
5055
/// Sets the value of the tag.
5156
public void set(String value) {
5257
this.value = Objects.requireNonNull(value);
5358
}
5459

60+
@Override
61+
public void setValue(String value) {
62+
this.value = value;
63+
}
64+
5565
@Override
5666
protected void readContent(NBTReader reader) throws IOException {
5767
set(reader.readString());

0 commit comments

Comments
 (0)