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

public class CopyBlockState

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

eds
net.minecraft.world.level.storage.loot.functions.CopyBlockState
net.minecraft.class_4488
net.minecraft.loot.function.CopyStateFunction
net.minecraft.src.C_2885_
net.minecraft.world.level.storage.loot.functions.LootItemFunctionCopyState

Field summary

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

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
b()
getType()
method_29321()
getType()
m_7162_()
public Set<LootContextParam<?>>
a()
getReferencedContextParams()
method_293()
getRequiredParameters()
m_6231_()
protected ItemStack
a(cjf arg0, ecq arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
m_7372_(C_1391_ p_80061_, C_2811_ arg1)
public static CopyBlockState$Builder
a(csv arg0)
copyState(Block arg0)
method_21892(class_2248 arg0)
builder(Block block)
m_80062_(C_1706_ p_80063_)
private static <T extends Comparable<T>> String
a(dfj arg0, dgm<T> arg1)
serialize(BlockState arg0, Property<T> arg1)
method_21893(class_2680 arg0, class_2769<T> arg1)
getPropertyName(BlockState state, Property<T> property)
m_80064_(C_2064_ p_80065_, C_2097_<T> p_80066_)