net.minecraft.world.level.storage.loot.functions

public class SetPotionFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

eza
net.minecraft.world.level.storage.loot.functions.SetPotionFunction
net.minecraft.class_6662
net.minecraft.loot.function.SetPotionLootFunction
net.minecraft.world.level.storage.loot.functions.SetPotionFunction

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<SetPotionFunction>
a
CODEC
field_45850
CODEC
private final Holder<Potion>
b
potion
field_35080
potion

Constructor summary

ModifierConstructor
private (List<LootItemCondition> conditions, Holder<Potion> potion)

Method summary

Modifier and TypeMethod
public LootItemFunctionType<SetPotionFunction>
b()
getType()
method_29321()
getType()
public ItemStack
a(cxp arg0, ewp arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
public static LootItemConditionalFunction$Builder<?>
a(jq<czm> arg0)
setPotion(Holder<Potion> arg0)
method_38927(class_6880<class_1842> arg0)
builder(RegistryEntry<Potion> potion)