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 Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionTypestatic final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType -
Method Summary
Modifier and TypeMethodDescriptionstatic RegistryEntryReferenceArgumentType<net.minecraft.enchantment.Enchantment> static RegistryEntryReferenceArgumentType<net.minecraft.entity.attribute.EntityAttribute> static RegistryEntryReferenceArgumentType<net.minecraft.entity.EntityType<?>> static net.minecraft.registry.entry.RegistryEntry.Reference<net.minecraft.enchantment.Enchantment> getEnchantment(com.mojang.brigadier.context.CommandContext<?> context, String name) static net.minecraft.registry.entry.RegistryEntry.Reference<net.minecraft.entity.attribute.EntityAttribute> getEntityAttribute(com.mojang.brigadier.context.CommandContext<?> context, String name) static net.minecraft.registry.entry.RegistryEntry.Reference<net.minecraft.entity.EntityType<?>> getEntityType(com.mojang.brigadier.context.CommandContext<?> context, String name) static net.minecraft.registry.entry.RegistryEntry.Reference<net.minecraft.entity.effect.StatusEffect> getStatusEffect(com.mojang.brigadier.context.CommandContext<?> context, String name) static net.minecraft.registry.entry.RegistryEntry.Reference<net.minecraft.world.gen.structure.Structure> getStructure(com.mojang.brigadier.context.CommandContext<?> context, String name) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) net.minecraft.registry.entry.RegistryEntry.Reference<T> parse(com.mojang.brigadier.StringReader reader) static RegistryEntryReferenceArgumentType<net.minecraft.entity.effect.StatusEffect> static RegistryEntryReferenceArgumentType<net.minecraft.world.gen.structure.Structure> Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
parse
-
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
-
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:
parsein interfacecom.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:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<T>
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<T>
-