Package net.minecraft.command.argument
Interface DecoratableArgumentType<T>
- All Superinterfaces:
com.mojang.brigadier.arguments.ArgumentType<T>
- All Known Subinterfaces:
SignedArgumentType<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 Summary
Modifier and TypeMethodDescriptiondefault @Nullable CompletableFuture<Text>
decorate
(ServerCommandSource source, com.mojang.brigadier.context.ParsedArgument<ServerCommandSource, ?> parsedValue) decorate
(ServerCommandSource source, T format) Methods inherited from interface com.mojang.brigadier.arguments.ArgumentType
getExamples, listSuggestions, parse
-
Method Details
-
decorate
@Nullable default @Nullable CompletableFuture<Text> decorate(ServerCommandSource source, com.mojang.brigadier.context.ParsedArgument<ServerCommandSource, ?> parsedValue) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Len;a(Ldr;Lcom/mojang/brigadier/context/ParsedArgument;)Ljava/util/concurrent/CompletableFuture;
intermediary method_44282
Lnet/minecraft/class_7517;method_44282(Lnet/minecraft/class_2168;Lcom/mojang/brigadier/context/ParsedArgument;)Ljava/util/concurrent/CompletableFuture;
named decorate
Lnet/minecraft/command/argument/DecoratableArgumentType;decorate(Lnet/minecraft/server/command/ServerCommandSource;Lcom/mojang/brigadier/context/ParsedArgument;)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
- 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;
-