Interface IEntityReward

All Superinterfaces:
ITypedReward<EntityRewardType>, net.minecraft.world.level.storage.loot.LootContextUser
All Known Subinterfaces:
IPlayerReward
All Known Implementing Classes:
AbstractGiveItemsEntityReward, AllTeamsPlayerReward, GiveItemEntityReward, GiveLootEntityReward, GrantExperiencePlayerReward, UnlockTradeEntityReward, VillagerGossipEntityReward

public interface IEntityReward extends ITypedReward<EntityRewardType>
  • 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
    void
    reward(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.storage.loot.LootContext context, float multiplier)
     

    Methods inherited from interface com.petrolpark.core.data.reward.ITypedReward

    addToDescription, getType, render, translate, translateSimple

    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

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