Class GrantShopXPReward

java.lang.Object
com.petrolpark.data.reward.GrantShopXPReward
All Implemented Interfaces:
IReward, net.minecraft.world.level.storage.loot.LootContextUser

public class GrantShopXPReward extends Object implements IReward
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraft.world.level.storage.loot.providers.number.NumberProvider
     
    final net.minecraft.resources.ResourceLocation
     

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

    CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
    GrantShopXPReward(net.minecraft.resources.ResourceLocation shopRL, net.minecraft.world.level.storage.loot.providers.number.NumberProvider amount)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.network.chat.Component
     
    Set<net.minecraft.world.level.storage.loot.parameters.LootContextParam<?>>
     
     
    void
    render(net.minecraft.client.gui.GuiGraphics graphics)
     
    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 net.minecraft.world.level.storage.loot.LootContextUser

    validate
  • Field Details

    • shopRL

      public final net.minecraft.resources.ResourceLocation shopRL
    • amount

      public final net.minecraft.world.level.storage.loot.providers.number.NumberProvider amount
  • Constructor Details

    • GrantShopXPReward

      public GrantShopXPReward(net.minecraft.resources.ResourceLocation shopRL, net.minecraft.world.level.storage.loot.providers.number.NumberProvider amount)
  • Method Details

    • reward

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

      public void render(net.minecraft.client.gui.GuiGraphics graphics)
      Specified by:
      render in interface IReward
    • getName

      public net.minecraft.network.chat.Component getName()
      Specified by:
      getName in interface IReward
    • getType

      public RewardType getType()
      Specified by:
      getType 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