Interface IWrappedReward<REWARD extends IAbstractReward<?>>

All Superinterfaces:
IAbstractReward<IReward.Type>, IReward, net.minecraft.world.level.storage.loot.LootContextUser
All Known Implementing Classes:
ContextEntityReward, ContextTeamReward

@ParametersAreNonnullByDefault public interface IWrappedReward<REWARD extends IAbstractReward<?>> extends IReward
  • Nested Class Summary

    Nested classes/interfaces inherited from interface petrolpark.mc.library.core.data.reward.IReward

    IReward.Type
  • Field Summary

    Fields inherited from interface petrolpark.mc.library.core.data.reward.IReward

    CODEC, DIRECT_CODEC, SET_CODEC, TYPED_CODEC
  • Method Summary

    Modifier and Type
    Method
    Description
    default IRewardInfo
    Deprecated.
    net.minecraft.core.Holder<REWARD>
     
    default void
    validate(net.minecraft.world.level.storage.loot.ValidationContext context)
     
     

    Methods inherited from interface petrolpark.mc.library.core.data.reward.IAbstractReward

    getType

    Methods inherited from interface petrolpark.mc.library.core.data.reward.IReward

    reward

    Methods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser

    getReferencedContextParams
  • Method Details

    • rewardHolder

      net.minecraft.core.Holder<REWARD> rewardHolder()
    • wrapInfo

      IRewardInfo wrapInfo(IRewardInfo info)
    • info

      @NonExtendable @Deprecated default IRewardInfo info()
      Deprecated.
      Specified by:
      info in interface IAbstractReward<REWARD extends IAbstractReward<?>>
    • validate

      default void validate(net.minecraft.world.level.storage.loot.ValidationContext context)
      Specified by:
      validate in interface net.minecraft.world.level.storage.loot.LootContextUser