Package com.petrolpark.data.reward
Class AbstractGiveEntityItemsReward
java.lang.Object
com.petrolpark.data.reward.ContextEntityReward
com.petrolpark.data.reward.AbstractGiveEntityItemsReward
- All Implemented Interfaces:
IReward,net.minecraft.world.level.storage.loot.LootContextUser
- Direct Known Subclasses:
GiveItemReward,GiveLootReward
-
Field Summary
Fields inherited from class com.petrolpark.data.reward.ContextEntityReward
target -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidreward(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.storage.loot.LootContext context, float multiplier) abstract Stream<net.minecraft.world.item.ItemStack>streamStacks(net.minecraft.world.entity.Entity recipient, net.minecraft.world.level.storage.loot.LootContext context) Methods inherited from class com.petrolpark.data.reward.ContextEntityReward
getReferencedContextParams, rewardMethods 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
-
Constructor Details
-
AbstractGiveEntityItemsReward
-
-
Method Details
-
streamStacks
public abstract Stream<net.minecraft.world.item.ItemStack> streamStacks(net.minecraft.world.entity.Entity recipient, net.minecraft.world.level.storage.loot.LootContext context) -
reward
public final void reward(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.storage.loot.LootContext context, float multiplier) - Specified by:
rewardin classContextEntityReward
-