Package com.petrolpark.data.reward
Class ContextEntityReward
java.lang.Object
com.petrolpark.data.reward.ContextEntityReward
- All Implemented Interfaces:
IReward,net.minecraft.world.level.storage.loot.LootContextUser
- Direct Known Subclasses:
AbstractGiveEntityItemsReward,GrantExperienceReward,UnlockTradeReward
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet<net.minecraft.world.level.storage.loot.parameters.LootContextParam<?>>abstract voidreward(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.storage.loot.LootContext context, float multiplier) final voidreward(net.minecraft.world.level.storage.loot.LootContext context, float multiplier) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
validate
-
Field Details
-
target
-
-
Constructor Details
-
ContextEntityReward
-
-
Method Details
-
reward
public final void reward(net.minecraft.world.level.storage.loot.LootContext context, float multiplier) -
getReferencedContextParams
public Set<net.minecraft.world.level.storage.loot.parameters.LootContextParam<?>> getReferencedContextParams()- Specified by:
getReferencedContextParamsin interfacenet.minecraft.world.level.storage.loot.LootContextUser
-
reward
public abstract void reward(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.storage.loot.LootContext context, float multiplier)
-