Class StorageBlockLootItemFunction
java.lang.Object
com.refinedmods.refinedstorage.common.storage.storageblock.StorageBlockLootItemFunction
- 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 StorageBlockLootItemFunction
extends Object
implements net.minecraft.world.level.storage.loot.functions.LootItemFunction
-
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
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.storage.loot.functions.LootItemFunction> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackapply(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.storage.loot.LootContext lootContext) com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.storage.loot.functions.LootItemFunction> codec()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiFunction
andThenMethods 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
-
StorageBlockLootItemFunction
public StorageBlockLootItemFunction()
-
-
Method Details
-
apply
public net.minecraft.world.item.ItemStack apply(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.storage.loot.LootContext lootContext) - Specified by:
applyin interfaceBiFunction<net.minecraft.world.item.ItemStack, net.minecraft.world.level.storage.loot.LootContext, net.minecraft.world.item.ItemStack>
-
codec
public com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.storage.loot.functions.LootItemFunction> codec()- Specified by:
codecin interfacenet.minecraft.world.level.storage.loot.functions.LootItemFunction
-