Class RegistryEntryReferenceArgumentType<T>

java.lang.Object
meteordevelopment.meteorclient.commands.arguments.RegistryEntryReferenceArgumentType<T>
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<net.minecraft.registry.entry.RegistryEntry.Reference<T>>

public class RegistryEntryReferenceArgumentType<T> extends Object implements com.mojang.brigadier.arguments.ArgumentType<net.minecraft.registry.entry.RegistryEntry.Reference<T>>
  • Field Details

    • NOT_FOUND_EXCEPTION

      public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType NOT_FOUND_EXCEPTION
    • INVALID_TYPE_EXCEPTION

      public static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType INVALID_TYPE_EXCEPTION
  • Method Details

    • enchantment

      public static RegistryEntryReferenceArgumentType<net.minecraft.enchantment.Enchantment> enchantment()
    • entityAttribute

      public static RegistryEntryReferenceArgumentType<net.minecraft.entity.attribute.EntityAttribute> entityAttribute()
    • structure

      public static RegistryEntryReferenceArgumentType<net.minecraft.world.gen.structure.Structure> structure()
    • entityType

      public static RegistryEntryReferenceArgumentType<net.minecraft.entity.EntityType<?>> entityType()
    • statusEffect

      public static RegistryEntryReferenceArgumentType<net.minecraft.entity.effect.StatusEffect> statusEffect()
    • getEnchantment

      public static net.minecraft.registry.entry.RegistryEntry.Reference<net.minecraft.enchantment.Enchantment> getEnchantment(com.mojang.brigadier.context.CommandContext<?> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getEntityAttribute

      public static net.minecraft.registry.entry.RegistryEntry.Reference<net.minecraft.entity.attribute.EntityAttribute> getEntityAttribute(com.mojang.brigadier.context.CommandContext<?> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getStructure

      public static net.minecraft.registry.entry.RegistryEntry.Reference<net.minecraft.world.gen.structure.Structure> getStructure(com.mojang.brigadier.context.CommandContext<?> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getEntityType

      public static net.minecraft.registry.entry.RegistryEntry.Reference<net.minecraft.entity.EntityType<?>> getEntityType(com.mojang.brigadier.context.CommandContext<?> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getStatusEffect

      public static net.minecraft.registry.entry.RegistryEntry.Reference<net.minecraft.entity.effect.StatusEffect> getStatusEffect(com.mojang.brigadier.context.CommandContext<?> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • parse

      public net.minecraft.registry.entry.RegistryEntry.Reference<T> parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<T>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • listSuggestions

      public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<T>
    • getExamples

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<T>