All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minestom.server.command.builder.arguments.minecraft.ArgumentFloatRange Maven / Gradle / Ivy

There is a newer version: 7320437640
Show newest version
package net.minestom.server.command.builder.arguments.minecraft;

import net.minestom.server.utils.math.FloatRange;

/**
 * Represents an argument which will give you an {@link FloatRange}.
 * 

* Example: ..3, 3.., 5..10, 15 */ public class ArgumentFloatRange extends ArgumentRange { public ArgumentFloatRange(String id) { super(id, -Float.MAX_VALUE, Float.MAX_VALUE, Float::parseFloat, FloatRange::new); } @Override public String parser() { return "minecraft:float_range"; } @Override public String toString() { return String.format("FloatRange<%s>", getId()); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy