Vec3ArgumentType

class Vec3ArgumentType(centerCorrect: Boolean = true) : ArgumentType<Coordinates>

Client shell over the vanilla coordinate parsing (WorldCoordinates.parseDouble / LocalCoordinates.parse). Only position resolution differs from vanilla: the vanilla getters require a server-side net.minecraft.commands.CommandSourceStack, so getPosition resolves against the local player instead.

Constructors

Link copied to clipboard
constructor(centerCorrect: Boolean = true)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val examples: Collection<String>

Functions

Link copied to clipboard
open override fun getExamples(): Collection<String>
Link copied to clipboard
open override fun <S> listSuggestions(context: CommandContext<S>, builder: SuggestionsBuilder): CompletableFuture<Suggestions>
Link copied to clipboard
open fun <S : Any?> parse(reader: StringReader?, source: S?): Coordinates?
open override fun parse(reader: StringReader): Coordinates