Class PortableGridLootItemFunction

java.lang.Object
com.refinedmods.refinedstorage.common.support.energy.EnergyLootItemFunction
com.refinedmods.refinedstorage.common.storage.portablegrid.PortableGridLootItemFunction
All Implemented Interfaces:
BiFunction<net.minecraft.world.item.ItemStack,net.minecraft.world.level.storage.loot.LootContext,net.minecraft.world.item.ItemStack>, net.minecraft.world.level.storage.loot.functions.LootItemFunction, net.minecraft.world.level.storage.loot.LootContextUser

public class PortableGridLootItemFunction extends EnergyLootItemFunction
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.world.level.storage.loot.functions.LootItemFunction

    net.minecraft.world.level.storage.loot.functions.LootItemFunction.Builder
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    apply(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.storage.loot.LootContext lootContext)
     
    net.minecraft.world.level.storage.loot.functions.LootItemFunctionType<? extends EnergyLootItemFunction>
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface java.util.function.BiFunction

    andThen

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

    getReferencedContextParams, validate
  • Constructor Details

    • PortableGridLootItemFunction

      public PortableGridLootItemFunction()
  • Method Details

    • getType

      public net.minecraft.world.level.storage.loot.functions.LootItemFunctionType<? extends EnergyLootItemFunction> getType()
      Specified by:
      getType in interface net.minecraft.world.level.storage.loot.functions.LootItemFunction
      Overrides:
      getType in class EnergyLootItemFunction
    • apply

      public net.minecraft.world.item.ItemStack apply(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.storage.loot.LootContext lootContext)
      Specified by:
      apply in interface BiFunction<net.minecraft.world.item.ItemStack,net.minecraft.world.level.storage.loot.LootContext,net.minecraft.world.item.ItemStack>
      Overrides:
      apply in class EnergyLootItemFunction