Class RewardCommand.EntityRewardArgument

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

public static class RewardCommand.EntityRewardArgument extends net.minecraft.commands.arguments.ResourceOrIdArgument<IEntityReward>
  • 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
    EntityRewardArgument(net.minecraft.commands.CommandBuildContext registryLookup)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.core.Holder<IEntityReward>
    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

    • EntityRewardArgument

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

    • getReward

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