Class GiveLootEntityReward

java.lang.Object
com.petrolpark.core.data.reward.entity.AbstractGiveItemsEntityReward
com.petrolpark.core.data.reward.entity.GiveLootEntityReward
All Implemented Interfaces:
ILootTableAccessor, IEntityReward, ITypedReward<EntityRewardType>, net.minecraft.world.level.storage.loot.LootContextUser

public class GiveLootEntityReward extends AbstractGiveItemsEntityReward implements ILootTableAccessor
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.MapCodec<GiveLootEntityReward>
     
    protected final com.mojang.datafixers.util.Either<net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>,net.minecraft.world.level.storage.loot.LootTable>
     

    Fields inherited from class com.petrolpark.core.data.reward.entity.AbstractGiveItemsEntityReward

    compositeFunction

    Fields inherited from interface com.petrolpark.core.data.reward.entity.IEntityReward

    TYPED_CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
    GiveLootEntityReward(com.mojang.datafixers.util.Either<net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>,net.minecraft.world.level.storage.loot.LootTable> lootTable, List<net.minecraft.world.level.storage.loot.functions.LootItemFunction> functions)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.network.chat.Component
     
     
    com.mojang.datafixers.util.Either<net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>,net.minecraft.world.level.storage.loot.LootTable>
     
    void
    render(net.minecraft.client.gui.GuiGraphics graphics)
     
    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.core.data.reward.entity.AbstractGiveItemsEntityReward

    getItemFunctions, lateItemFunctionsField, reward

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.petrolpark.core.data.loot.ILootTableAccessor

    getLootTable

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

    getReferencedContextParams, validate
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<GiveLootEntityReward> CODEC
    • lootTable

      protected final com.mojang.datafixers.util.Either<net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>,net.minecraft.world.level.storage.loot.LootTable> lootTable
  • Constructor Details

    • GiveLootEntityReward

      public GiveLootEntityReward(com.mojang.datafixers.util.Either<net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>,net.minecraft.world.level.storage.loot.LootTable> lootTable, List<net.minecraft.world.level.storage.loot.functions.LootItemFunction> functions)
  • Method Details