Package at.petrak.hexcasting.common.loot
Class AmethystReducerFunc
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
at.petrak.hexcasting.common.loot.AmethystReducerFunc
- 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 AmethystReducerFunc
extends net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Builder<T extends net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Builder<T>> -
Field Summary
FieldsFields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
predicates -
Constructor Summary
ConstructorsConstructorDescriptionAmethystReducerFunc(net.minecraft.world.level.storage.loot.predicates.LootItemCondition[] lootItemConditions, double delta) -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.item.ItemStackdoStatic(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.storage.loot.LootContext ctx, double amount) net.minecraft.world.level.storage.loot.functions.LootItemFunctionTypegetType()protected net.minecraft.world.item.ItemStackrun(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.storage.loot.LootContext ctx) Methods inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
apply, simpleBuilder, validateMethods 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
-
Field Details
-
delta
public final double delta
-
-
Constructor Details
-
AmethystReducerFunc
public AmethystReducerFunc(net.minecraft.world.level.storage.loot.predicates.LootItemCondition[] lootItemConditions, double delta)
-
-
Method Details
-
doStatic
public static net.minecraft.world.item.ItemStack doStatic(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.storage.loot.LootContext ctx, double amount) -
run
protected net.minecraft.world.item.ItemStack run(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.storage.loot.LootContext ctx) - Specified by:
runin classnet.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
-
getType
public net.minecraft.world.level.storage.loot.functions.LootItemFunctionType getType()
-