Class RewardCommand.RewardArgument

java.lang.Object
net.minecraft.commands.arguments.ResourceOrIdArgument<IReward>
petrolpark.mc.library.core.data.reward.RewardCommand.RewardArgument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<net.minecraft.core.Holder<IReward>>
Enclosing class:
RewardCommand

public static class RewardCommand.RewardArgument extends net.minecraft.commands.arguments.ResourceOrIdArgument<IReward>
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.commands.arguments.ResourceOrIdArgument

    net.minecraft.commands.arguments.ResourceOrIdArgument.LootModifierArgument, net.minecraft.commands.arguments.ResourceOrIdArgument.LootPredicateArgument, net.minecraft.commands.arguments.ResourceOrIdArgument.LootTableArgument
  • Field Summary

    Fields inherited from class net.minecraft.commands.arguments.ResourceOrIdArgument

    ERROR_FAILED_TO_PARSE
  • Constructor Summary

    Constructors
    Constructor
    Description
    RewardArgument(net.minecraft.commands.CommandBuildContext registryLookup)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.core.Holder<IReward>
    getReward(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context, String name)
     

    Methods inherited from class net.minecraft.commands.arguments.ResourceOrIdArgument

    getExamples, getLootModifier, getLootPredicate, getLootTable, lootModifier, lootPredicate, lootTable, parse

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.mojang.brigadier.arguments.ArgumentType

    listSuggestions, parse
  • Constructor Details

    • RewardArgument

      public RewardArgument(net.minecraft.commands.CommandBuildContext registryLookup)
  • Method Details

    • getReward

      public static net.minecraft.core.Holder<IReward> getReward(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context, String name)