Interface IEntityReward

All Superinterfaces:
IAbstractReward<IEntityReward.Type>, net.minecraft.world.level.storage.loot.LootContextUser
All Known Subinterfaces:
IPlayerReward, ISimpleEntityReward, IWrappedEntityReward<REWARD>
All Known Implementing Classes:
AllTeamsPlayerReward, GrantAdvancementPlayerReward, GrantExperiencePlayerReward, UnlockTradeEntityReward, VillagerGossipEntityReward

@ParametersAreNonnullByDefault public interface IEntityReward extends IAbstractReward<IEntityReward.Type>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<IEntityReward>
     
    static final com.mojang.serialization.Codec<IEntityReward>
    Use CODEC instead.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    reward(net.minecraft.world.entity.Entity entity, 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
  • Field Details

    • TYPED_CODEC

      static final com.mojang.serialization.Codec<IEntityReward> TYPED_CODEC
      Use CODEC instead.
    • CODEC

      static final com.mojang.serialization.Codec<IEntityReward> CODEC
  • Method Details

    • reward

      boolean reward(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.storage.loot.LootContext context, float multiplier, boolean simulate)