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

public abstract class ContextEntityReward extends Object implements IReward
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     

    Fields inherited from interface com.petrolpark.data.reward.IReward

    CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Set<net.minecraft.world.level.storage.loot.parameters.LootContextParam<?>>
     
    abstract void
    reward(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.storage.loot.LootContext context, float multiplier)
     
    final void
    reward(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, wait

    Methods inherited from interface com.petrolpark.data.reward.IReward

    getName, getType, render

    Methods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser

    validate
  • Field Details

  • Constructor Details

    • ContextEntityReward

      public ContextEntityReward(IEntityTarget target)
  • Method Details

    • reward

      public final void reward(net.minecraft.world.level.storage.loot.LootContext context, float multiplier)
      Specified by:
      reward in interface IReward
    • getReferencedContextParams

      public Set<net.minecraft.world.level.storage.loot.parameters.LootContextParam<?>> getReferencedContextParams()
      Specified by:
      getReferencedContextParams in interface net.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)