![JAR search and dependency download from the Maven repository](/logo.png)
net.minestom.server.command.builder.arguments.number.ArgumentDouble Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of minestom-snapshots Show documentation
Show all versions of minestom-snapshots Show documentation
1.20.4 Lightweight Minecraft server
package net.minestom.server.command.builder.arguments.number;
import net.minestom.server.utils.binary.BinaryWriter;
public class ArgumentDouble extends ArgumentNumber {
public ArgumentDouble(String id) {
super(id, "brigadier:double", Double::parseDouble, ((s, radix) -> (double) Long.parseLong(s, radix)), BinaryWriter::writeDouble, Double::compare);
}
@Override
public String toString() {
return String.format("Double<%s>", getId());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy