Skip to content

Commit 096c2de

Browse files
committed
Convert CompoundTagSchema to record
1 parent 3a830e5 commit 096c2de

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/main/java/org/glavo/nbt/internal/schema/CompoundTagSchema.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,7 @@
2828
import java.util.List;
2929
import java.util.Objects;
3030

31-
public final class CompoundTagSchema implements TagSchema<CompoundTag> {
32-
private final @Unmodifiable List<SchemaEntry> entries;
33-
34-
public CompoundTagSchema(@Unmodifiable List<SchemaEntry> entries) {
35-
this.entries = entries;
36-
}
31+
public record CompoundTagSchema(@Unmodifiable List<SchemaEntry> entries) implements TagSchema<CompoundTag> {
3732

3833
@Override
3934
public boolean testTag(Tag tag) {

0 commit comments

Comments
 (0)