Interface IPlayerReward

All Superinterfaces:
IAbstractReward<IEntityReward.Type>, IEntityReward, net.minecraft.world.level.storage.loot.LootContextUser
All Known Implementing Classes:
AllTeamsPlayerReward, GrantAdvancementPlayerReward, GrantExperiencePlayerReward

@ParametersAreNonnullByDefault public interface IPlayerReward extends IEntityReward
  • Nested Class Summary

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

    IEntityReward.Type
  • Field Summary

    Fields inherited from interface petrolpark.mc.library.core.data.reward.entity.IEntityReward

    CODEC, TYPED_CODEC
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    reward(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.storage.loot.LootContext context, float multiplier, boolean simulate)
    boolean
    rewardPlayer(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.level.storage.loot.LootContext context, float multiplier, boolean simulate)
     

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

    getType, info

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

    getReferencedContextParams, validate