Class EntityAnchorArgument.Builder<C>

java.lang.Object
cloud.commandframework.arguments.CommandArgument.Builder<C,T>
cloud.commandframework.arguments.CommandArgument.TypedBuilder<C,net.minecraft.commands.arguments.EntityAnchorArgument.Anchor,EntityAnchorArgument.Builder<C>>
cloud.commandframework.fabric.argument.EntityAnchorArgument.Builder<C>
Type Parameters:
C - sender type
Enclosing class:
EntityAnchorArgument<C>

public static final class EntityAnchorArgument.Builder<C> extends cloud.commandframework.arguments.CommandArgument.TypedBuilder<C,net.minecraft.commands.arguments.EntityAnchorArgument.Anchor,EntityAnchorArgument.Builder<C>>
Since:
1.5.0
  • Method Summary

    Modifier and Type
    Method
    Description
    asOptionalWithDefault(@NonNull net.minecraft.commands.arguments.EntityAnchorArgument.Anchor defaultValue)
    Sets the command argument to be optional, with the specified default value.

    Methods inherited from class cloud.commandframework.arguments.CommandArgument.TypedBuilder

    asOptional, asOptionalWithDefault, asRequired, manager, self, withParser, withSuggestionsProvider

    Methods inherited from class cloud.commandframework.arguments.CommandArgument.Builder

    getDefaultDescription, getDefaultValue, getName, getParser, getSuggestionsProvider, getValueType, isRequired, withDefaultDescription

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • build

      public @NonNull EntityAnchorArgument<C> build()
      Overrides:
      build in class cloud.commandframework.arguments.CommandArgument.Builder<C,net.minecraft.commands.arguments.EntityAnchorArgument.Anchor>
      Returns:
      Constructed argument
      Since:
      1.5.0
    • asOptionalWithDefault

      public @NonNull EntityAnchorArgument.Builder<C> asOptionalWithDefault(@NonNull net.minecraft.commands.arguments.EntityAnchorArgument.Anchor defaultValue)
      Sets the command argument to be optional, with the specified default value.
      Parameters:
      defaultValue - default value
      Returns:
      this builder
      Since:
      1.5.0
      See Also:
      • CommandArgument.Builder.asOptionalWithDefault(String)