Package com.petrolpark.core.item.decay
Class StartDecayLootItemFunction
java.lang.Object
com.petrolpark.core.item.decay.StartDecayLootItemFunction
- 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 StartDecayLootItemFunction
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 -
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 context) net.minecraft.world.level.storage.loot.functions.LootItemFunctionType<? extends net.minecraft.world.level.storage.loot.functions.LootItemFunction> getType()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThenMethods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams, validate
-
Constructor Details
-
StartDecayLootItemFunction
public StartDecayLootItemFunction()
-
-
Method Details
-
apply
public net.minecraft.world.item.ItemStack apply(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.storage.loot.LootContext context) - Specified by:
applyin interfaceBiFunction<net.minecraft.world.item.ItemStack,net.minecraft.world.level.storage.loot.LootContext, net.minecraft.world.item.ItemStack>
-
getType
public net.minecraft.world.level.storage.loot.functions.LootItemFunctionType<? extends net.minecraft.world.level.storage.loot.functions.LootItemFunction> getType()- Specified by:
getTypein interfacenet.minecraft.world.level.storage.loot.functions.LootItemFunction
-