net.minestom.server.command.builder.arguments.number.ArgumentLong 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.network.NetworkBuffer;
public class ArgumentLong extends ArgumentNumber {
public ArgumentLong(String id) {
super(id, "brigadier:long", Long::parseLong, Long::parseLong,
NetworkBuffer.LONG, Long::compare);
}
@Override
public String toString() {
return String.format("Long<%s>", getId());
}
}