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