We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a830e5 commit 096c2deCopy full SHA for 096c2de
1 file changed
src/main/java/org/glavo/nbt/internal/schema/CompoundTagSchema.java
@@ -28,12 +28,7 @@
28
import java.util.List;
29
import java.util.Objects;
30
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
- }
+public record CompoundTagSchema(@Unmodifiable List<SchemaEntry> entries) implements TagSchema<CompoundTag> {
37
38
@Override
39
public boolean testTag(Tag tag) {
0 commit comments