Class CopyBlockState
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
net.minecraft.world.level.storage.loot.functions.CopyBlockState
- All Implemented Interfaces:
- BiFunction<ItemStack,,- LootContext, - ItemStack> - LootItemFunction,- LootContextUser
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunctionLootItemConditionalFunction.DummyBuilder
- 
Field SummaryFieldsFields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunctionpredicates
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateCopyBlockState(List<LootItemCondition> p_297498_, Holder<Block> p_299449_, List<String> p_298231_) (package private)CopyBlockState(List<LootItemCondition> p_301076_, Holder<Block> p_298008_, Set<Property<?>> p_80052_) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic CopyBlockState.BuilderSet<LootContextParam<?>>getType()protected ItemStackrun(ItemStack p_80060_, LootContext p_80061_) private static <T extends Comparable<T>>
 Stringserialize(BlockState p_80065_, Property<T> p_80066_) Methods inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunctionapply, commonFields, simpleBuilder, validateMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunctionandThen
- 
Field Details- 
CODEC
- 
block
- 
properties
 
- 
- 
Constructor Details- 
CopyBlockState
- 
CopyBlockState
 
- 
- 
Method Details- 
getType
- 
getReferencedContextParams
- 
run- Specified by:
- runin class- LootItemConditionalFunction
 
- 
copyState
- 
serializeprivate static <T extends Comparable<T>> String serialize(BlockState p_80065_, Property<T> p_80066_) 
 
-