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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<IEntityReward> static final com.mojang.serialization.Codec<IEntityReward> UseCODECinstead. -
Method Summary
Modifier and TypeMethodDescriptionvoidreward(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, translateSimpleMethods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams, validate
-
Field Details
-
TYPED_CODEC
UseCODECinstead. -
CODEC
-
-
Method Details
-
reward
void reward(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.storage.loot.LootContext context, float multiplier)
-