Interface IReward
- All Superinterfaces:
IAbstractReward<IReward.Type>,net.minecraft.world.level.storage.loot.LootContextUser
- All Known Subinterfaces:
ISimpleReward,IWrappedReward<REWARD>
- All Known Implementing Classes:
AbstractGiveItemsReward,ContextEntityReward,ContextTeamReward,GiveItemReward,GiveLootReward
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<net.minecraft.core.Holder<IReward>> static final com.mojang.serialization.Codec<IReward> static final com.mojang.serialization.Codec<net.minecraft.core.HolderSet<IReward>> static final com.mojang.serialization.Codec<IReward> UseDIRECT_CODECinstead. -
Method Summary
Modifier and TypeMethodDescriptionbooleanreward(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
UseDIRECT_CODECinstead. -
DIRECT_CODEC
-
CODEC
-
SET_CODEC
-
-
Method Details
-
reward
boolean reward(net.minecraft.world.level.storage.loot.LootContext context, float multiplier, boolean simulate)
-