Class PortableGridLootItemFunction

java.lang.Object
com.refinedmods.refinedstorage.common.support.energy.AbstractEnergyLootItemFunction
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, net.minecraft.world.level.storage.loot.Validatable

public class PortableGridLootItemFunction extends AbstractEnergyLootItemFunction
  • 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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.storage.loot.functions.LootItemFunction>
     
  • 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)
     
    com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.storage.loot.functions.LootItemFunction>
     

    Methods inherited from class Object

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

    Methods inherited from interface BiFunction

    andThen

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

    getReferencedContextParams, validate
  • Field Details

    • FUNCTION_CODEC

      public static final com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.storage.loot.functions.LootItemFunction> FUNCTION_CODEC
  • Constructor Details

    • PortableGridLootItemFunction

      public PortableGridLootItemFunction()
  • Method Details

    • 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 AbstractEnergyLootItemFunction
    • codec

      public com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.storage.loot.functions.LootItemFunction> codec()