Interface IReward

All Superinterfaces:
net.minecraft.world.level.storage.loot.LootContextUser
All Known Implementing Classes:
AbstractGiveEntityItemsReward, ContextEntityReward, GiveItemReward, GiveLootReward, GrantExperienceReward, GrantShopXPReward, UnlockTradeReward

public interface IReward extends net.minecraft.world.level.storage.loot.LootContextUser
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<IReward>
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    net.minecraft.network.chat.Component
     
     
    void
    render(net.minecraft.client.gui.GuiGraphics graphics)
     
    void
    reward(net.minecraft.world.level.storage.loot.LootContext context, float multiplier)
     

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

    getReferencedContextParams, validate
  • Field Details

    • CODEC

      static final com.mojang.serialization.Codec<IReward> CODEC
  • Method Details

    • reward

      void reward(net.minecraft.world.level.storage.loot.LootContext context, float multiplier)
    • render

      void render(net.minecraft.client.gui.GuiGraphics graphics)
    • getName

      net.minecraft.network.chat.Component getName()
    • getType

      RewardType getType()
    • createGsonAdapter

      static ForgeRegistryObjectGSONAdapter<IReward,RewardType> createGsonAdapter()