Interface DecoratableArgumentType<T>

All Superinterfaces:
com.mojang.brigadier.arguments.ArgumentType<T>
All Known Subinterfaces:
TextConvertibleArgumentType<T>
All Known Implementing Classes:
MessageArgumentType

public interface DecoratableArgumentType<T> extends com.mojang.brigadier.arguments.ArgumentType<T>
Mappings:
Namespace Name
official en
intermediary net/minecraft/class_7517
named net/minecraft/command/argument/DecoratableArgumentType
  • Method Details

    • decorate

      @Nullable static @Nullable CompletableFuture<Text> decorate(com.mojang.brigadier.tree.ArgumentCommandNode<?,?> node, com.mojang.brigadier.context.CommandContextBuilder<ServerCommandSource> builder) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Len;a(Lcom/mojang/brigadier/tree/ArgumentCommandNode;Lcom/mojang/brigadier/context/CommandContextBuilder;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_44283 Lnet/minecraft/class_7517;method_44283(Lcom/mojang/brigadier/tree/ArgumentCommandNode;Lcom/mojang/brigadier/context/CommandContextBuilder;)Ljava/util/concurrent/CompletableFuture;
      named decorate Lnet/minecraft/command/argument/DecoratableArgumentType;decorate(Lcom/mojang/brigadier/tree/ArgumentCommandNode;Lcom/mojang/brigadier/context/CommandContextBuilder;)Ljava/util/concurrent/CompletableFuture;
    • isDecoratableArgumentNode

      static boolean isDecoratableArgumentNode(com.mojang.brigadier.tree.CommandNode<?> node)
      Mappings:
      Namespace Name Mixin selector
      official a Len;a(Lcom/mojang/brigadier/tree/CommandNode;)Z
      intermediary method_44284 Lnet/minecraft/class_7517;method_44284(Lcom/mojang/brigadier/tree/CommandNode;)Z
      named isDecoratableArgumentNode Lnet/minecraft/command/argument/DecoratableArgumentType;isDecoratableArgumentNode(Lcom/mojang/brigadier/tree/CommandNode;)Z
    • decorate

      @Nullable default @Nullable CompletableFuture<Text> decorate(com.mojang.brigadier.context.CommandContextBuilder<ServerCommandSource> builder, String argumentName) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Len;a(Lcom/mojang/brigadier/context/CommandContextBuilder;Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_44282 Lnet/minecraft/class_7517;method_44282(Lcom/mojang/brigadier/context/CommandContextBuilder;Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;
      named decorate Lnet/minecraft/command/argument/DecoratableArgumentType;decorate(Lcom/mojang/brigadier/context/CommandContextBuilder;Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;
    • decorate

      CompletableFuture<Text> decorate(ServerCommandSource source, T format) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Len;a(Ldr;Ljava/lang/Object;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_44258 Lnet/minecraft/class_7517;method_44258(Lnet/minecraft/class_2168;Ljava/lang/Object;)Ljava/util/concurrent/CompletableFuture;
      named decorate Lnet/minecraft/command/argument/DecoratableArgumentType;decorate(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/Object;)Ljava/util/concurrent/CompletableFuture;
    • getFormatClass

      Class<T> getFormatClass()
      Mappings:
      Namespace Name Mixin selector
      official b Len;b()Ljava/lang/Class;
      intermediary method_44261 Lnet/minecraft/class_7517;method_44261()Ljava/lang/Class;
      named getFormatClass Lnet/minecraft/command/argument/DecoratableArgumentType;getFormatClass()Ljava/lang/Class;