This commit is contained in:
themode 2021-02-02 21:14:01 +01:00
parent c6cafb19a4
commit 1146d50f24

View File

@ -236,21 +236,4 @@ public class Metadata {
}
}
/*private static class OptionalValue<T> extends Value<T> {
private OptionalValue(int type, T value, @NotNull Consumer<BinaryWriter> valueWriter) {
super(type, value, valueWriter);
}
@Override
public void write(@NotNull BinaryWriter writer) {
writer.writeVarInt(type);
final boolean present = value != null;
writer.writeBoolean(present);
if (present) {
this.valueWriter.accept(writer);
}
}
}*/
}