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

public class CopyBlockState

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

exo
net.minecraft.world.level.storage.loot.functions.CopyBlockState
net.minecraft.class_4488
net.minecraft.loot.function.CopyStateLootFunction
net.minecraft.world.level.storage.loot.functions.LootItemFunctionCopyState

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<CopyBlockState>
a
CODEC
field_45816
CODEC
private final Holder<Block>
b
block
field_20449
block
private final Set<Property<?>>
c
properties
field_20450
properties

Constructor summary

ModifierConstructor
(List<LootItemCondition> conditions, Holder<Block> block, Set<Property<?>> properties)
private (List<LootItemCondition> conditions, Holder<Block> block, List<String> properties)

Method summary

Modifier and TypeMethod
public LootItemFunctionType<CopyBlockState>
b()
getType()
method_29321()
getType()
public Set<ContextKey<?>>
a()
getReferencedContextParams()
method_293()
getAllowedParameters()
protected 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 CopyBlockState$Builder
a(dkm arg0)
copyState(Block arg0)
method_21892(class_2248 arg0)
builder(Block block)