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

personthecat.catlib.command.arguments.ArgumentDescriptor Maven / Gradle / Ivy

package personthecat.catlib.command.arguments;

import com.mojang.brigadier.arguments.ArgumentType;
import com.mojang.brigadier.suggestion.SuggestionProvider;
import lombok.AllArgsConstructor;
import lombok.Value;
import net.minecraft.class_2168;
import org.jetbrains.annotations.Nullable;

@Value
@AllArgsConstructor
public class ArgumentDescriptor {
    public static final ArgumentDescriptor LITERAL = new ArgumentDescriptor<>(null);

    ArgumentType type;
    @Nullable SuggestionProvider suggestions;

    public ArgumentDescriptor(final ArgumentType type) {
        this(type, null);
    }

    public boolean isLiteral() {
        return this.type == null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy