mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-01 21:11:33 +01:00
Cleanup
This commit is contained in:
parent
c6cafb19a4
commit
1146d50f24
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user